import changes from `dev' branch of rmottola/Arctic-Fox:

- Bug 1180166 - Ensure all elements of tableBorderReset[] are properly initialized. r=dholbert (0ce218eea)
- Bug 1177690 - part 0 - Tidy up some erratic whitespace. r=dholbert (4367c5ffd)
- Bug 1177690 - part 1 - Bevel the correct ends of horizontal collapsed-border segments in vertical-rl writing mode. r=dholbert (0efa53fb2)
- Bug 1177690 - part 2 - Tidy up the use of DrawTableBorderSegment similarly in BCInlineDirSeg::Paint. r=dholbert (fef2b0ebb)
- Bug 1153140 - Include borderPadding width in the containerWidth for grid item placement. r=mats (ceaf03493)
- Bug 77999 - Part 1: Add nsDocumentRuleResultCacheKey. r=dbaron (8d3599b2b)
- Bug 1159772. Don't let nsContainerFrame::SyncWindowProperties make widget calls that can result in synchronous painting during reflow or frame construction. r=mats (395ec1340)
- Bug 1009214 part 1 - [css-grid] Don't wrap placeholders in an anonymous grid item. r=dholbert (51f5db33f)
- Bug 1009214 part 2 - [css-grid] Update the reference for a few tests that wrapped placeholders in anonymous grid items. (48d8f2363)
- Bug 1151316 part 1 - [css-grid] Implement relative positioning for grid items. r=roc (470c7beb6)
- Bug 1153140 - dir=rtl versions of a couple of the grid reftests. r=mats (8942648a6)
- Bug 1079164 - Initial testcases for CSS grid in vertical writing mode. r=mats (667ec9ce2)
- Bug 1149555 - Update resize event firing to follow the specs, dispatch right before rAF callbacks, r=dbaron (2bb998687)
- ckout Bug 1149555 because of tresize regression, a=backout (8e9a9c614)
- Bug 1141867 - patch 1 - Use the proper writing mode to return the inline-size from FloatMarginISize. r=smontagu (af6a62275)
- Bug 1141867 - patch 2 - If FloatMarginISize returns unconstrained, we need to do an early reflow on the orthogonal float to find out its real size. r=smontagu (683e2f813)
- Bug 1141867 - patch 3 - Reftests for contiguous orthogonal floats. r=smontagu (b67e31c51)
- Bug 1141867 - Add OSX 10.10 fuzz to the newly-added tests. a=merge (d8587d21e)
- Bug 1157691 - Explicitly enable writing-mode support for reftests that require it. r=smontagu (17890dd40)
- Bug 1151316 part 2 - [css-grid] Tests for relative positioning of grid items. (ef8c924af)
- Bug 1171773 - Handle reflowing a grid item with different writing mode from its grid container. r=mats (1b775f1c1)
- Bug 1171773 - Reftest for grid item with different direction from its container. r=mats (84aa60f67)
- Bug 1173662 part 1: Rename local variable 'wm' in nsNumberControlFrame::Reflow. r=jfkthame (2a409480b)
- Bug 1173662 part 2: Use logical sizes in nsNumberControlFrame::Reflow. r=jfkthame (c408e7b67)
- Bug 1173662 part 3: Use a LogicalPoint for child position in nsNumberControlFrame::Reflow. r=jfkthame (815f9c70f)
This commit is contained in:
2021-03-08 09:07:52 +08:00
parent 7d12d066b1
commit 0f991de4b6
41 changed files with 2184 additions and 149 deletions
+12 -1
View File
@@ -9276,7 +9276,8 @@ PresShell::DoReflow(nsIFrame* target, bool aInterruptible)
target->GetView(),
boundsRelativeToTarget);
nsContainerFrame::SyncWindowProperties(mPresContext, target,
target->GetView(), &rcx);
target->GetView(), &rcx,
nsContainerFrame::SET_ASYNC);
target->DidReflow(mPresContext, nullptr, nsDidReflowStatus::FINISHED);
if (target == rootFrame && size.BSize(wm) == NS_UNCONSTRAINEDSIZE) {
@@ -11110,3 +11111,13 @@ PresShell::ResumePainting()
mPaintingIsFrozen = false;
GetPresContext()->RefreshDriver()->Thaw();
}
void
nsIPresShell::SyncWindowProperties(nsView* aView)
{
nsIFrame* frame = aView->GetFrame();
if (frame && mPresContext) {
nsRenderingContext rcx(CreateReferenceRenderingContext());
nsContainerFrame::SyncWindowProperties(mPresContext, frame, aView, &rcx, 0);
}
}