Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Issue 715083002: Avoid blowing away the intrinsicContentLogicalHeight when stretching height in FlexBox (Closed)

Created:
6 years, 1 month ago by leviw_travelin_and_unemployed
Modified:
6 years, 1 month ago
Reviewers:
cbiesinger, eae, ojan
CC:
blink-reviews, blink-reviews-rendering, cbiesinger, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Project:
blink
Visibility:
Public.

Description

Avoid blowing away the intrinsicContentLogicalHeight when stretching height in FlexBox Cache and reset the intrinsic content logical height of children when stretching them in FlexBox. This is to avoid them reseting it to the stretched height, which leads us to improperly avoiding layout later when stretching is no longer necessary. This solution is too fragile, but I couldn't come up with one that was more robust but doesn't break the optimization. BUG=409779 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185173

Patch Set 1 #

Patch Set 2 : Add test case and FIXME #

Total comments: 1

Patch Set 3 : s/EAE likes/I like/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
A LayoutTests/fast/flexbox/relayout-stretched-flexbox.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/fast/flexbox/relayout-stretched-flexbox-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/RenderBox.h View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
leviw_travelin_and_unemployed
6 years, 1 month ago (2014-11-12 02:03:13 UTC) #2
eae
Not the most elegant solution but seems to do the trick. LGTM/w nit. Feel free ...
6 years, 1 month ago (2014-11-12 02:05:37 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715083002/40001
6 years, 1 month ago (2014-11-12 02:09:04 UTC) #5
blink-reviews
lgtm. Maybe rename the function to set* instead of update*? Some of our update* functions ...
6 years, 1 month ago (2014-11-12 02:11:30 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 185173
6 years, 1 month ago (2014-11-12 03:15:43 UTC) #7
leviw_travelin_and_unemployed
6 years, 1 month ago (2014-11-12 03:41:14 UTC) #8
Message was sent while issue was closed.
I'll follow-up with a rename.

Powered by Google App Engine
This is Rietveld 408576698