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

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

Issue 1648463002: DevTools: migrate injectedscript from ScriptValue to v8::Global. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 11 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/InspectorDOMAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
index abd3cc840b1245a157859e1b576f9976ab1209bb..2503d4931983135518fd2bd0c499527c800bd863 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
@@ -1220,13 +1220,13 @@ Node* InspectorDOMAgent::nodeForRemoteId(ErrorString* errorString, const String&
*errorString = "Cannot find context for specified object id";
return nullptr;
}
- ScriptState::Scope scope(injectedScript->scriptState());
+ v8::HandleScope handles(injectedScript->isolate());
v8::Local<v8::Value> value = injectedScript->findObject(*remoteId);
if (value.IsEmpty()) {
*errorString = "Node for given objectId not found";
return nullptr;
}
- v8::Isolate* isolate = injectedScript->scriptState()->isolate();
+ v8::Isolate* isolate = injectedScript->isolate();
if (!V8Node::hasInstance(value, isolate)) {
*errorString = "Object id doesn't reference a Node";
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698