Closed Bug 1961428 Opened 1 month ago Closed 1 month ago

Move nsGridContainerFrame::CachedBAxisMeasurement to cpp file

Categories

(Core :: Layout: Grid, task)

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

(Whiteboard: [grid-percentages:m1])

Attachments

(3 files)

Minor refactoring and cleanup for CachedBAxisMeasurement and surrounding code. See the patch stack for details.

This patch moves all public override methods declared at the end the grid
container class to the first public section. It is the first step toward
consolidating the grid container's public interface into a single public
section.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

The grid item cache is an internal implementation detail that does not need to
be exposed in the header. This patch moves CachedBAxisMeasurement to the cpp
file, similar to where nsFlexContainerFrame::CachedBAxisMeasurement lives.
This change also reduces compile time when modifying the cache code.

Since CachedBAxisMeasurement is now hidden, we add a heler
MarkCachedGridMeasurementsDirty to remove CachedBAxisMeasurement::Prop() in
nsIFrame::MarkIntrinsicISizesDirty().

Attachment #9479954 - Attachment description: Bug 1961428 Part 3 - Remove typedefs for common layout types under mozilla namespace. r?#layout → Bug 1961428 Part 3 - Remove unused typedefs in nsGridContainerFrame. r?#layout
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/0072254f7f53 Part 1 - Move public override methods in grid container to first declared public section. r=layout-reviewers,dholbert https://hg.mozilla.org/integration/autoland/rev/3dbe1a3611f5 Part 2 - Move nsGridContainerFrame::CachedBAxisMeasurement to cpp file. r=layout-reviewers,dholbert https://hg.mozilla.org/integration/autoland/rev/e5f38e86783d Part 3 - Remove unused typedefs in nsGridContainerFrame. r=layout-reviewers,dholbert
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Whiteboard: [grid-percentages:triage] → [grid-percentages:m1]
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: