| Index: third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| index b07479702406a4c0182fa955032ac048b17747ed..86edb522f7fc567ccc29950da50dbeb6451758f7 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| @@ -94,7 +94,7 @@ void ApplyBlockElementCommand::doApply(EditingState* editingState)
|
| if (editingState->isAborted())
|
| return;
|
|
|
| - document().updateLayoutIgnorePendingStylesheets();
|
| + document().updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| DCHECK_EQ(startScope, endScope);
|
| DCHECK_GE(startIndex, 0);
|
| @@ -192,7 +192,7 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const
|
| start = startOfParagraph(endOfCurrentParagraph).deepEquivalent();
|
| end = endOfCurrentParagraph.deepEquivalent();
|
|
|
| - document().updateLayoutTree();
|
| + document().updateStyleAndLayoutTree();
|
|
|
| bool isStartAndEndOnSameNode = false;
|
| if (const ComputedStyle* startStyle = computedStyleOfEnclosingTextNode(start)) {
|
| @@ -222,7 +222,7 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const
|
| }
|
| }
|
|
|
| - document().updateLayoutTree();
|
| + document().updateStyleAndLayoutTree();
|
|
|
| if (const ComputedStyle* endStyle = computedStyleOfEnclosingTextNode(end)) {
|
| bool isEndAndEndOfLastParagraphOnSameNode = computedStyleOfEnclosingTextNode(m_endOfLastParagraph) && end.anchorNode() == m_endOfLastParagraph.anchorNode();
|
|
|