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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index d62eab76425595a0e172f6c538666b4162abbc8c..c2d81dd28aefc97ce467c047e509ac51a754b859 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1814,8 +1814,7 @@ void LayoutObject::styleWillChange(StyleDifference diff,
if (node() && !node()->isTextNode() &&
(oldTouchAction == TouchActionAuto) !=
(newStyle.getTouchAction() == TouchActionAuto)) {
- EventHandlerRegistry& registry =
- document().frameHost()->eventHandlerRegistry();
+ EventHandlerRegistry& registry = document().page()->eventHandlerRegistry();
if (newStyle.getTouchAction() != TouchActionAuto)
registry.didAddEventHandler(
*node(), EventHandlerRegistry::TouchStartOrMoveEventBlocking);
@@ -2629,8 +2628,7 @@ void LayoutObject::willBeDestroyed() {
// previously may have already been removed by the Document independently.
if (node() && !node()->isTextNode() && m_style &&
m_style->getTouchAction() != TouchActionAuto) {
- EventHandlerRegistry& registry =
- document().frameHost()->eventHandlerRegistry();
+ EventHandlerRegistry& registry = document().page()->eventHandlerRegistry();
if (registry
.eventHandlerTargets(
EventHandlerRegistry::TouchStartOrMoveEventBlocking)

Powered by Google App Engine
This is Rietveld 408576698