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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2741633002: Remove FrameHost::eventHandlerRegistry() (Closed)
Patch Set: Rebase 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/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 5b4494a0e47a57529decb13579dc8ec03e0c9ba9..801b01e41f34ca840591560cd5bc582413916bd0 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1565,8 +1565,7 @@ static unsigned eventHandlerCount(
EventHandlerRegistry::EventHandlerClass handlerClass) {
if (!document.frameHost())
return 0;
- EventHandlerRegistry* registry =
- &document.frameHost()->eventHandlerRegistry();
+ EventHandlerRegistry* registry = &document.page()->eventHandlerRegistry();
unsigned count = 0;
const EventTargetSet* targets = registry->eventHandlerTargets(handlerClass);
if (targets) {

Powered by Google App Engine
This is Rietveld 408576698