diff options
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/Element.cpp | 2 | ||||
-rw-r--r-- | dom/base/ShadowRoot.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index 5bbfbee9b..ba5ba9c72 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -1119,7 +1119,7 @@ Element::CreateShadowRoot(ErrorResult& aError) if (nsIDocument* doc = GetComposedDoc()) { if (nsIPresShell* shell = doc->GetShell()) { - shell->DestroyFramesFor(this); + shell->DestroyFramesForAndRestyle(this); MOZ_ASSERT(!shell->FrameManager()->GetDisplayContentsStyleFor(this)); } } diff --git a/dom/base/ShadowRoot.cpp b/dom/base/ShadowRoot.cpp index f19cad6df..5f61b1f4d 100644 --- a/dom/base/ShadowRoot.cpp +++ b/dom/base/ShadowRoot.cpp @@ -265,8 +265,7 @@ ShadowRoot::DistributionChanged() return; } - // FIXME(emilio): Rename this to DestroyFramesForAndRestyle? - shell->DestroyFramesFor(host); + shell->DestroyFramesForAndRestyle(host); } const HTMLContentElement* @@ -513,7 +512,7 @@ ShadowRoot::AttributeChanged(nsIDocument* aDocument, return; } - shell->DestroyFramesFor(aElement); + shell->DestroyFramesForAndRestyle(aElement); } bool |