RESOLVED WONTFIX67437
support -webkit-flex-flow: horizontal-rtl
https://bugs.webkit.org/show_bug.cgi?id=67437
Summary support -webkit-flex-flow: horizontal-rtl
Ojan Vafai
Reported 2011-09-01 14:21:01 PDT
support -webkit-flex-flow: horizontal-rtl
Attachments
Patch (9.61 KB, patch)
2011-09-01 14:22 PDT, Ojan Vafai
no flags
Patch (10.26 KB, patch)
2011-09-01 18:22 PDT, Ojan Vafai
no flags
Ojan Vafai
Comment 1 2011-09-01 14:22:22 PDT
Tony Chang
Comment 2 2011-09-01 16:36:27 PDT
Comment on attachment 106029 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=106029&action=review Just some minor style nits. > LayoutTests/ChangeLog:10 > + * platform/mac/Skipped: Nit: This file doesn't appear to have changed. > LayoutTests/css3/flexbox/right-to-left.html:36 > +<div class="horizontal-box"> > + <div data-offset-x="400" style="width: -webkit-flex(1)"></div> Can you add a test with different flex values? Also, some tests with horizontal margins or paddings on the flex items? > Source/WebCore/rendering/RenderFlexibleBox.cpp:257 > + default: > + ASSERT_NOT_REACHED(); > + return FlowLeftToRight; I think we can remove the default case since you enumerated all the cases. > Source/WebCore/rendering/RenderFlexibleBox.cpp:261 > +LayoutUnit RenderFlexibleBox::startOffset() Maybe add MainAxis to this function name?
Ojan Vafai
Comment 3 2011-09-01 18:22:46 PDT
Ojan Vafai
Comment 4 2011-09-01 18:23:52 PDT
(In reply to comment #2) > (From update of attachment 106029 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=106029&action=review > > Source/WebCore/rendering/RenderFlexibleBox.cpp:257 > > + default: > > + ASSERT_NOT_REACHED(); > > + return FlowLeftToRight; > > I think we can remove the default case since you enumerated all the cases. Compiler's not smart enough to realize it isn't lacking a return statement. In either case, I moved the assert and return statement out of the switch. I think that'll be better as this function expands to include the other cases.
Tony Chang
Comment 5 2011-09-02 09:10:01 PDT
Comment on attachment 106076 [details] Patch LGTM, but I defer to Hyatt.
Ojan Vafai
Comment 6 2011-09-09 17:06:56 PDT
Comment on attachment 106076 [details] Patch As per discussion with Hyatt on IRC, all this code needs to be reworked to operate in logical, not physical coordiantes.
Note You need to log in before you can comment on or make changes to this bug.