Closed
Bug 2000759
Opened 9 months ago
Closed 9 months ago
Improve helper methods that check masonry layout
Categories
(Core :: Layout: Grid, task)
Core
Layout: Grid
Tracking
()
RESOLVED
FIXED
147 Branch
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Per Jonathan's review comment in https://phabricator.services.mozilla.com/D272824#9439812, we can improve code readability handling orthogonal writing mode by creating an IsMasonry() that takes an writing-mode along with the axis. This bug implements that approach.
| Assignee | ||
Comment 1•9 months ago
|
||
| Assignee | ||
Comment 2•9 months ago
|
||
We have IsColSubgrid() and IsRowSubgrid(). Masonry layout should have
similar convenience helpers.
Move IsMasonry(LogicalAxis) from nsIFrame into nsGridContainerFrame for
two reasons:
- There are no external callers, and having it in grid container frame remove the
need to assert the caller is a grid container. IsColSubgrid()andIsRowSubgrid()depend on it.
Pushed by aethanyc@gmail.com:
https://github.com/mozilla-firefox/firefox/commit/997c4612a979
https://hg.mozilla.org/integration/autoland/rev/a6efcce7a1d4
Add IsMasonry overload that take a WritingMode parameter. r=jfkthame,layout-reviewers
https://github.com/mozilla-firefox/firefox/commit/379011e6798b
https://hg.mozilla.org/integration/autoland/rev/89d80408fc1a
Add two convenience methods IsColMasonry() and IsRowMasonry(). r=jfkthame,layout-reviewers
https://github.com/mozilla-firefox/firefox/commit/78c24913e991
https://hg.mozilla.org/integration/autoland/rev/c76bbd98cea6
apply code formatting via Lando
Comment 4•9 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a6efcce7a1d4
https://hg.mozilla.org/mozilla-central/rev/89d80408fc1a
https://hg.mozilla.org/mozilla-central/rev/c76bbd98cea6
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
status-firefox147:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Updated•9 months ago
|
QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in
before you can comment on or make changes to this bug.
Description
•