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

Unified Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 38823002: Web Animations CSS: Support animation of {text,box,-webkit-box}-shadow and fix blur clamping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 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: Source/core/animation/css/CSSAnimatableValueFactory.cpp
diff --git a/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/Source/core/animation/css/CSSAnimatableValueFactory.cpp
index 4c26bd29a4fc736c733934b7d7fd0ac8ba9e80c6..7740e9205e67eb02f91becb54c0a1996231b8233 100644
--- a/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -44,6 +44,7 @@
#include "core/animation/AnimatableRepeatable.h"
#include "core/animation/AnimatableSVGLength.h"
#include "core/animation/AnimatableSVGPaint.h"
+#include "core/animation/AnimatableShadow.h"
#include "core/animation/AnimatableShapeValue.h"
#include "core/animation/AnimatableStrokeDasharrayList.h"
#include "core/animation/AnimatableTransform.h"
@@ -249,6 +250,8 @@ PassRefPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPropertyID prop
return createFromDouble(style->borderTopWidth());
case CSSPropertyBottom:
return createFromLength(style->bottom(), style);
+ case CSSPropertyBoxShadow:
+ return AnimatableShadow::create(style->boxShadow());
case CSSPropertyClip:
if (style->hasClip())
return createFromLengthBox(style->clip(), style);
@@ -345,12 +348,16 @@ PassRefPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPropertyID prop
return createFromColor(property, style);
case CSSPropertyTextIndent:
return createFromLength(style->textIndent(), style);
+ case CSSPropertyTextShadow:
+ return AnimatableShadow::create(style->textShadow());
case CSSPropertyTop:
return createFromLength(style->top(), style);
case CSSPropertyWebkitBorderHorizontalSpacing:
return createFromDouble(style->horizontalBorderSpacing());
case CSSPropertyWebkitBorderVerticalSpacing:
return createFromDouble(style->verticalBorderSpacing());
+ case CSSPropertyWebkitBoxShadow:
+ return AnimatableShadow::create(style->boxShadow());
case CSSPropertyWebkitClipPath:
return AnimatableClipPathOperation::create(style->clipPath());
case CSSPropertyWebkitColumnCount:

Powered by Google App Engine
This is Rietveld 408576698