Details
Details
- Reviewers
emilio - Group Reviewers
layout-reviewers - Commits
- rMOZILLACENTRAL5a43bc7dfb19: Bug 1874826 - Add more tests for paint/layout containment change and floats.
- Bugzilla Bug ID
- 1874826
Diff Detail
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
Event Timeline
Comment Actions
These tests currently passes and they break if we don't force reconstruct below, so I guess we might need to mark lines dirty at the end:
diff --git a/layout/base/RestyleManager.cpp b/layout/base/RestyleManager.cpp index fe1230878ee65..dce6e107b1294 100644 --- a/layout/base/RestyleManager.cpp +++ b/layout/base/RestyleManager.cpp @@ -1570,7 +1570,7 @@ static void TryToHandleBlockFormattingContextChange(nsChangeHint& aHint, // FIXME(bug 1874826): If we could fix this up rather than reconstructing, // we could move all this logic to nsBlockFrame::DidSetComputedStyle, and // remove UpdateBFC. - aHint |= nsChangeHint_ReconstructFrame; + // aHint |= nsChangeHint_ReconstructFrame; return; } blockFrame->AddOrRemoveStateBits(NS_BLOCK_DYNAMIC_BFC,
Comment Actions
Interestingly, https://phabricator.services.mozilla.com/D198931?id=810650 (moving to DidSetComputedStyle without marking lines dirty) only breaks 004 tests. And marking lines dirty as in https://phabricator.services.mozilla.com/D198931?id=810681 avoids the breakage.
I'm still not really clear which of my changes allowed to finally exhibit the issue, but anyway I guess this is good enough.... Will land the tests and wait the end of soft code freeze for the code change.