Chromium Code Reviews| 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..1952977decafb6feb6207e55142130af631f4654 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/V8InspectorString.h" |
| #include "platform/Decimal.h" |
| #include "platform/animation/TimingFunction.h" |
| #include "platform/v8_inspector/public/V8InspectorSession.h" |
| @@ -373,8 +374,9 @@ 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"); |
| + static const char animationObjectGroup[] = "animation"; |
|
esprehn
2016/08/23 17:35:38
constants are kFoo named, kAnimationObjectGroup
dgozman
2016/08/24 00:45:00
Ops. Done.
|
| + 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."; |
| } |