Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index 8d38db1fc4b430476a4a1ae0aef6a93ab5e16705..0328a3ed9de5f9657b8f58a653b6f6e52d52db30 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -51,6 +51,7 @@ |
#include "core/editing/htmlediting.h" |
#include "core/html/HTMLBodyElement.h" |
#include "core/html/HTMLElement.h" |
+#include "core/html/HTMLTableElement.h" |
#include "core/html/HTMLTextFormControlElement.h" |
#include "core/page/Frame.h" |
#include "core/rendering/RenderObject.h" |
@@ -431,7 +432,7 @@ static Node* ancestorToRetainStructureAndAppearanceForBlock(Node* commonAncestor |
if (commonAncestorBlock->hasTagName(tbodyTag) || commonAncestorBlock->hasTagName(trTag)) { |
ContainerNode* table = commonAncestorBlock->parentNode(); |
- while (table && !table->hasTagName(tableTag)) |
+ while (table && !isHTMLTableElement(table)) |
table = table->parentNode(); |
return table; |