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

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

Issue 196573030: Web Animations API: Load resources referenced in element.animate() (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 2f87c28e668d7f864803948083a75f07a80e13f9..c92a32219ab774b6b853f43e5412a3c68bd9d0cc 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;
Vector<RefPtr<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);
}
}

Powered by Google App Engine
This is Rietveld 408576698