mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +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
|
|
@ -2828,7 +2828,7 @@ PresShell::CancelAllPendingReflows()
|
|||
}
|
||||
|
||||
void
|
||||
PresShell::DestroyFramesFor(Element* aElement)
|
||||
PresShell::DestroyFramesForAndRestyle(Element* aElement)
|
||||
{
|
||||
MOZ_ASSERT(aElement);
|
||||
NS_ENSURE_TRUE_VOID(mPresContext);
|
||||
|
|
@ -2847,13 +2847,15 @@ PresShell::DestroyFramesFor(Element* aElement)
|
|||
fc->DestroyFramesFor(aElement, &didReconstruct);
|
||||
fc->EndUpdate();
|
||||
|
||||
// XXXmats doesn't frame state need to be restored in this case?
|
||||
if (!didReconstruct) {
|
||||
PostRecreateFramesFor(aElement);
|
||||
}
|
||||
auto changeHint = didReconstruct
|
||||
? nsChangeHint(0)
|
||||
: nsChangeHint_ReconstructFrame;
|
||||
|
||||
// NOTE(emilio): eRestyle_Subtree is needed to force also a full subtree
|
||||
// restyle for the content (in Stylo, where the existence of frames != the
|
||||
// existence of styles).
|
||||
mPresContext->RestyleManager()->PostRestyleEvent(
|
||||
aElement, eRestyle_Subtree, nsChangeHint(0));
|
||||
aElement, eRestyle_Subtree, changeHint);
|
||||
|
||||
--mChangeNestCount;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue