Details
Details
- Reviewers
emilio - Group Reviewers
layout-reviewers - Commits
- rMOZILLACENTRAL1133b5c97587: Bug 1874826 - Avoid reconstruction due to change to block formatting context.
- Bugzilla Bug ID
- 1874826
Diff Detail
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
- Branch
- default
| Time | Test | |
|---|---|---|
| 0 ms | code-review::mercurial WARNING: The base revision of your patch is not available in the current repository.
Your patch has been rebased on central (revision None): issues may be positioned on the wrong lines. |
Event Timeline
| layout/generic/nsBlockFrame.cpp | ||
|---|---|---|
| 6419 | Actually we could avoid invalidating at all if we're already a static bfc right? So maybe if (HasAnyStateBits(NS_BLOCK_STATIC_BFC)) { return; } above? I guess that leaves the dynamic bfc bit potentially unset, but I don't think it can cause harm. If not, at least make this condition if (MaybeHasFloats() && HasAnyStateBits(NS_BLOCK_STATIC_BFC)) { or so? Anyways, looks good, and given we're dirtying I'd be happy to get this landed before the soft-freeze if you want, your call. | |
| layout/generic/nsBlockFrame.h | ||
| 681 | Could be a static function in nsBlockFrame.cpp now if you want. | |
| layout/generic/nsBlockFrame.cpp | ||
|---|---|---|
| 6419 | Yes, good point. Done. | |