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

Unified Diff: Source/core/css/resolver/AnimatedStyleBuilder.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/css/resolver/AnimatedStyleBuilder.cpp
diff --git a/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
index bfa3eef8c28b63effd9a066e70db45f2e825f933..8d08a38056e75befb45d79b71831e493e2cf37a8 100644
--- a/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -43,6 +43,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"
@@ -288,6 +289,9 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyBottom:
style->setBottom(animatableValueToLength(value, state));
return;
+ case CSSPropertyBoxShadow:
+ style->setBoxShadow(toAnimatableShadow(value)->shadowList());
+ return;
case CSSPropertyClip:
style->setClip(animatableValueToLengthBox(value, state));
style->setHasClip(true);
@@ -433,6 +437,9 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyTextIndent:
style->setTextIndent(animatableValueToLength(value, state));
return;
+ case CSSPropertyTextShadow:
+ style->setTextShadow(toAnimatableShadow(value)->shadowList());
+ return;
case CSSPropertyTop:
style->setTop(animatableValueToLength(value, state));
return;
@@ -445,6 +452,9 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyWebkitBorderVerticalSpacing:
style->setVerticalBorderSpacing(animatableValueRoundClampTo<unsigned short>(value));
return;
+ case CSSPropertyWebkitBoxShadow:
+ style->setBoxShadow(toAnimatableShadow(value)->shadowList());
+ return;
case CSSPropertyWebkitClipPath:
style->setClipPath(toAnimatableClipPathOperation(value)->clipPathOperation());
return;

Powered by Google App Engine
This is Rietveld 408576698