Index: Source/core/page/TouchDisambiguation.cpp |
diff --git a/Source/core/page/TouchDisambiguation.cpp b/Source/core/page/TouchDisambiguation.cpp |
index 38a59fd584850a4c8a2bacebd343d47f15123913..56ff16c2113a30543f1caee506fc2323c58731f3 100644 |
--- a/Source/core/page/TouchDisambiguation.cpp |
+++ b/Source/core/page/TouchDisambiguation.cpp |
@@ -40,6 +40,7 @@ |
#include "core/dom/NodeTraversal.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/LocalFrame.h" |
+#include "core/html/HTMLHtmlElement.h" |
#include "core/page/EventHandler.h" |
#include "core/rendering/HitTestResult.h" |
#include "core/rendering/RenderBlock.h" |
@@ -125,7 +126,7 @@ void findGoodTouchTargets(const IntRect& touchBox, LocalFrame* mainFrame, Vector |
for (Node* node = it->get(); node; node = node->parentNode()) { |
if (blackList.contains(node)) |
continue; |
- if (node->isDocumentNode() || node->hasTagName(HTMLNames::htmlTag) || node->hasTagName(HTMLNames::bodyTag)) |
+ if (node->isDocumentNode() || isHTMLHtmlElement(*node) || isHTMLBodyElement(*node)) |
break; |
if (node->willRespondToMouseClickEvents()) { |
TouchTargetData& targetData = touchTargets.add(node, TouchTargetData()).storedValue->value; |