Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Unified Diff: Source/core/editing/VisibleSelection.cpp

Issue 1320573003: Rename isBlock() to isEnclosingBlock() in EditingUtilities (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T15:16:19 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698