Clean up for block frame state bits and pushed floats APIs
Categories
(Core :: Layout: Block and Inline, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(5 files)
See patches for details.
Assignee | ||
Comment 1•4 months ago
|
||
-
Remove "FRAME" for nsBlockFrame state bits for the consistency with other bits.
-
Use helpers instead of checking state bits if possible.
-
Tweak one line documentation to use C++ comment style.
-
Move
GetMarker()
to protected section because it is used only internally.
Updated•4 months ago
|
Assignee | ||
Comment 2•4 months ago
|
||
Remove "FRAME" for the bit for the consistency with other bits.
Assignee | ||
Comment 3•4 months ago
|
||
Add an "s" to PushedFloatsProperty() to match the state bit.
Rename RemovePushedFloats()
to StealPushedFloats()
to match other APIs that
take the ownership of a frame list.
https://searchfox.org/mozilla-central/rev/4c8627a76e2e0a9b49c2b673424da478e08715ad/layout/generic/nsContainerFrame.h#598-612
Assignee | ||
Comment 4•4 months ago
|
||
BlockReflowState::mPushedFloats
is a pointer to mBlock
's pushed floats
list. However, it is only used in AppendPushedFloatChain()
. We can just get
the pushed floats list directly.
This is a preparation for the next part that removes a possible scenario where
mPushedFloats
can point to a removed pushed floats list.
Assignee | ||
Comment 5•4 months ago
|
||
Comment 7•4 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ab75f4e2495a
https://hg.mozilla.org/mozilla-central/rev/25939bb1973a
https://hg.mozilla.org/mozilla-central/rev/a5330ec7bab2
https://hg.mozilla.org/mozilla-central/rev/b945d8bf8dd9
https://hg.mozilla.org/mozilla-central/rev/52a9610fc9f2
Description
•