mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 806996 part.2 nsTextStateManager::IsManaging() should check if mRootContent is still in the mEditableNode r=smaug
This commit is contained in:
parent
305c137140
commit
2a122ad59f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user