Index: Source/core/editing/ApplyBlockElementCommand.cpp |
diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp |
index 8de6c1669cedc8dc0f0af50c099a9a33472240cd..4110f0834306122ca59ba7520d31415e03628419 100644 |
--- a/Source/core/editing/ApplyBlockElementCommand.cpp |
+++ b/Source/core/editing/ApplyBlockElementCommand.cpp |
@@ -180,7 +180,7 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const |
start = startOfParagraph(endOfCurrentParagraph).deepEquivalent(); |
end = endOfCurrentParagraph.deepEquivalent(); |
- document().updateStyleIfNeeded(); |
+ document().updateRenderTreeIfNeeded(); |
bool isStartAndEndOnSameNode = false; |
if (RenderStyle* startStyle = renderStyleOfEnclosingTextNode(start)) { |
@@ -208,7 +208,7 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const |
} |
} |
- document().updateStyleIfNeeded(); |
+ document().updateRenderTreeIfNeeded(); |
if (RenderStyle* endStyle = renderStyleOfEnclosingTextNode(end)) { |
bool isEndAndEndOfLastParagraphOnSameNode = renderStyleOfEnclosingTextNode(m_endOfLastParagraph) && end.deprecatedNode() == m_endOfLastParagraph.deprecatedNode(); |