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

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

Issue 416393005: Move Node::isBlockFlowElement() to htmlediting.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/editing/InsertListCommand.cpp ('k') | Source/core/editing/htmlediting.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ReplaceSelectionCommand.cpp
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
index c7a26d1ea6e258e975b78a6ad6ade73958c2c6dc..a37b659fc389f78aa393df244524464cb1451f4a 100644
--- a/Source/core/editing/ReplaceSelectionCommand.cpp
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp
@@ -856,11 +856,11 @@ void ReplaceSelectionCommand::mergeEndIfNeeded()
static Node* enclosingInline(Node* node)
{
while (ContainerNode* parent = node->parentNode()) {
- if (parent->isBlockFlowElement() || isHTMLBodyElement(*parent))
+ if (isBlockFlowElement(*parent) || isHTMLBodyElement(*parent))
return node;
// Stop if any previous sibling is a block.
for (Node* sibling = node->previousSibling(); sibling; sibling = sibling->previousSibling()) {
- if (sibling->isBlockFlowElement())
+ if (isBlockFlowElement(*sibling))
return node;
}
node = parent;
« no previous file with comments | « Source/core/editing/InsertListCommand.cpp ('k') | Source/core/editing/htmlediting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698