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

Unified Diff: Source/core/animation/EffectInput.cpp

Issue 196943029: Web Animations API: Load resources referenced in element.animate() (reland) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/EffectInput.cpp
diff --git a/Source/core/animation/EffectInput.cpp b/Source/core/animation/EffectInput.cpp
index b2da1f19795ad1a1980495657caea75c33903a12..0d132da1318ed0efffd34064dafe7016942d8260 100644
--- a/Source/core/animation/EffectInput.cpp
+++ b/Source/core/animation/EffectInput.cpp
@@ -55,6 +55,8 @@ PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, c
if (!unsafe && !checkDocumentAndRenderer(element))
return nullptr;
+ StyleSheetContents* styleSheetContents = element->document().elementSheet().contents();
+
// FIXME: Move this code into KeyframeEffectModel, it will be used by the IDL constructor for that class.
KeyframeEffectModel::KeyframeVector keyframes;
WillBeHeapVector<RefPtrWillBeMember<MutableStylePropertySet> > propertySetVector;
@@ -99,7 +101,7 @@ PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, c
String value;
keyframeDictionaryVector[i].get(property, value);
- propertySet->setProperty(id, value);
+ propertySet->setProperty(id, value, false, styleSheetContents);
}
}
« no previous file with comments | « Source/core/animation/AnimatableValueTestHelper.cpp ('k') | Source/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698