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

Unified Diff: third_party/WebKit/Source/core/html/shadow/SliderThumbElement.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/html/shadow/SliderThumbElement.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
index 256d2b67600e97b0404b0688c81de1a371647380..c359033399174ee455fdd2d4ab7f5754a5e2b987 100644
--- a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
@@ -434,10 +434,9 @@ void SliderContainerElement::updateTouchEventHandlerRegistry() {
if (m_hasTouchEventHandler) {
return;
}
- if (document().frameHost() &&
+ if (document().page() &&
document().lifecycle().state() < DocumentLifecycle::Stopping) {
- EventHandlerRegistry& registry =
- document().frameHost()->eventHandlerRegistry();
+ EventHandlerRegistry& registry = document().page()->eventHandlerRegistry();
registry.didAddEventHandler(
*this, EventHandlerRegistry::TouchStartOrMoveEventPassive);
m_hasTouchEventHandler = true;
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/input/TouchEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698