Index: Source/core/editing/commands/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/commands/ApplyStyleCommand.cpp b/Source/core/editing/commands/ApplyStyleCommand.cpp |
index 10a495ccbd41298fd0b42a2a51fe2c43561a8325..8ed28c4947c7b86555a122cac76ed2b1fe1e57af 100644 |
--- a/Source/core/editing/commands/ApplyStyleCommand.cpp |
+++ b/Source/core/editing/commands/ApplyStyleCommand.cpp |
@@ -812,7 +812,7 @@ void ApplyStyleCommand::applyInlineStyleToNodeRange(EditingStyle* style, PassRef |
continue; |
} |
- if (isBlock(node.get())) |
+ if (isEnclosingBlock(node.get())) |
continue; |
if (node->hasChildren()) { |
@@ -828,7 +828,7 @@ void ApplyStyleCommand::applyInlineStyleToNodeRange(EditingStyle* style, PassRef |
Node* runEnd = node.get(); |
Node* sibling = node->nextSibling(); |
while (sibling && sibling != pastEndNode && !sibling->contains(pastEndNode.get()) |
- && (!isBlock(sibling) || isHTMLBRElement(*sibling)) |
+ && (!isEnclosingBlock(sibling) || isHTMLBRElement(*sibling)) |
&& !containsNonEditableRegion(*sibling)) { |
runEnd = sibling; |
sibling = runEnd->nextSibling(); |