Index: Source/core/editing/VisibleSelection.cpp |
diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp |
index 07f31d71633f849de323a61323417e1b88249219..16e6d189df7a0d76ec9e7a9c069a09e6d636ced9 100644 |
--- a/Source/core/editing/VisibleSelection.cpp |
+++ b/Source/core/editing/VisibleSelection.cpp |
@@ -494,7 +494,7 @@ void VisibleSelection::setEndRespectingGranularity(TextGranularity granularity, |
if (Element* table = isFirstPositionAfterTable(end)) { |
// The paragraph break after the last paragraph in the last cell of a block table ends |
// at the start of the paragraph after the table. |
- if (isBlock(table)) |
+ if (isEnclosingBlock(table)) |
end = end.next(CannotCrossEditingBoundary); |
else |
end = wordEnd; |
@@ -537,7 +537,7 @@ void VisibleSelection::setEndRespectingGranularity(TextGranularity granularity, |
if (Element* table = isFirstPositionAfterTable(end)) { |
// The paragraph break after the last paragraph in the last cell of a block table ends |
// at the start of the paragraph after the table, not at the position just after the table. |
- if (isBlock(table)) |
+ if (isEnclosingBlock(table)) |
end = end.next(CannotCrossEditingBoundary); |
// There is no parargraph break after the last paragraph in the last cell of an inline table. |
else |