| 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.");
|
|
|
|
|