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

Issue 1459633004: Pull CSS-wide keyword handling out of LegacyCSSPropertyParser (Closed)

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

Description

Pull CSS-wide keyword handling out of LegacyCSSPropertyParser This patch moves the handling for the css-wide keywords (initial, inherit and unset) out of the LegacyCSSPropertyParser and into the CSSPropertyParser where it can be parsed with CSSParserTokens. This patch also adds an additional function between the public parseValue and the internal parseValue. Subsequent patches will make this new function also responsible for handling CSS variables and calling out to parseSingleValue and parseShorthand, instead of having these called from the legacy paths. BUG=499780 Committed: https://crrev.com/f136c1136dce0cb6d28a83571edcb2fce835a18c Cr-Commit-Position: refs/heads/master@{#361577}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : rebase over 1471933003 #

Total comments: 1

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -27 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 chunks +38 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp View 1 2 3 2 chunks +2 lines, -17 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Timothy Loh
First of three patches (mostly I'm procrastinating parsing <position>...)
5 years, 1 month ago (2015-11-20 07:37:42 UTC) #2
rwlbuis
On 2015/11/20 07:37:42, Timothy Loh wrote: > First of three patches (mostly I'm procrastinating parsing ...
5 years, 1 month ago (2015-11-20 14:13:08 UTC) #3
rwlbuis
I like the patch in general. Postponing the creation of CSSParserValueList can only be a ...
5 years, 1 month ago (2015-11-20 14:19:16 UTC) #4
Timothy Loh
https://codereview.chromium.org/1459633004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1459633004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode90 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:90: CSSParserTokenRange rangeCopy = m_range; On 2015/11/20 14:19:16, rwlbuis (OOO ...
5 years ago (2015-11-24 03:34:24 UTC) #5
Timothy Loh
5 years ago (2015-11-24 05:34:35 UTC) #7
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/1459633004/diff/40001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1459633004/diff/40001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode76 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:76: bool CSSPropertyParser::parseValueStart(CSSPropertyID unresolvedProperty, bool important) I don't like ...
5 years ago (2015-11-24 05:54:30 UTC) #8
rwlbuis
On 2015/11/24 03:34:24, Timothy Loh wrote: > https://codereview.chromium.org/1459633004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp > File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): > > https://codereview.chromium.org/1459633004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode90 ...
5 years ago (2015-11-24 14:16:45 UTC) #9
rwlbuis
lgtm
5 years ago (2015-11-24 14:17:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459633004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459633004/40001
5 years ago (2015-11-24 23:51:05 UTC) #12
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/134120)
5 years ago (2015-11-25 01:30:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459633004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459633004/60001
5 years ago (2015-11-25 02:25:07 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-11-25 05:03:26 UTC) #18
commit-bot: I haz the power
5 years ago (2015-11-25 05:04:24 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f136c1136dce0cb6d28a83571edcb2fce835a18c
Cr-Commit-Position: refs/heads/master@{#361577}

Powered by Google App Engine
This is Rietveld 408576698