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

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

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp Created 3 years, 8 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/ElementAnimation.h
diff --git a/third_party/WebKit/Source/core/animation/ElementAnimation.h b/third_party/WebKit/Source/core/animation/ElementAnimation.h
index a32fd5898ac51cef802f268962c4f8fc6defa8df..7c33edafe13c3a93ac159de3e4ef19229a323ca9 100644
--- a/third_party/WebKit/Source/core/animation/ElementAnimation.h
+++ b/third_party/WebKit/Source/core/animation/ElementAnimation.h
@@ -42,6 +42,7 @@
#include "core/animation/TimingInput.h"
#include "core/dom/Document.h"
#include "core/dom/Element.h"
+#include "core/dom/ExecutionContext.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/wtf/Allocator.h"
@@ -57,7 +58,7 @@ class ElementAnimation {
double duration,
ExceptionState& exception_state) {
EffectModel* effect = EffectInput::Convert(
- &element, effect_input, script_state->GetExecutionContext(),
+ &element, effect_input, ExecutionContext::From(script_state),
exception_state);
if (exception_state.HadException())
return nullptr;
@@ -75,7 +76,7 @@ class ElementAnimation {
const KeyframeEffectOptions& options,
ExceptionState& exception_state) {
EffectModel* effect = EffectInput::Convert(
- &element, effect_input, script_state->GetExecutionContext(),
+ &element, effect_input, ExecutionContext::From(script_state),
exception_state);
if (exception_state.HadException())
return nullptr;
@@ -95,7 +96,7 @@ class ElementAnimation {
const DictionarySequenceOrDictionary& effect_input,
ExceptionState& exception_state) {
EffectModel* effect = EffectInput::Convert(
- &element, effect_input, script_state->GetExecutionContext(),
+ &element, effect_input, ExecutionContext::From(script_state),
exception_state);
if (exception_state.HadException())
return nullptr;
« no previous file with comments | « third_party/WebKit/Source/core/animation/Animation.cpp ('k') | third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698