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

Unified Diff: Source/core/editing/commands/FormatBlockCommand.cpp

Issue 1320573003: Rename isBlock() to isEnclosingBlock() in EditingUtilities (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T21:48:03 Rebase 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/commands/FormatBlockCommand.cpp
diff --git a/Source/core/editing/commands/FormatBlockCommand.cpp b/Source/core/editing/commands/FormatBlockCommand.cpp
index 4b59e20b948b9844f113f854bcc0e2258feb46f2..d06e0da9ab9e7ee4e66474573e4b76dd56b93fcd 100644
--- a/Source/core/editing/commands/FormatBlockCommand.cpp
+++ b/Source/core/editing/commands/FormatBlockCommand.cpp
@@ -166,7 +166,7 @@ Node* enclosingBlockToSplitTreeTo(Node* startNode)
return lastBlock;
if (isTableCell(n) || isHTMLBodyElement(*n) || !n->parentNode() || !n->parentNode()->hasEditableStyle() || isElementForFormatBlock(n))
return n;
- if (isBlock(n))
+ if (isEnclosingBlock(n))
lastBlock = n;
if (isHTMLListElement(n))
return n->parentNode()->hasEditableStyle() ? n->parentNode() : n;
« no previous file with comments | « Source/core/editing/commands/DeleteSelectionCommand.cpp ('k') | Source/core/editing/commands/InsertListCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698