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

Issue 1306823004: Split out String, URI and CustomIdent from CSSPrimitiveValue (Closed)

Created:
5 years, 4 months ago by sashab
Modified:
5 years, 2 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-style_chromium.org, dglazkov+blink, Eric Willigers, esprehn, rjwright, rwlbuis, shans
Base URL:
https://chromium.googlesource.com/chromium/blink.git@split_out_attr_values
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split out String, URI and CustomIdent from CSSPrimitiveValue Remove String, URI and CustomIdent from CSSPrimitiveValue and moved them into 3 new classes: CSSStringValue, CSSURIValue and CSSCustomIdentValue. BUG=523893 Committed: https://crrev.com/10f96710fa357e0699f6ae62ac29b2c3bc1b3441 Cr-Commit-Position: refs/heads/master@{#352795}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 1

Patch Set 3 : Fixed some small bugs #

Patch Set 4 : Split CSSStringValue into 3 separate classes and added type info to callsites #

Total comments: 12

Patch Set 5 : Review feedback #

Patch Set 6 : Rebase #

Patch Set 7 : Fixing tests #

Total comments: 4

Patch Set 8 : Review feedback from alan #

Total comments: 2

Patch Set 9 : Review feedback #

Patch Set 10 : Rebase onto Chrome #

Patch Set 11 : Review feedback from crrev.com/1373433002 #

Patch Set 12 : Rebase & cleanup #

Patch Set 13 : Rebase #

Patch Set 14 : Small bugfix #

Patch Set 15 : Rebase #

Total comments: 8

Patch Set 16 : Rebase #

Patch Set 17 : Rebase #

