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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp

Issue 2796653003: Move ScriptState::forWorld/ScriptState::forMainWorld (Part 2) (Closed)
Patch Set: Rebase 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/inspector/InspectorAnimationAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
index 1dc5cab0b300954966b68a8ee34ca182d5c8eb95..24ccfd2fef9f10416ef1cd3897643ec5ef6cbb76 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
@@ -4,6 +4,8 @@
#include "core/inspector/InspectorAnimationAgent.h"
+#include <memory>
+#include "bindings/core/v8/V8Binding.h"
#include "core/animation/Animation.h"
#include "core/animation/AnimationEffectReadOnly.h"
#include "core/animation/AnimationEffectTiming.h"
@@ -28,7 +30,6 @@
#include "platform/Decimal.h"
#include "platform/animation/TimingFunction.h"
#include "wtf/text/Base64.h"
-#include <memory>
namespace AnimationAgentState {
static const char animationAgentEnabled[] = "animationAgentEnabled";
@@ -423,7 +424,7 @@ Response InspectorAnimationAgent::resolveAnimation(
toKeyframeEffectReadOnly(animation->effect())->target();
Document* document = element->ownerDocument();
LocalFrame* frame = document ? document->frame() : nullptr;
- ScriptState* scriptState = frame ? ScriptState::forMainWorld(frame) : nullptr;
+ ScriptState* scriptState = frame ? toScriptStateForMainWorld(frame) : nullptr;
if (!scriptState)
return Response::Error("Element not associated with a document.");

Powered by Google App Engine
This is Rietveld 408576698