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

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: use 0 instead of PassRefPtr<..>() 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/animation/CSSPropertyAnimation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..15483690bfba239c47a3500434a1d67e9cbbb17b 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,10 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyBottom:
style->setBottom(animatableValueToLength(value, state));
return;
+ case CSSPropertyBoxShadow:
+ case CSSPropertyWebkitBoxShadow:
+ style->setBoxShadow(toAnimatableShadow(value)->shadowList());
+ return;
case CSSPropertyClip:
style->setClip(animatableValueToLengthBox(value, state));
style->setHasClip(true);
@@ -433,6 +438,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;
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/animation/CSSPropertyAnimation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698