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

Issue 2796183002: Introduce the nested namespace ::blink::cssvalue, start with CSSColorValue. (Closed)

Created:
3 years, 8 months ago by slangley
Modified:
3 years, 8 months ago
Reviewers:
dcheng
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, Eric Willigers, rjwright, rwlbuis, shans, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce the nested namespace ::blink::cssvalue, start with CSSColorValue. This patch is the first in a series that will move all of the classes in the range CSS.*Value from the ::blink namespace to the ::blink::cssvalue namespace. It will be followed by work to introduce the ::blink::cssom namespace. The original design doc for this work is linked in the attached bug. Note that this patch does not rename the class or move the file to a new subdirectory. The immediate goal is to prevent name collisions cssvalue and cssom types - there is no need to re-organize or rename the files to achieve this basic goal. BUG=667961 Review-Url: https://codereview.chromium.org/2796183002 Cr-Commit-Position: refs/heads/master@{#462010} Committed: https://chromium.googlesource.com/chromium/src/+/80cc48147b27aa364144e4b6d49524fb111274a9

Patch Set 1 #

Total comments: 6

Patch Set 2 : Use an alias for CSSColorValue that is scoped to the class. #

Total comments: 4

Patch Set 3 : Use the least possible namespace scoping when aliasing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSColorValue.h View 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSColorValue.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValuePool.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValuePool.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParser.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserFastPathsTest.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TextLinkColors.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingStyle.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingStyleUtilities.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFontElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLHRElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
slangley
dcheng@ - can you ptal with you blink coding style owner hat on. Thanks. https://codereview.chromium.org/2796183002/diff/1/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp ...
3 years, 8 months ago (2017-04-05 00:29:33 UTC) #3
dcheng
One other nit is to wrap the CL description at 72 chars so things wrap ...
3 years, 8 months ago (2017-04-05 02:31:34 UTC) #4
slangley
ptal https://codereview.chromium.org/2796183002/diff/1/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp File third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp (right): https://codereview.chromium.org/2796183002/diff/1/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp#newcode17 third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp:17: using namespace cssvalue; On 2017/04/05 at 02:31:34, dcheng ...
3 years, 8 months ago (2017-04-05 04:40:18 UTC) #5
dcheng
lgtm with nits https://codereview.chromium.org/2796183002/diff/1/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp File third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp (right): https://codereview.chromium.org/2796183002/diff/1/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp#newcode17 third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp:17: using namespace cssvalue; On 2017/04/05 04:40:18, ...
3 years, 8 months ago (2017-04-05 06:21:27 UTC) #6
slangley
thanks! https://codereview.chromium.org/2796183002/diff/20001/third_party/WebKit/Source/core/css/CSSColorValue.h File third_party/WebKit/Source/core/css/CSSColorValue.h (right): https://codereview.chromium.org/2796183002/diff/20001/third_party/WebKit/Source/core/css/CSSColorValue.h#newcode39 third_party/WebKit/Source/core/css/CSSColorValue.h:39: friend class ::blink::CSSValuePool; On 2017/04/05 at 06:21:26, dcheng ...
3 years, 8 months ago (2017-04-05 06:45:57 UTC) #7
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/2796183002/40001
3 years, 8 months ago (2017-04-05 06:48:37 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 08:46:28 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/80cc48147b27aa364144e4b6d495...

Powered by Google App Engine
This is Rietveld 408576698