Bug 81843 - refactor flexbox in preparation for flex-line-pack
Summary: refactor flexbox in preparation for flex-line-pack
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tony Chang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 16:36 PDT by Tony Chang
Modified: 2012-03-22 10:16 PDT (History)
3 users (show)

See Also:


Attachments
Patch (15.67 KB, patch)
2012-03-21 16:40 PDT, Tony Chang
no flags Details | Formatted Diff | Diff
Patch for landing (15.63 KB, patch)
2012-03-21 17:02 PDT, Tony Chang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Chang 2012-03-21 16:36:58 PDT
refactor flexbox in preparation for flex-line-pack
Comment 1 Tony Chang 2012-03-21 16:40:48 PDT
Created attachment 133142 [details]
Patch
Comment 2 Tony Chang 2012-03-21 16:41:24 PDT
Let me know if this is too big.  I can split it into two patches.
Comment 3 Ojan Vafai 2012-03-21 16:47:55 PDT
Comment on attachment 133142 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=133142&action=review

> Source/WebCore/rendering/RenderFlexibleBox.cpp:1009
> +            if (flexAlignForChild(child) == AlignBaseline && minMarginAfterBaseline)

Nit: I'd move the minMarginAfterBaseline check to the outer for-loop and early-continue:
if (!minMarginAfterBaseline)
    continue;
Comment 4 Tony Chang 2012-03-21 17:02:34 PDT
Created attachment 133144 [details]
Patch for landing
Comment 5 WebKit Review Bot 2012-03-21 18:29:22 PDT
Comment on attachment 133144 [details]
Patch for landing

Clearing flags on attachment: 133144

Committed r111635: <http://trac.webkit.org/changeset/111635>
Comment 6 WebKit Review Bot 2012-03-21 18:29:26 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 mitz 2012-03-21 21:36:13 PDT
(In reply to comment #5)
> (From update of attachment 133144 [details])
> Clearing flags on attachment: 133144
> 
> Committed r111635: <http://trac.webkit.org/changeset/111635>

This caused bug 81870.
Comment 8 mitz 2012-03-21 21:59:18 PDT
Reverted r111635 in <http://trac.webkit.org/r111652>.
Comment 9 Tony Chang 2012-03-22 10:16:38 PDT
Committed r111720: <http://trac.webkit.org/changeset/111720>