mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1289624 - Clear servo data when nodes are removed from the tree. r=heycam
This commit is contained in:
parent
46c7fed6d0
commit
55b3f93f9f
@ -1787,6 +1787,12 @@ Element::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
|
||||
ClearInDocument();
|
||||
|
||||
#ifdef MOZ_STYLO
|
||||
// Drop any servo node data, since it will generally need to be recomputed on
|
||||
// re-insertion anyway.
|
||||
ServoData().reset();
|
||||
#endif
|
||||
|
||||
// Editable descendant count only counts descendants that
|
||||
// are in the uncomposed document.
|
||||
ResetEditableDescendantCount();
|
||||
|
@ -590,6 +590,12 @@ nsGenericDOMDataNode::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
}
|
||||
ClearInDocument();
|
||||
|
||||
#ifdef MOZ_STYLO
|
||||
// Drop any servo node data, since it will generally need to be recomputed on
|
||||
// re-insertion anyway.
|
||||
ServoData().reset();
|
||||
#endif
|
||||
|
||||
if (aNullParent || !mParent->IsInShadowTree()) {
|
||||
UnsetFlags(NODE_IS_IN_SHADOW_TREE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user