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

Issue 1412803007: Parse text-decoration shorthand in CSSPropertyParser with CSSParserTokens (Closed)

Created:
5 years, 1 month ago by rwlbuis
Modified:
5 years, 1 month ago
Reviewers:
Timothy Loh
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Parse text-decoration shorthand in CSSPropertyParser with CSSParserTokens Move text-decoration shorthand property handling from LegacyCSSPropertyParser into CSSPropertyParser. Also move its related longhands. This patch adds a generic consumeShorthandGreedily that can be used to convert other shorthands. Finally the patch refuses duplicate keyword entries for text-decoration-line (like "blink blink") and adds tests for this to text-decoration-line.html. BUG=499780 Committed: https://crrev.com/df53d14ebf099ad282ccbdd066e892bb6e5cfdaf Cr-Commit-Position: refs/heads/master@{#357842}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Try to fix failures #

Patch Set 4 : Rebase #

Patch Set 5 : Fix "blink blink" problem #

Patch Set 6 : Alternative fix #

Total comments: 6

Patch Set 7 : Improvements to consumeShorthand #

Patch Set 8 : Patch for review #

Total comments: 4

Patch Set 9 : Address review comments #

Total comments: 2

Patch Set 10 : Patch for landing #

Patch Set 11 : Speculative fix #

Patch Set 12 : Patch for landing #

Messages

Total messages: 47 (20 generated)
rwlbuis
PTAL. I think we can choose between #5 and #6.
5 years, 1 month ago (2015-11-02 03:00:54 UTC) #3
rwlbuis
@timloh, I just noticed you have shorthand assigned, not sure if I assigned to myself ...
5 years, 1 month ago (2015-11-02 03:09:30 UTC) #4
Timothy Loh
On 2015/11/02 03:09:30, rwlbuis wrote: > @timloh, I just noticed you have shorthand assigned, not ...
5 years, 1 month ago (2015-11-02 03:26:26 UTC) #5
Timothy Loh
https://codereview.chromium.org/1412803007/diff/100001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1412803007/diff/100001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode1429 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:1429: ListHashSet<int>::AddResult result = ids.add(ident->getValueID()); I guess we can just ...
5 years, 1 month ago (2015-11-02 03:36:28 UTC) #6
rwlbuis
On 2015/11/02 03:26:26, Timothy Loh wrote: > On 2015/11/02 03:09:30, rwlbuis wrote: > > @timloh, ...
5 years, 1 month ago (2015-11-02 03:41:45 UTC) #7
rwlbuis
PTAL. I took most of your consumeShorthandGreedily implementation. However since we chose the array of ...
5 years, 1 month ago (2015-11-02 22:39:43 UTC) #9
Timothy Loh
I had some comments earlier on the text-deco specific stuff in case you missed it ...
5 years, 1 month ago (2015-11-03 05:50:58 UTC) #10
rwlbuis
https://codereview.chromium.org/1412803007/diff/140001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1412803007/diff/140001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode2005 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:2005: for (unsigned propertyIndex = 0; !foundLonghand && propertyIndex < ...
5 years, 1 month ago (2015-11-03 20:51:09 UTC) #11
rwlbuis
Ouch, I missed these remarks first time :| PTAL. https://codereview.chromium.org/1412803007/diff/100001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1412803007/diff/100001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode1429 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:1429: ...
5 years, 1 month ago (2015-11-03 20:53:15 UTC) #12
Timothy Loh
lgtm, but mention the behaviour improvement in the patch description :) https://codereview.chromium.org/1412803007/diff/160001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): ...
5 years, 1 month ago (2015-11-04 00:03:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412803007/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412803007/180001
5 years, 1 month ago (2015-11-04 00:28:15 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/61975)
5 years, 1 month ago (2015-11-04 01:15:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412803007/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412803007/180001
5 years, 1 month ago (2015-11-04 01:39:17 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/83673)
5 years, 1 month ago (2015-11-04 02:10:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412803007/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412803007/180001
5 years, 1 month ago (2015-11-04 02:36:02 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/91014)
5 years, 1 month ago (2015-11-04 02:42:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412803007/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412803007/200001
5 years, 1 month ago (2015-11-04 03:35:09 UTC) #31
do_not_use
On 2015/11/04 03:35:09, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 1 month ago (2015-11-04 03:57:05 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/124308)
5 years, 1 month ago (2015-11-04 04:17:59 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412803007/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412803007/220001
5 years, 1 month ago (2015-11-04 14:54:24 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/74184)
5 years, 1 month ago (2015-11-04 16:21:46 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412803007/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412803007/220001
5 years, 1 month ago (2015-11-04 16:23:42 UTC) #41
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 1 month ago (2015-11-04 17:35:15 UTC) #42
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/df53d14ebf099ad282ccbdd066e892bb6e5cfdaf Cr-Commit-Position: refs/heads/master@{#357842}
5 years, 1 month ago (2015-11-04 17:35:57 UTC) #43
michaeln
Looks like this cl may be responsible for crbug/551638? I'll revert for now. Apologies if ...
5 years, 1 month ago (2015-11-05 20:08:15 UTC) #45
michaeln
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/1417733010/ by michaeln@chromium.org. ...
5 years, 1 month ago (2015-11-05 20:10:53 UTC) #46
rwlbuis
5 years, 1 month ago (2015-11-05 21:27:18 UTC) #47
Message was sent while issue was closed.
On 2015/11/05 20:10:53, michaeln wrote:
> A revert of this CL (patchset #12 id:220001) has been created in
> https://codereview.chromium.org/1417733010/ by mailto:michaeln@chromium.org.
> 
> The reason for reverting is: Looks like this cl may be responsible for
> crbug/551638? Apologies if its not the culprit..

It is the culprit. The problem is addressed in
https://codereview.chromium.org/1422363007/ , I'll incorporate it with this
patch to bring this functionality back.

Powered by Google App Engine
This is Rietveld 408576698