mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
[layout] Ensure we set the primary frame for native anon content where needed.
This commit is contained in:
parent
a668e99abd
commit
a0ee1f3c0d
1 changed files with 3 additions and 1 deletions
|
|
@ -3463,8 +3463,10 @@ nsCSSFrameConstructor::ConstructTextFrame(const FrameConstructionData* aData,
|
|||
// Add the newly constructed frame to the flow
|
||||
aFrameItems.AddChild(newFrame);
|
||||
|
||||
if (!aState.mCreatingExtraFrames)
|
||||
if (!aState.mCreatingExtraFrames ||
|
||||
(aContent->IsInNativeAnonymousSubtree() && !aContent->GetPrimaryFrame())) {
|
||||
aContent->SetPrimaryFrame(newFrame);
|
||||
}
|
||||
}
|
||||
|
||||
/* static */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue