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

Unified Diff: third_party/WebKit/Source/core/animation/EffectInput.h

Issue 2047293002: Code cleanup: Replace Element with Document in element.animate() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_killForceConversionsToAnimatableValues
Patch Set: Fix unit test crash. Created 4 years, 5 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: third_party/WebKit/Source/core/animation/EffectInput.h
diff --git a/third_party/WebKit/Source/core/animation/EffectInput.h b/third_party/WebKit/Source/core/animation/EffectInput.h
index 372aee53ac0df6f6e2f70812ae9ededd7c63bb17..f33afe2f2ddc16baf0f37bff21eebf514d4010ff 100644
--- a/third_party/WebKit/Source/core/animation/EffectInput.h
+++ b/third_party/WebKit/Source/core/animation/EffectInput.h
@@ -15,19 +15,18 @@ namespace blink {
class EffectModel;
class EffectModelOrDictionarySequenceOrDictionary;
class Dictionary;
-class Element;
+class Document;
class ExceptionState;
class ExecutionContext;
class CORE_EXPORT EffectInput {
STATIC_ONLY(EffectInput);
public:
- // TODO(alancutter): Replace Element* parameter with Document&.
- static EffectModel* convert(Element*, const EffectModelOrDictionarySequenceOrDictionary&, ExecutionContext*, ExceptionState&);
+ static EffectModel* convert(Document&, const EffectModelOrDictionarySequenceOrDictionary&, ExecutionContext*, ExceptionState&);
private:
- static EffectModel* convertArrayForm(Element&, const Vector<Dictionary>& keyframes, ExceptionState&);
- static EffectModel* convertObjectForm(Element&, const Dictionary& keyframe, ExceptionState&);
+ static EffectModel* convertArrayForm(Document&, const Vector<Dictionary>& keyframes, ExceptionState&);
+ static EffectModel* convertObjectForm(Document&, const Dictionary& keyframe, ExceptionState&);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698