mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1403712: Clear the restyle root at the end of UnbindFromTree too. r=bholley
MozReview-Commit-ID: 7swfspMWUe6 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
b5ab9820ca
commit
d77d8cd43e
@ -2005,6 +2005,9 @@ Element::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
// since the invariant we'd be breaking in that case is "HasServoData()
|
||||
// implies InComposedDoc()", which we rely on in various places.
|
||||
UnsetFlags(kAllServoDescendantBits);
|
||||
if (document && document->GetServoRestyleRoot() == this) {
|
||||
document->ClearServoRestyleRoot();
|
||||
}
|
||||
}
|
||||
|
||||
nsICSSDeclaration*
|
||||
|
Loading…
Reference in New Issue
Block a user