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

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

Issue 1758313002: DevTools: introduce collections shim to be backed by non-wtf in v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 10 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/InspectorDOMDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
index f83fdd51735110304c0f344e5bea2fa85fd35136..d890ccd0874e54a57d387fbc13e23f3f611fac9b 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
@@ -123,7 +123,7 @@ void InspectorDOMDebuggerAgent::eventListenersInfoForTarget(v8::Isolate* isolate
if (handler.IsEmpty())
continue;
if (!eventInformation.get(type))
- eventInformation.set(type, adoptPtr(new Vector<V8EventListenerInfo>()));
+ eventInformation.set(type, adoptPtr(new protocol::Vector<V8EventListenerInfo>()));
eventInformation.get(type)->append(V8EventListenerInfo(type, listeners->at(k).useCapture, handler));
}
}
@@ -376,14 +376,14 @@ void InspectorDOMDebuggerAgent::eventListeners(v8::Local<v8::Context> context, v
V8EventListenerInfoMap eventInformation;
InspectorDOMDebuggerAgent::eventListenersInfoForTarget(context->GetIsolate(), object, eventInformation);
for (const auto& it : eventInformation) {
- for (const auto& it2 : *it.value) {
+ for (const auto& it2 : *it.second) {
if (!it2.useCapture)
continue;
OwnPtr<protocol::DOMDebugger::EventListener> listenerObject = buildObjectForEventListener(context, it2, objectGroup);
if (listenerObject)
listenersArray->addItem(listenerObject.release());
}
- for (auto& it2 : *it.value) {
+ for (auto& it2 : *it.second) {
if (it2.useCapture)
continue;
OwnPtr<protocol::DOMDebugger::EventListener> listenerObject = buildObjectForEventListener(context, it2, objectGroup);

Powered by Google App Engine
This is Rietveld 408576698