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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp

Issue 2796183002: Introduce the nested namespace ::blink::cssvalue, start with CSSColorValue. (Closed)
Patch Set: Use the least possible namespace scoping when aliasing. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSColorValue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/CSSColorInterpolationType.h" 5 #include "core/animation/CSSColorInterpolationType.h"
6 6
7 #include "core/animation/ColorPropertyFunctions.h" 7 #include "core/animation/ColorPropertyFunctions.h"
8 #include "core/css/CSSColorValue.h" 8 #include "core/css/CSSColorValue.h"
9 #include "core/css/CSSIdentifierValue.h" 9 #include "core/css/CSSIdentifierValue.h"
10 #include "core/css/resolver/StyleResolverState.h" 10 #include "core/css/resolver/StyleResolverState.h"
11 #include "core/layout/LayoutTheme.h" 11 #include "core/layout/LayoutTheme.h"
12 #include "wtf/PtrUtil.h" 12 #include "wtf/PtrUtil.h"
13 #include <memory> 13 #include <memory>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 using namespace cssvalue;
18
17 enum InterpolableColorIndex : unsigned { 19 enum InterpolableColorIndex : unsigned {
18 Red, 20 Red,
19 Green, 21 Green,
20 Blue, 22 Blue,
21 Alpha, 23 Alpha,
22 Currentcolor, 24 Currentcolor,
23 WebkitActivelink, 25 WebkitActivelink,
24 WebkitLink, 26 WebkitLink,
25 QuirkInherit, 27 QuirkInherit,
26 InterpolableColorIndexCount, 28 InterpolableColorIndexCount,
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 const CSSValue* CSSColorInterpolationType::createCSSValue( 280 const CSSValue* CSSColorInterpolationType::createCSSValue(
279 const InterpolableValue& interpolableValue, 281 const InterpolableValue& interpolableValue,
280 const NonInterpolableValue*, 282 const NonInterpolableValue*,
281 const StyleResolverState& state) const { 283 const StyleResolverState& state) const {
282 const InterpolableList& colorPair = toInterpolableList(interpolableValue); 284 const InterpolableList& colorPair = toInterpolableList(interpolableValue);
283 Color color = resolveInterpolableColor(*colorPair.get(Unvisited), state); 285 Color color = resolveInterpolableColor(*colorPair.get(Unvisited), state);
284 return CSSColorValue::create(color.rgb()); 286 return CSSColorValue::create(color.rgb());
285 } 287 }
286 288
287 } // namespace blink 289 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSColorValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698