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 1c6ef73e8ca8f7c1bc91086fb677ab7eae86b991..7aa9a15a6a6b5d8d9074c88d1ed2197f08c82f9c 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp |
@@ -25,6 +25,7 @@ |
#include "core/inspector/InspectorCSSAgent.h" |
#include "core/inspector/InspectorDOMAgent.h" |
#include "core/inspector/InspectorStyleSheet.h" |
+#include "core/inspector/V8InspectorStringView.h" |
#include "platform/Decimal.h" |
#include "platform/animation/TimingFunction.h" |
#include "platform/v8_inspector/public/V8InspectorSession.h" |
@@ -38,6 +39,8 @@ static const char animationAgentPlaybackRate[] = "animationAgentPlaybackRate"; |
namespace blink { |
+static const char animationObjectGroup[] = "animation"; |
caseq
2016/08/19 21:57:02
please move it into function that needs it, or use
dgozman
2016/08/20 02:04:51
Done.
|
+ |
InspectorAnimationAgent::InspectorAnimationAgent(InspectedFrames* inspectedFrames, InspectorDOMAgent* domAgent, InspectorCSSAgent* cssAgent, v8_inspector::V8InspectorSession* v8Session) |
: m_inspectedFrames(inspectedFrames) |
, m_domAgent(domAgent) |
@@ -373,8 +376,8 @@ void InspectorAnimationAgent::resolveAnimation(ErrorString* errorString, const S |
} |
ScriptState::Scope scope(scriptState); |
- m_v8Session->releaseObjectGroup("animation"); |
- *result = m_v8Session->wrapObject(scriptState->context(), toV8(animation, scriptState->context()->Global(), scriptState->isolate()), "animation"); |
+ m_v8Session->releaseObjectGroup(toV8InspectorStringView(animationObjectGroup)); |
+ *result = m_v8Session->wrapObject(scriptState->context(), toV8(animation, scriptState->context()->Global(), scriptState->isolate()), toV8InspectorStringView(animationObjectGroup)); |
if (!*result) |
*errorString = "Element not associated with a document."; |
} |