[go: up one dir, main page]

Page MenuHomePhabricator

Bug 1874826 - Avoid reconstruction due to change to block formatting context. r=#layout
ClosedPublic

Authored by fredw on Jan 18 2024, 10:11 AM.
Referenced Files
Unknown Object (File)
Tue, Dec 16, 7:51 AM
Unknown Object (File)
Nov 13 2025, 1:11 PM
Unknown Object (File)
Nov 13 2025, 1:11 PM
Unknown Object (File)
Nov 8 2025, 9:24 AM
Unknown Object (File)
Nov 8 2025, 9:24 AM
Unknown Object (File)
Nov 7 2025, 2:51 AM
Unknown Object (File)
Nov 7 2025, 2:51 AM
Unknown Object (File)
Nov 4 2025, 9:49 AM
Subscribers

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Branch
default

Unit TestsUnsound

TimeTest
0 mscode-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

fredw created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Jan 18 2024, 10:12 AM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
fredw retitled this revision from WIP: Bug 1874826 Avoid reconstruction due to change to block formatting context. r=#layout to WIP: Bug 1874826 - Avoid reconstruction due to change to block formatting context. r=#layout.
fredw requested review of this revision.Jan 18 2024, 4:59 PM
fredw updated this revision to Diff 810681.
fredw retitled this revision from WIP: Bug 1874826 - Avoid reconstruction due to change to block formatting context. r=#layout to Bug 1874826 - Avoid reconstruction due to change to block formatting context. r=#layout.
fredw added a reviewer: layout-reviewers.
emilio added a project: testing-approved.
emilio added inline comments.
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.

This revision is now accepted and ready to land.Jan 18 2024, 5:40 PM
fredw marked an inline comment as done.
fredw added inline comments.
layout/generic/nsBlockFrame.cpp
6419

Yes, good point. Done.