| Index: Source/core/editing/VisibleSelection.cpp
|
| diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp
|
| index fd392e5a13ab52778b067583cf0961465ee7f476..bfe2a087e6d99ad18cb55c92d4056ce577118691 100644
|
| --- a/Source/core/editing/VisibleSelection.cpp
|
| +++ b/Source/core/editing/VisibleSelection.cpp
|
| @@ -499,7 +499,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;
|
| @@ -542,7 +542,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
|
|
|