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

Issue 1676513003: Move background/webkit-mask shorthands into CSSPropertyParser (Closed)

Created:
4 years, 10 months ago by rwlbuis
Modified:
4 years, 9 months ago
Reviewers:
Timothy Loh
CC:
chromium-reviews, 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

Move background/webkit-mask shorthand into CSSPropertyParser Move the background/webkit-mask related shorthands from LegacyCSSPropertyParser into CSSPropertyParser. BUG=499780 Committed: https://crrev.com/415fcc3e0defda31ddd412d266b37c567936c15d Cr-Commit-Position: refs/heads/master@{#379752}

Patch Set 1 #

Patch Set 2 : V2 #

Patch Set 3 : V3 #

Patch Set 4 : V4 #

Patch Set 5 : V5 #

Patch Set 6 : V6 #

Patch Set 7 : V7 #

Patch Set 8 : V8 #

Patch Set 9 : Add background-repeat handling #

Patch Set 10 : First stab at background shorthand #

Patch Set 11 : Add some logic #

Patch Set 12 : Add improvement to background-color logic #

Patch Set 13 : Fix forward slash parsing #

Patch Set 14 : Add implicit handling for repeat #

Patch Set 15 : Make repeat/position use single values #

Patch Set 16 : Add background + size check #

Patch Set 17 : Add a fix regarding background-size #

Patch Set 18 : Rebase #

Patch Set 19 : Try to fix tests #

Patch Set 20 : Add webkit-mask handling #

Patch Set 21 : Address review comments #

Patch Set 22 : Rebase #

Patch Set 23 : Background change only #

Patch Set 24 : Fix tests #

Patch Set 25 : Cleanup #

Patch Set 26 : Remove seenSize #

Patch Set 27 : More cleanup #

Patch Set 28 : Explan a bit more #

Total comments: 11

Patch Set 29 : Fix color #

Patch Set 30 : Fix clip + add test #

Patch Set 31 : Fix background-size logic #

Total comments: 15

Patch Set 32 : Fix review issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -153 lines) Patch
A third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-position-parsing-2.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +18 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-position-parsing-2-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +18 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-after-set-backgroundSize.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 23 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-after-set-backgroundSize-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 23 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 23 7 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 23 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/parsing-unitless-length-quirk.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/inspector-support/style-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 23 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-mask.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +37 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-mask-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +37 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-new-API-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 23 3 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +91 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 29 30 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
rwlbuis
PTAL. This code will never be pretty, but I think at least it is better ...
4 years, 9 months ago (2016-03-02 03:54:43 UTC) #4
Timothy Loh
On 2016/03/02 03:54:43, rwlbuis wrote: > PTAL. > > This code will never be pretty, ...
4 years, 9 months ago (2016-03-02 04:07:01 UTC) #5
Timothy Loh
This is way better than before :) https://codereview.chromium.org/1676513003/diff/540001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1676513003/diff/540001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode4574 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:4574: bool seenClip ...
4 years, 9 months ago (2016-03-02 04:50:28 UTC) #6
rwlbuis
PTAL. https://codereview.chromium.org/1676513003/diff/540001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1676513003/diff/540001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode4574 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:4574: bool seenClip = false; On 2016/03/02 04:50:27, Timothy ...
4 years, 9 months ago (2016-03-07 02:50:04 UTC) #8
Timothy Loh
https://codereview.chromium.org/1676513003/diff/540001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1676513003/diff/540001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode4594 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:4594: } else if (((property == CSSPropertyBackgroundSize || property == ...
4 years, 9 months ago (2016-03-07 03:55:08 UTC) #9
Timothy Loh
https://codereview.chromium.org/1676513003/diff/620001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1676513003/diff/620001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode4624 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:4624: CSSPropertyID property = shorthand.properties()[i]; On 2016/03/07 03:55:07, Timothy Loh ...
4 years, 9 months ago (2016-03-07 06:25:37 UTC) #10
rwlbuis
PTAL. https://codereview.chromium.org/1676513003/diff/620001/third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html File third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html (right): https://codereview.chromium.org/1676513003/diff/620001/third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html#newcode6 third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html:6: description("Tests a flag to make background shorthand property ...
4 years, 9 months ago (2016-03-08 02:51:49 UTC) #11
Timothy Loh
lgtm
4 years, 9 months ago (2016-03-08 03:04:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676513003/640001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676513003/640001
4 years, 9 months ago (2016-03-08 03:33:39 UTC) #14
commit-bot: I haz the power
Committed patchset #32 (id:640001)
4 years, 9 months ago (2016-03-08 05:08:47 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 05:09:57 UTC) #18
Message was sent while issue was closed.
Patchset 32 (id:??) landed as
https://crrev.com/415fcc3e0defda31ddd412d266b37c567936c15d
Cr-Commit-Position: refs/heads/master@{#379752}

Powered by Google App Engine
This is Rietveld 408576698