mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Bug 1389743 - Only reconstruct frames synchronously from ContentRemoved when called from frame construction
Tag #1375
This commit is contained in:
parent
fe13c5bffc
commit
f63cd76698
9 changed files with 201 additions and 285 deletions
|
|
@ -146,8 +146,10 @@ RestyleManager::RestyleElement(Element* aElement,
|
|||
}
|
||||
|
||||
if (aMinHint & nsChangeHint_ReconstructFrame) {
|
||||
FrameConstructor()->RecreateFramesForContent(aElement, false,
|
||||
nsCSSFrameConstructor::REMOVE_FOR_RECONSTRUCTION, nullptr);
|
||||
FrameConstructor()->RecreateFramesForContent(
|
||||
aElement,
|
||||
nsCSSFrameConstructor::InsertionKind::Sync,
|
||||
nsCSSFrameConstructor::REMOVE_FOR_RECONSTRUCTION);
|
||||
} else if (aPrimaryFrame) {
|
||||
ComputeAndProcessStyleChange(aPrimaryFrame, aMinHint, aRestyleTracker,
|
||||
aRestyleHint, aRestyleHintData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue