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

Issue 2612733002: Don't check implicit flag for serializing background and -webkit-mask (Closed)

Created:
3 years, 11 months ago by Timothy Loh
Modified:
3 years, 11 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't check implicit flag for serializing background and -webkit-mask This patch edits the StylePropertySerializer to no longer look at the implicit flag, in particular for the remaining two properties using it, background and -webkit-mask. This makes those shorthands behave more consistently. In both of the updated test cases, the set values would result in an identical set of longhands as being set by the new returned shorthand, aside from the (invisible) implicit flag. We now allow this serialization to remove the case where styles can appear identical in their longhands (shorthands technically are not in the styles) but still serialize differently. This patch removes the last usage of the implicit flag outside of devtools. We may simply want to remove the usage there as the flag is not actually set particularly consistently, and does not even make sense for properties like background and animation. BUG=471917 Committed: https://crrev.com/dc0de0608505a5bf92e0ee71f2efd4a7424f2969 Cr-Commit-Position: refs/heads/master@{#441331}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -41 lines) Patch
M third_party/WebKit/LayoutTests/fast/css/background-serialize.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-mask.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-mask-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySerializer.h View 4 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySerializer.cpp View 9 chunks +10 lines, -33 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Timothy Loh
3 years, 11 months ago (2017-01-04 06:17:57 UTC) #4
alancutter (OOO until 2018)
lgtm
3 years, 11 months ago (2017-01-04 06:44:22 UTC) #5
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/2612733002/1
3 years, 11 months ago (2017-01-04 06:47:20 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2017-01-04 07:39:13 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 07:42:06 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/dc0de0608505a5bf92e0ee71f2efd4a7424f2969
Cr-Commit-Position: refs/heads/master@{#441331}

Powered by Google App Engine
This is Rietveld 408576698