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

Unified Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.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/web/WebPluginContainerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
index 732855619cfa782f87631b8b1b1aa4528807f756..a8f80d614dcd79f4d1a44fafbd6d67ef6c822204 100644
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
@@ -541,8 +541,8 @@ void WebPluginContainerImpl::requestTouchEventType(
if (m_touchEventRequestType == requestType || !m_element)
return;
- if (FrameHost* frameHost = m_element->document().frameHost()) {
- EventHandlerRegistry& registry = frameHost->eventHandlerRegistry();
+ if (Page* page = m_element->document().page()) {
+ EventHandlerRegistry& registry = page->eventHandlerRegistry();
if (requestType != TouchEventRequestTypeNone &&
m_touchEventRequestType == TouchEventRequestTypeNone)
registry.didAddEventHandler(
@@ -558,8 +558,8 @@ void WebPluginContainerImpl::requestTouchEventType(
void WebPluginContainerImpl::setWantsWheelEvents(bool wantsWheelEvents) {
if (m_wantsWheelEvents == wantsWheelEvents)
return;
- if (FrameHost* frameHost = m_element->document().frameHost()) {
- EventHandlerRegistry& registry = frameHost->eventHandlerRegistry();
+ if (Page* page = m_element->document().page()) {
+ EventHandlerRegistry& registry = page->eventHandlerRegistry();
if (wantsWheelEvents)
registry.didAddEventHandler(*m_element,
EventHandlerRegistry::WheelEventBlocking);
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698