Skip to content

Commit

Permalink
Bug 806996 part.2 nsTextStateManager::IsManaging() should check if mR…
Browse files Browse the repository at this point in the history
…ootContent is still in the mEditableNode r=smaug
  • Loading branch information
masayuki-nakano committed Nov 9, 2012
1 parent 13122cd commit 8a77814
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/events/src/nsIMEStateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,11 @@ bool
nsTextStateManager::IsManaging(nsPresContext* aPresContext,
nsIContent* aContent)
{
// If mRootContent has been removed from mEditableNode, this is not managing
// the content actually.
if (!mRootContent || !mRootContent->IsInDoc()) {
return false;
}
return mEditableNode == nsIMEStateManager::GetRootEditableNode(aPresContext,
aContent);
}
Expand Down

0 comments on commit 8a77814

Please sign in to comment.