Closed
Bug 1652646
Opened 4 years ago
Closed 4 years ago
Use nsIFrame::IsGridItem() and IsFlexItem() to replace equivalent conditions
Categories
(Core :: Layout, task)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla80
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(2 files)
We have a few places in our codebase that can use nsIFrame::IsGridItem()
or nsIFrame::IsFlexItem()
directly.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
The only possible behavior change is in
nsIFrame::MarkIntrinsicISizesDirty(). Before this patch, we clear
CachedFlexItemData for every child frame under nsFlexContainerFrame.
However, only flex items can have cache, so we can use IsFlexItem() to
replace the usage.
Depends on D83453
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ddf16c9e09fc
Part 1 - Use nsIFrame::IsGridItem() whenever possible. r=dholbert
https://hg.mozilla.org/integration/autoland/rev/d0d053e0ccc3
Part 2 - Use nsIFrame::IsFlexItem() whenever possible. r=dholbert
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ddf16c9e09fc
https://hg.mozilla.org/mozilla-central/rev/d0d053e0ccc3
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox80:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in
before you can comment on or make changes to this bug.
Description
•