Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1920453003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1920453003/20001
4 years, 8 months ago
(2016-04-23 00:04:57 UTC)
#3
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/LayoutTests/css3/flexbox/position-absolute-child.html File third_party/WebKit/LayoutTests/css3/flexbox/position-absolute-child.html (right): https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/LayoutTests/css3/flexbox/position-absolute-child.html#newcode85 third_party/WebKit/LayoutTests/css3/flexbox/position-absolute-child.html:85: // crossAxisOffset is used for the absolute-positioned child. Thanks ...
4 years, 8 months ago
(2016-04-25 02:37:29 UTC)
#7
Emil, please take another look! https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode1228 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:1228: bool relaidOut = false; ...
4 years, 8 months ago
(2016-04-26 18:21:56 UTC)
#8
Emil, please take another look!
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right):
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutBlock.cpp:1228: bool relaidOut =
false;
On 2016/04/25 02:37:28, eae wrote:
> How about needsLayout or layoutChanged instead?
Done, though I'm not certain I like this one either :-)
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp (right):
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp:1333: switch
(distribution) {
On 2016/04/25 02:37:28, eae wrote:
> Probably easier to use a regular if statement here.
>
> if (distribution == ContentDistributionSpaceAround)
> return (mainAxisExtent - mainAxisExtentForChild(child)) / 2;
I realized I can simplify this by reusing code, so this is quite different now.
Can't do it easily for cross axis though :(
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp:1386: if
(isColumnFlow())
On 2016/04/25 02:37:28, eae wrote:
> (optional) There is a bit of code duplication here, how about having a helper
> for getting the resolvedAxisPosition or using an iif-statement?
>
> LayoutUnit LayoutFlexibleBox::resolvedAxisPosition(...)
> {
> return isColumnFlow()
> ? staticCrossAxisPositionForPositionedChild(child)
> : staticMainAxisPositionForPositionedChild(child);
> }
>
> LayoutFlexibleBox::staticInlinePositionForPositionedChild(...)
> {
> ...
> return staticInlineOffset + resolvedAxisPosition(child);
> }
>
>
> or
>
> return staticInlineOffset + isColumnFlow()
> ? staticCrossAxisPositionForPositionedChild(child)
> : staticMainAxisPositionForPositionedChild(child);
>
>
>
> Again, this is just a suggestion and only do it if you think it makes it
simpler
> or reduces code duplication.
I like the second idea, thanks! Changed, modulo some parentheses required by the
C++ grammar (thanks clang for pointing that out)
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h (right):
https://codereview.chromium.org/1920453003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h:79:
On 2016/04/25 02:37:28, eae wrote:
> Having a setter return a bool is a bit unusual. You might want to add a
comment
> explaining the return value.
Done.
cbiesinger
The CQ bit was checked by cbiesinger@chromium.org to run a CQ dry run
4 years, 8 months ago
(2016-04-26 21:03:30 UTC)
#9
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1920453003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1920453003/60001
4 years, 8 months ago
(2016-04-26 21:04:22 UTC)
#10
So I just created https://codereview.chromium.org/1923103002/ and rebased this one on top of that, and I ...
4 years, 8 months ago
(2016-04-26 21:05:07 UTC)
#11
So I just created https://codereview.chromium.org/1923103002/ and rebased this
one on top of that, and I hoped that rietveld would notice the dependency.
Nope... this CL now contains that one too :/ Please review independently.
Thanks!
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
4 years, 8 months ago
(2016-04-26 22:19:29 UTC)
#12
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/211807)
4 years, 8 months ago
(2016-04-26 22:19:30 UTC)
#13
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1920453003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1920453003/100001
4 years, 7 months ago
(2016-04-27 16:40:21 UTC)
#17
Issue 1920453003: [css-flexbox] Implement new abspos handling
(Closed)
Created 4 years, 8 months ago by cbiesinger
Modified 4 years, 7 months ago
Reviewers: leviw_travelin_and_unemployed, eae
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 9