Bug 66723 - Add handling of mix-width and max-width for flexitems
Summary: Add handling of mix-width and max-width for flexitems
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: 62048
  Show dependency treegraph
 
Reported: 2011-08-22 15:08 PDT by Tony Chang
Modified: 2011-08-23 16:11 PDT (History)
2 users (show)

See Also:


Attachments
Patch (12.89 KB, patch)
2011-08-22 15:13 PDT, Tony Chang
no flags Details | Formatted Diff | Diff
Patch for landing (15.05 KB, patch)
2011-08-23 12:22 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 2011-08-22 15:08:10 PDT
Add handling of mix-width and max-width for flexitems
Comment 1 Tony Chang 2011-08-22 15:13:28 PDT
Created attachment 104748 [details]
Patch
Comment 2 Dave Hyatt 2011-08-23 10:47:34 PDT
Comment on attachment 104748 [details]
Patch

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

r=me

> Source/WebCore/rendering/RenderFlexibleBox.cpp:187
> +    LayoutUnit flexboxAvailableLogicalWidth = availableLogicalWidth();

Add a FIXME: Deal with writing-modes above this availableLogicalWidth() line, since that's the wrong axis to be looking at if writing-mode is vertical-lr and the box orientation is explicitly horizontal.

> Source/WebCore/rendering/RenderFlexibleBox.h:58
> +    bool runFreeSpaceAllocationAlgorithm(LayoutUnit& availableFreeSpace, float& totalPositiveFlexibility, float& totalNegativeFlexibility, InflexibleFlexItemSize&);

Seems like kind of a generic name for only dealing with horizontal. I don't know if you plan to put vertical in here too though. If so, then don't worry about it.
Comment 3 Tony Chang 2011-08-23 12:22:43 PDT
Created attachment 104888 [details]
Patch for landing
Comment 4 Tony Chang 2011-08-23 12:42:53 PDT
(In reply to comment #2)
> (From update of attachment 104748 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=104748&action=review
> 
> r=me
> 
> > Source/WebCore/rendering/RenderFlexibleBox.cpp:187
> > +    LayoutUnit flexboxAvailableLogicalWidth = availableLogicalWidth();
> 
> Add a FIXME: Deal with writing-modes above this availableLogicalWidth() line, since that's the wrong axis to be looking at if writing-mode is vertical-lr and the box orientation is explicitly horizontal.

I added a few FIXMEs about this.  I asked Tab about it over email and he said he's not sure what should happen yet and needs to hash out the details Fantasai.
Comment 5 Tony Chang 2011-08-23 12:43:27 PDT
(In reply to comment #4)
> I added a few FIXMEs about this.  I asked Tab about it over email and he said he's not sure what should happen yet and needs to hash out the details [with] Fantasai.
Comment 6 WebKit Review Bot 2011-08-23 16:10:59 PDT
Comment on attachment 104888 [details]
Patch for landing

Clearing flags on attachment: 104888

Committed r93651: <http://trac.webkit.org/changeset/93651>
Comment 7 WebKit Review Bot 2011-08-23 16:11:04 PDT
All reviewed patches have been landed.  Closing bug.