Refactor duplicate code into RenderFlexibleBox::mainAxisContentExtent
Created attachment 163923 [details] Patch
Comment on attachment 163923 [details] Patch Looks reasonable. Unclear why these are different in the first place. Emil, Levi care to comment?
Comment on attachment 163923 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=163923&action=review Looks great! > Source/WebCore/rendering/RenderFlexibleBox.cpp:614 > LayoutUnit RenderFlexibleBox::computeAvailableFreeSpace(LayoutUnit preferredMainAxisExtent) This is only called in one place. Inline it?
(In reply to comment #2) > (From update of attachment 163923 [details]) > Looks reasonable. Unclear why these are different in the first place. Emil, Levi care to comment? Why what is different? The first parameter passed to computeLogicalHeight? It's the size of the content when we're getting the height. When computing free space for flexing, it's based on the flex basis of each flex item. When computing line breaking, we imagine that the content is infinite to see if we have to break for some reason (e.g., if a max-height is set, we would break on that).
Created attachment 163930 [details] Patch for landing
Comment on attachment 163930 [details] Patch for landing Clearing flags on attachment: 163930 Committed r128494: <http://trac.webkit.org/changeset/128494>
All reviewed patches have been landed. Closing bug.