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

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

Created:
4 years, 3 months ago by Timothy Loh
Modified:
4 years, 3 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
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 Review-Url: https://codereview.chromium.org/2298613004 Cr-Commit-Position: refs/heads/master@{#415795} (cherry picked from commit bab582c0efeee11acecc6754e91d1af982044bd1) Committed: https://chromium.googlesource.com/chromium/src/+/36d9fdb4a1f1a27447d502ef1ea457f2156154d6

Patch Set 1 #

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 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
Timothy Loh
4 years, 3 months ago (2016-09-02 06:06:11 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
36d9fdb4a1f1a27447d502ef1ea457f2156154d6.

Powered by Google App Engine
This is Rietveld 408576698