Bug 77909 - Floated flexboxes render as regular RenderBlocks
Summary: Floated flexboxes render as regular RenderBlocks
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ojan Vafai
URL: http://plexode.com/eval3/#ht=%3Cdiv%2...
Keywords:
Depends on:
Blocks: 62048
  Show dependency treegraph
 
Reported: 2012-02-06 16:00 PST by Ojan Vafai
Modified: 2012-02-08 11:58 PST (History)
6 users (show)

See Also:


Attachments
Patch (6.66 KB, patch)
2012-02-07 16:38 PST, Ojan Vafai
no flags Details | Formatted Diff | Diff
Patch (6.95 KB, patch)
2012-02-07 18:59 PST, Ojan Vafai
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2012-02-06 16:00:18 PST
I expect layoutBlock never gets called for floats.
Comment 1 Ojan Vafai 2012-02-07 16:38:52 PST
Created attachment 125953 [details]
Patch
Comment 2 Ojan Vafai 2012-02-07 16:42:45 PST
Comment on attachment 125953 [details]
Patch

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

> LayoutTests/css3/flexbox/floated-flexbox-expected.txt:2
> +FAIL:
> +Expected 130 for width, but got 110. 

This fails because of not implementing computePreferredLogicalWidth as per https://bugs.webkit.org/show_bug.cgi?id=76867.

This patch fixes the expected height to be 30 instead of 50 since the flex-items no longer wrap now that we properly treat the parent as a flexbox.
Comment 3 WebKit Review Bot 2012-02-07 17:29:23 PST
Comment on attachment 125953 [details]
Patch

Attachment 125953 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/11460165

New failing tests:
fast/lists/001-vertical.html
fast/block/float/016.html
fast/lists/001.html
fast/lists/positioned-count-crash.html
Comment 4 Darin Adler 2012-02-07 17:51:04 PST
Comment on attachment 125953 [details]
Patch

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

> Source/WebCore/css/CSSStyleSelector.cpp:1730
> +static void adjustDisplay(RenderStyle* style, Element *e, bool strictParsing)

Element* element, not Element *e
Comment 5 Ojan Vafai 2012-02-07 18:59:01 PST
Created attachment 125984 [details]
Patch
Comment 6 Ojan Vafai 2012-02-07 18:59:43 PST
Restructured after discussion with Eric.
Comment 7 Eric Seidel (no email) 2012-02-08 11:46:50 PST
Comment on attachment 125984 [details]
Patch

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

> Source/WebCore/css/CSSStyleSelector.cpp:1771
> +    case NONE: // FIXME: Should NONE really map to BLOCK here?

I'm not sure thsi FIXME makes sense anymore, but the code seems fine.
Comment 8 Ojan Vafai 2012-02-08 11:58:50 PST
Committed r107112: <http://trac.webkit.org/changeset/107112>