import change from tenfourfox:

- closes #645: M171156 M1700895 M1665836 +TLDs TZs HSTS (7e2652114)
This commit is contained in:
2021-07-13 16:27:51 +08:00
parent 06d01b450b
commit caeb878ce8
8 changed files with 6673 additions and 1794 deletions
+4 -1
View File
@@ -3289,8 +3289,11 @@ 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 */