Some minor flexbox cleanup
Categories
(Core :: Layout: Flexbox, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox76 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(3 files)
I'm spinning off some non-functional refactoring patches from my local work for bug 1492538, to land in this bug.
| Assignee | ||
Comment 1•6 years ago
|
||
This patch doesn't change behavior. It just renames all ReflowOutput-type
variables to use "reflow output" in their naming, rather than "desired
size". (And it changes two code-comments with s/desired size/reflow-output
measurements/ for consistency.)
I'm doing this because I may want to create a new variable called "desired
size" (or similar) in a later patch, and that's easier if there aren't
similarly-named variables lying around.
| Assignee | ||
Comment 2•6 years ago
|
||
This patch doesn't change behavior; it's effectively just a rename.
Before this patch, we would store instances of the class
"CachedMeasuringReflowResult" in a frame property with the (arbitrary and
nearly-identical) name "CachedFlexMeasuringReflow". These subtly-different
names cause unnecessary confusion & typos.
Let's do away with the custom name for the property table entry, and just name
the entry "CachedMeasuringReflowResult::Prop". This is what we do in
nsGridContainerFrame.cpp for the various frame properties (e.g. Subgrid::Prop),
and it works well for readability there.
Depends on D66588
| Assignee | ||
Comment 3•6 years ago
|
||
Depends on D66589
Updated•6 years ago
|
Comment 5•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b6fd95e0011b
https://hg.mozilla.org/mozilla-central/rev/8f6d085ceab6
https://hg.mozilla.org/mozilla-central/rev/23e3b1215157
Description
•