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

Issue 2772263004: Added CSSPropertyCounterUtils which holds shared counter parsing logic. (Closed)

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

Description

Added CSSPropertyCounterUtils which holds shared counter parsing logic. This patch: - Added CSSPropertyCounterUtils - Moved consumeCounter method from CSSPropertyParser to CSSPropertyCounterUtils - Replaced the use of raw int in argument to consumeCounter with more readable named enum values This is pre work to move parseSingleValue logic from CSSPropertyParser to the property APIs for CounterIncrement and CounterReset properties. BUG=668012 Review-Url: https://codereview.chromium.org/2772263004 Cr-Commit-Position: refs/heads/master@{#460019} Committed: https://chromium.googlesource.com/chromium/src/+/45a8388f50dc32a97316656fe3170329fe5e1c6a

Patch Set 1 #

Total comments: 1

Patch Set 2 : addressed reviewer comment #

Total comments: 3

Patch Set 3 : addressed reviewer comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -22 lines) Patch
M third_party/WebKit/Source/core/css/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 chunks +5 lines, -22 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp View 1 2 1 chunk +37 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (14 generated)
Bugs Nash
3 years, 9 months ago (2017-03-28 01:15:39 UTC) #4
shend
lgtm with nits. https://codereview.chromium.org/2772263004/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp (right): https://codereview.chromium.org/2772263004/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp#newcode26 third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp:26: int i = static_cast<int>(defaultValue); Could we ...
3 years, 9 months ago (2017-03-28 01:58:48 UTC) #5
Bugs Nash
On 2017/03/28 at 01:58:48, shend wrote: > lgtm with nits. > > https://codereview.chromium.org/2772263004/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp > File ...
3 years, 9 months ago (2017-03-28 02:01:20 UTC) #6
Bugs Nash
+suzyh for owners
3 years, 9 months ago (2017-03-28 02:07:52 UTC) #10
suzyh_UTC10 (ex-contributor)
https://codereview.chromium.org/2772263004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp (right): https://codereview.chromium.org/2772263004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp#newcode26 third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp:26: int value = static_cast<int>(defaultValue); This int-iness enum-iness arrangement is ...
3 years, 9 months ago (2017-03-28 02:26:08 UTC) #11
Bugs Nash
https://codereview.chromium.org/2772263004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp (right): https://codereview.chromium.org/2772263004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp#newcode29 third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp:29: value = clampTo<int>(counterValue->getDoubleValue()); On 2017/03/28 at 02:26:08, suzyh wrote: ...
3 years, 9 months ago (2017-03-28 02:32:50 UTC) #12
suzyh_UTC10 (ex-contributor)
On 2017/03/28 at 02:32:50, bugsnash wrote: > https://codereview.chromium.org/2772263004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp > File third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp (right): > > https://codereview.chromium.org/2772263004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyCounterUtils.cpp#newcode29 ...
3 years, 9 months ago (2017-03-28 02:43:18 UTC) #15
Bugs Nash
On 2017/03/28 at 02:43:18, suzyh wrote: > On 2017/03/28 at 02:32:50, bugsnash wrote: > > ...
3 years, 9 months ago (2017-03-28 02:55:19 UTC) #16
Bugs Nash
On 2017/03/28 at 02:55:19, Bugs Nash wrote: > On 2017/03/28 at 02:43:18, suzyh wrote: > ...
3 years, 9 months ago (2017-03-28 02:57:32 UTC) #17
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/2772263004/40001
3 years, 9 months ago (2017-03-28 05:39:52 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-28 05:46:41 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/45a8388f50dc32a97316656fe317...

Powered by Google App Engine
This is Rietveld 408576698