Index: Source/core/dom/Position.cpp |
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp |
index 627bfa1466bff644f19f38cbb352f817e65a2df5..61aba0102e29d8a3d93b9c6d99b07526d24c5af8 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/HTMLTableElement.h" |
#include "core/platform/Logging.h" |
#include "core/rendering/InlineIterator.h" |
#include "core/rendering/InlineTextBox.h" |
@@ -548,7 +549,7 @@ static bool endsOfNodeAreVisuallyDistinctPositions(Node* node) |
return true; |
// Don't include inline tables. |
- if (node->hasTagName(tableTag)) |
+ if (isHTMLTableElement(node)) |
return false; |
// There is a VisiblePosition inside an empty inline-block container. |