| Index: third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| index 12a85840a055e8a51cfab1c133d3336418f83eb6..c1d90ed281fb025c5d61862dcf478e2a71c678dc 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| @@ -189,13 +189,11 @@ void ApplyStyleCommand::updateStartEnd(const Position& newStart,
|
| if (!m_useEndingSelection && (newStart != m_start || newEnd != m_end))
|
| m_useEndingSelection = true;
|
|
|
| - document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| - setEndingSelection(createVisibleSelection(
|
| - SelectionInDOMTree::Builder()
|
| - .collapse(newStart)
|
| - .extend(newEnd)
|
| - .setIsDirectional(endingSelection().isDirectional())
|
| - .build()));
|
| + setEndingSelection(SelectionInDOMTree::Builder()
|
| + .collapse(newStart)
|
| + .extend(newEnd)
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build());
|
| m_start = newStart;
|
| m_end = newEnd;
|
| }
|
|
|