Bug 1192189 - Fix assertion condition to use to-be-restyled element's composed document. r=dbaron

This commit is contained in:
Cameron McCormack 2015-11-11 16:46:43 +11:00
parent 6a631ed9f3
commit 8ad4f3ade7

View File

@ -124,7 +124,7 @@ CollectRestyles(nsISupports* aElement,
(element->GetFlattenedTreeParent() &&
(!element->GetFlattenedTreeParent()->GetPrimaryFrame() ||
element->GetFlattenedTreeParent()->GetPrimaryFrame()->IsLeaf() ||
element->GetCurrentDoc()->GetShell()->FrameManager()
element->GetCrossShadowCurrentDoc()->GetShell()->FrameManager()
->GetDisplayContentsStyleFor(element))) ||
// Or not reachable due to an async reinsert we have
// pending? If so, we'll have a reframe hint around.