Patch Set 18 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+463 lines, -255 lines) Patch
M third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +16 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCounterValue.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -8 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSCustomIdentValue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.h View 1 2 3 4 5 6 7 8 9 8 chunks +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +0 lines, -47 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSStringValue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSStringValue.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSURIValue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSURIValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 chunks +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValuePool.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValuePool.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 21 chunks +31 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleFeature.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserValues.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserValues.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserValuesTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 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 4 chunks +5 lines, -3 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 4 chunks +9 lines, -6 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 31 chunks +45 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +26 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +21 lines, -25 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (12 generated)
sashab
5 years, 4 months ago (2015-08-26 07:54:07 UTC) #2
Timothy Loh
https://codereview.chromium.org/1306823004/diff/20001/Source/core/css/CSSStringValue.h File Source/core/css/CSSStringValue.h (right): https://codereview.chromium.org/1306823004/diff/20001/Source/core/css/CSSStringValue.h#newcode50 Source/core/css/CSSStringValue.h:50: StringImpl* m_string; ..just store a String :\
5 years, 3 months ago (2015-08-31 06:32:47 UTC) #3
sashab
5 years, 3 months ago (2015-09-01 06:46:15 UTC) #4
Timothy Loh
This doesn't look like an improvement to me (esp. in the StyleBuilder code). dstockwell/alancutter, WDYT?
5 years, 3 months ago (2015-09-07 03:44:04 UTC) #6
alancutter (OOO until 2018)
On 2015/09/07 at 03:44:04, timloh wrote: > This doesn't look like an improvement to me ...
5 years, 3 months ago (2015-09-07 05:00:34 UTC) #7
Timothy Loh
On 2015/09/07 05:00:34, alancutter wrote: > On 2015/09/07 at 03:44:04, timloh wrote: > > This ...
5 years, 3 months ago (2015-09-07 05:14:42 UTC) #8
sashab
5 years, 3 months ago (2015-09-10 07:06:15 UTC) #9
Timothy Loh
https://codereview.chromium.org/1306823004/diff/60001/Source/core/css/CSSStringValue.h File Source/core/css/CSSStringValue.h (right): https://codereview.chromium.org/1306823004/diff/60001/Source/core/css/CSSStringValue.h#newcode17 Source/core/css/CSSStringValue.h:17: enum StringSerializationType { This.. isn't really a serialization type, ...
5 years, 3 months ago (2015-09-10 07:36:51 UTC) #10
alancutter (OOO until 2018)
Much neater now that they're split up. The template approach is a little crazy but ...
5 years, 3 months ago (2015-09-17 02:59:30 UTC) #11
sashab
Responded to both sets of comments. :) https://codereview.chromium.org/1306823004/diff/60001/Source/core/css/CSSStringValue.h File Source/core/css/CSSStringValue.h (right): https://codereview.chromium.org/1306823004/diff/60001/Source/core/css/CSSStringValue.h#newcode17 Source/core/css/CSSStringValue.h:17: enum StringSerializationType ...
5 years, 3 months ago (2015-09-17 04:19:49 UTC) #12
Timothy Loh
Let's use a separate enum instead of making CSSValue's type enum public https://codereview.chromium.org/1306823004/diff/140001/Source/core/css/CSSStringValueBase.h File Source/core/css/CSSStringValueBase.h ...
5 years, 3 months ago (2015-09-17 05:35:01 UTC) #13
sashab
Latest patch uses separate enum; ptal timloh. https://codereview.chromium.org/1306823004/diff/140001/Source/core/css/CSSStringValueBase.h File Source/core/css/CSSStringValueBase.h (right): https://codereview.chromium.org/1306823004/diff/140001/Source/core/css/CSSStringValueBase.h#newcode16 Source/core/css/CSSStringValueBase.h:16: class CORE_EXPORT ...
5 years, 3 months ago (2015-09-21 01:13:27 UTC) #14
sashab
Ping timloh
5 years, 2 months ago (2015-09-30 01:55:43 UTC) #15
Timothy Loh
ok lgtm https://codereview.chromium.org/1306823004/diff/280001/third_party/WebKit/Source/core/css/CSSStringValue.h File third_party/WebKit/Source/core/css/CSSStringValue.h (right): https://codereview.chromium.org/1306823004/diff/280001/third_party/WebKit/Source/core/css/CSSStringValue.h#newcode8 third_party/WebKit/Source/core/css/CSSStringValue.h:8: #include "core/CoreExport.h" not needed? https://codereview.chromium.org/1306823004/diff/280001/third_party/WebKit/Source/core/css/CSSURIValue.h File third_party/WebKit/Source/core/css/CSSURIValue.h ...
5 years, 2 months ago (2015-10-02 05:35:25 UTC) #16
Timothy Loh
please update the patch description
5 years, 2 months ago (2015-10-02 05:35:37 UTC) #17
sashab
Thanks Tim!! :-) https://codereview.chromium.org/1306823004/diff/280001/third_party/WebKit/Source/core/css/CSSStringValue.h File third_party/WebKit/Source/core/css/CSSStringValue.h (right): https://codereview.chromium.org/1306823004/diff/280001/third_party/WebKit/Source/core/css/CSSStringValue.h#newcode8 third_party/WebKit/Source/core/css/CSSStringValue.h:8: #include "core/CoreExport.h" On 2015/10/02 05:35:25, Timothy ...
5 years, 2 months ago (2015-10-02 06:07:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306823004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306823004/280001
5 years, 2 months ago (2015-10-02 06:14:23 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/90748)
5 years, 2 months ago (2015-10-02 06:19:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306823004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306823004/280001
5 years, 2 months ago (2015-10-05 23:35:20 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306823004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306823004/300001
5 years, 2 months ago (2015-10-07 03:11:26 UTC) #28
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp: While running git apply --index -3 -p1; error: patch ...
5 years, 2 months ago (2015-10-07 04:46:36 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306823004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306823004/340001
5 years, 2 months ago (2015-10-07 06:13:44 UTC) #34
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 2 months ago (2015-10-07 07:37:39 UTC) #35
commit-bot: I haz the power
5 years, 2 months ago (2015-10-07 07:38:34 UTC) #36
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/10f96710fa357e0699f6ae62ac29b2c3bc1b3441
Cr-Commit-Position: refs/heads/master@{#352795}

Powered by Google App Engine
This is Rietveld 408576698