Bug 1411754 - Rename PresShell::DestroyFramesFor to DestroyFramesForAndRestyle

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-04-17 06:41:41 -04:00 committed by Roy Tam
commit efb5979ad5
6 changed files with 14 additions and 13 deletions

View file

@ -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));
}
}

View file

@ -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

View file

@ -125,7 +125,7 @@ public:
// since if the binding fetch fails then we don't want to destroy the
// frames.
if (nsIPresShell* shell = doc->GetShell()) {
shell->DestroyFramesFor(mBoundElement->AsElement());
shell->DestroyFramesForAndRestyle(mBoundElement->AsElement());
}
MOZ_ASSERT(!mBoundElement->GetPrimaryFrame());
}