Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp |
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp |
index a9de02bf5e947efaf159e8bae4360fc90ab5963e..83ce44ad6c16079d39cb7bb2bc8e8f3f8af830e0 100644 |
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp |
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp |
@@ -56,7 +56,6 @@ |
#include "core/html/HTMLTableCellElement.h" |
#include "core/html/HTMLUListElement.h" |
#include "core/layout/LayoutObject.h" |
-#include "core/layout/LayoutTableCell.h" |
#include "wtf/Assertions.h" |
#include "wtf/StdLibExtras.h" |
#include "wtf/text/StringBuilder.h" |
@@ -1501,8 +1500,7 @@ bool isEmptyTableCell(const Node* node) { |
// Check that the table cell contains no child layoutObjects except for |
// perhaps a single <br>. |
- LayoutObject* childLayoutObject = |
- toLayoutTableCell(layoutObject)->firstChild(); |
+ LayoutObject* childLayoutObject = layoutObject->slowFirstChild(); |
if (!childLayoutObject) |
return true; |
if (!childLayoutObject->isBR()) |