| 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) {
|
|
|