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

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

Issue 2260233002: [DevTools] Migrate v8_inspector/public from String16 to String{View,Buffer}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using WTF::StringView Created 4 years, 4 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 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.";
}

Powered by Google App Engine
This is Rietveld 408576698