Index: Source/core/editing/htmlediting.cpp |
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp |
index fe775744404c94770c6e5d4df908b35c4eb1090f..ca7d71bb9956aecc4b9411aaa72f305a192ee812 100644 |
--- a/Source/core/editing/htmlediting.cpp |
+++ b/Source/core/editing/htmlediting.cpp |
@@ -486,7 +486,7 @@ Position positionAfterContainingSpecialElement(const Position& pos, Node **conta |
Node* isFirstPositionAfterTable(const VisiblePosition& visiblePosition) |
{ |
Position upstream(visiblePosition.deepEquivalent().upstream()); |
- if (upstream.deprecatedNode() && upstream.deprecatedNode()->renderer() && upstream.deprecatedNode()->renderer()->isTable() && upstream.atLastEditingPositionForNode()) |
+ if (isRenderedTable(upstream.deprecatedNode()) && upstream.atLastEditingPositionForNode()) |
return upstream.deprecatedNode(); |
return 0; |
@@ -495,7 +495,7 @@ Node* isFirstPositionAfterTable(const VisiblePosition& visiblePosition) |
Node* isLastPositionBeforeTable(const VisiblePosition& visiblePosition) |
{ |
Position downstream(visiblePosition.deepEquivalent().downstream()); |
- if (downstream.deprecatedNode() && downstream.deprecatedNode()->renderer() && downstream.deprecatedNode()->renderer()->isTable() && downstream.atFirstEditingPositionForNode()) |
+ if (isRenderedTable(downstream.deprecatedNode()) && downstream.atFirstEditingPositionForNode()) |
return downstream.deprecatedNode(); |
return 0; |