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; |