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

Unified Diff: third_party/WebKit/Source/core/animation/ShadowStyleInterpolation.cpp

Issue 1376573004: Split out Color from CSSPrimitiveValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_property
Patch Set: Rebase and review feedback Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/ShadowStyleInterpolation.cpp
diff --git a/third_party/WebKit/Source/core/animation/ShadowStyleInterpolation.cpp b/third_party/WebKit/Source/core/animation/ShadowStyleInterpolation.cpp
index c6b2646915c215f7835268782778eadf5ad9a74b..70d012e25cc0e24d328e9df1651f9314ccea4070 100644
--- a/third_party/WebKit/Source/core/animation/ShadowStyleInterpolation.cpp
+++ b/third_party/WebKit/Source/core/animation/ShadowStyleInterpolation.cpp
@@ -7,6 +7,7 @@
#include "core/animation/ColorStyleInterpolation.h"
#include "core/animation/LengthStyleInterpolation.h"
+#include "core/css/CSSColorValue.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSValueList.h"
#include "core/css/CSSValuePool.h"
@@ -62,7 +63,7 @@ PassRefPtrWillBeRawPtr<CSSValue> ShadowStyleInterpolation::fromInterpolableValue
RefPtrWillBeRawPtr<CSSPrimitiveValue> blur = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(2), RangeNonNegative);
RefPtrWillBeRawPtr<CSSPrimitiveValue> spread = LengthStyleInterpolation::fromInterpolableValue(*shadow->get(3), RangeAll);
- RefPtrWillBeRawPtr<CSSPrimitiveValue> color = ColorStyleInterpolation::interpolableValueToColor(*shadow->get(4));
+ RefPtrWillBeRawPtr<CSSColorValue> color = ColorStyleInterpolation::interpolableValueToColor(*shadow->get(4));
RefPtrWillBeRawPtr<CSSPrimitiveValue> style = nonInterpolableData ? CSSPrimitiveValue::createIdentifier(CSSValueInset) : CSSPrimitiveValue::createIdentifier(CSSValueNone);
RefPtrWillBeRawPtr<CSSShadowValue> result = CSSShadowValue::create(x, y, blur, spread, style, color);

Powered by Google App Engine
This is Rietveld 408576698