mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Bug 1411754 - Rename PresShell::DestroyFramesFor to DestroyFramesForAndRestyle
Tag #1375
This commit is contained in:
parent
1846dde168
commit
efb5979ad5
6 changed files with 14 additions and 13 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue