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

Issue 2298613004: [css-align] Check runtime flags for align-items 'auto' value resolution (Closed)

Created:
4 years, 3 months ago by jfernandez
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-align] Check runtime flags for align-items 'auto' value resolution The StyleAdjuster::adjustStyleForAlignment logic is optimized to avoid resolving 'auto' values on alignment properties using its parent's align-items default value. This way we can minimize the copy-on-write overhead, since 'auto' is the default value of some CSS Alignment properties. However, align-items default value is different depending on whether the CSS Grid Layout feature is enabled in runtime flags or not. We were not checking out the runtime flags when applying the optimization mentioned before, hence, when Grid is disabled, we are overwriting all the align-self properties with 'auto' values (the default) with its parent's align-items default value (stretch). This was verified as the root cause of the performance regression reported in bug 642263. This patch solves the issue by using the proper default value, depending on the runtime flags, when evaluating whether resolving the align-self's 'auto' values or not. BUG=642263 Committed: https://crrev.com/bab582c0efeee11acecc6754e91d1af982044bd1 Cr-Commit-Position: refs/heads/master@{#415795}

Patch Set 1 #

Patch Set 2 : Using Default-Alignment initial value instead of a harcode default value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (7 generated)
jfernandez
Sent for review.
4 years, 3 months ago (2016-08-31 13:45:49 UTC) #3
cbiesinger
lgtm, but the layout test failure on windows may be real. (also note that the ...
4 years, 3 months ago (2016-08-31 15:09:19 UTC) #4
rune
On 2016/08/31 15:09:19, cbiesinger wrote: > lgtm, but the layout test failure on windows may ...
4 years, 3 months ago (2016-08-31 15:33:40 UTC) #5
jfernandez
On 2016/08/31 15:33:40, rune wrote: > On 2016/08/31 15:09:19, cbiesinger wrote: > > lgtm, but ...
4 years, 3 months ago (2016-08-31 15:54:37 UTC) #6
cbiesinger
On 2016/08/31 15:54:37, jfernandez wrote: > On 2016/08/31 15:33:40, rune wrote: > > On 2016/08/31 ...
4 years, 3 months ago (2016-08-31 15:56:48 UTC) #7
jfernandez
On 2016/08/31 15:56:48, cbiesinger wrote: > On 2016/08/31 15:54:37, jfernandez wrote: > > On 2016/08/31 ...
4 years, 3 months ago (2016-08-31 16:07:14 UTC) #8
eae
LGTM
4 years, 3 months ago (2016-08-31 16:07:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2298613004/40001
4 years, 3 months ago (2016-08-31 21:43:58 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-08-31 23:09:37 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 23:12:42 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bab582c0efeee11acecc6754e91d1af982044bd1
Cr-Commit-Position: refs/heads/master@{#415795}

Powered by Google App Engine
This is Rietveld 408576698