| 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 fcffe7074990422e9f9fe5e7abe3867484fd8851..91e25fc68f4c58e7ae8d798e945d5c9b3930f34f 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| @@ -256,8 +256,8 @@ void ApplyStyleCommand::applyBlockStyle(EditingStyle *style, EditingState* editi
|
| end = swap;
|
| }
|
|
|
| - VisiblePosition visibleStart = createVisiblePosition(start);
|
| - VisiblePosition visibleEnd = createVisiblePosition(end);
|
| + VisiblePosition visibleStart = createVisiblePositionDeprecated(start);
|
| + VisiblePosition visibleEnd = createVisiblePositionDeprecated(end);
|
|
|
| if (visibleStart.isNull() || visibleStart.isOrphan() || visibleEnd.isNull() || visibleEnd.isOrphan())
|
| return;
|
| @@ -287,7 +287,7 @@ void ApplyStyleCommand::applyBlockStyle(EditingStyle *style, EditingState* editi
|
| if (newBlock) {
|
| block = newBlock;
|
| if (paragraphStart.isOrphan())
|
| - paragraphStart = createVisiblePosition(Position::firstPositionInNode(newBlock));
|
| + paragraphStart = createVisiblePositionDeprecated(Position::firstPositionInNode(newBlock));
|
| }
|
| DCHECK(!paragraphStart.isOrphan()) << paragraphStart;
|
| }
|
|
|