Closed Bug 1618656 Opened 5 years ago Closed 5 years ago

Minor flexbox cleanup again

Categories

(Core :: Layout: Flexbox, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(6 files)

Similar to bug 1614082, I have some patches accumulated while poking flexbox' code.

finalFlexItemCBSize sounds like the size of the "containing block" of
the flex item, which feels wrong to me.

Depends on D64676

If nsPresContext is needed, we can always use nsIFrame::PresContext() to
retrieve it. This is what grid container does.

Depends on D64677

IntrinsicISizeType is used only once. We can just prepend nsLayoutUtils
at the call site.

Depends on D64679

With two minor tweaks:

  1. Remove "mozilla/UniquePtr.h" from cpp since it is already included in
    the header.

  2. Use "mozilla/WritingModes.h" instead "WritingModes.h" in cpp.
    WritingModes.h was exported under "mozilla/", and it works without
    "mozilla/" because we are in the same directory.

Depends on D64680

Thanks for doing this cleanup!

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/4a389ce4d36d Revise documentation and fix typos in nsFlexContainerFrame.cpp. r=dholbert https://hg.mozilla.org/integration/autoland/rev/a2d65bda6c55 Rename finalFlexItemCBSize to finalFlexItemSize. r=dholbert https://hg.mozilla.org/integration/autoland/rev/2b7adf8582fa Eliminate the nsPresContext argument for nsFlexContainerFrame's methods. r=dholbert https://hg.mozilla.org/integration/autoland/rev/1830e0579510 Remove unused lineIndex counter in a for-loop. r=dholbert https://hg.mozilla.org/integration/autoland/rev/73e4191c4ef4 Convert typedef to "using declarations" for flex container's helper classes. r=dholbert https://hg.mozilla.org/integration/autoland/rev/90fda57adf34 Sort #include declarations in nsFlexContainerFrame.{h,cpp}. r=dholbert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: