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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 23717008: Remove useless null checks from Node::document() call sites (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 3a2002d467809ddcb859ed6955e88ba282dcffc5..1ef1a33c29ebc469d93dc881d65b2fc87697d612 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -3642,8 +3642,6 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event)
m_originatingTouchPointDocument = doc;
freshTouchEvents = false;
}
- if (!doc)
- continue;
if (!doc->hasTouchEventHandlers())
continue;
m_originatingTouchPointTargets.set(touchPointTargetKey, node);
@@ -3667,8 +3665,6 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event)
if (!touchTarget.get())
continue;
Document* doc = touchTarget->toNode()->document();
- if (!doc)
- continue;
if (!doc->hasTouchEventHandlers())
continue;
Frame* targetFrame = doc->frame();
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698