| 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 efeff318451fc921ccc3b7974ad082e74ee0db35..12a85840a055e8a51cfab1c133d3336418f83eb6 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| @@ -190,9 +190,12 @@ void ApplyStyleCommand::updateStartEnd(const Position& newStart,
|
| m_useEndingSelection = true;
|
|
|
| document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| - setEndingSelection(createVisibleSelection(newStart, newEnd,
|
| - VP_DEFAULT_AFFINITY,
|
| - endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelection(
|
| + SelectionInDOMTree::Builder()
|
| + .collapse(newStart)
|
| + .extend(newEnd)
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build()));
|
| m_start = newStart;
|
| m_end = newEnd;
|
| }
|
|
|