| Index: third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp b/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
|
| index 8132dae22d5680ce2c349d066324299463698d29..f57bda0704f29213d06f1c977c37ed7f533eba4f 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
|
| @@ -65,7 +65,9 @@ void RemoveFormatCommand::doApply(EditingState* editingState) {
|
|
|
| // Get the default style for this editable root, it's the style that we'll
|
| // give the content that we're operating on.
|
| - Element* root = frame->selection().rootEditableElement();
|
| + Element* root = frame->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .rootEditableElement();
|
| EditingStyle* defaultStyle = EditingStyle::create(root);
|
|
|
| // We want to remove everything but transparent background.
|
|
|