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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.cpp

Issue 2723973002: Make V8Binding helpers return LocalFrame/LocalDOMWindow as appropriate (Closed)
Patch Set: . Created 3 years, 9 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/bindings/core/v8/V8EventListenerHelper.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.cpp b/third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.cpp
index 198b07f0769d7698112ac98e8e21f05142080d21..0e8691d0c6c675a3cfab30029efc7eb8375c5b7b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.cpp
@@ -47,7 +47,7 @@ EventListener* V8EventListenerHelper::getEventListener(
DCHECK(!isAttribute);
return V8EventListenerHelper::existingEventListener(value, scriptState);
}
- if (toDOMWindow(scriptState->context()))
+ if (toLocalDOMWindow(scriptState->context()))
return V8EventListenerHelper::ensureEventListener<V8EventListener>(
value, isAttribute, scriptState);
return V8EventListenerHelper::ensureEventListener<

Powered by Google App Engine
This is Rietveld 408576698