Index: Source/core/dom/Position.cpp |
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp |
index 61aba0102e29d8a3d93b9c6d99b07526d24c5af8..c917fb5bf97a64c57766a55d202d19a370c2d1c6 100644 |
--- a/Source/core/dom/Position.cpp |
+++ b/Source/core/dom/Position.cpp |
@@ -35,6 +35,7 @@ |
#include "core/editing/VisiblePosition.h" |
#include "core/editing/VisibleUnits.h" |
#include "core/editing/htmlediting.h" |
+#include "core/html/HTMLHtmlElement.h" |
#include "core/html/HTMLTableElement.h" |
#include "core/platform/Logging.h" |
#include "core/rendering/InlineIterator.h" |
@@ -902,7 +903,7 @@ bool Position::isCandidate() const |
if (isTableElement(deprecatedNode()) || editingIgnoresContent(deprecatedNode())) |
return (atFirstEditingPositionForNode() || atLastEditingPositionForNode()) && !nodeIsUserSelectNone(deprecatedNode()->parentNode()); |
- if (m_anchorNode->hasTagName(htmlTag)) |
+ if (isHTMLHtmlElement(m_anchorNode.get())) |
return false; |
if (renderer->isBlockFlow()) { |