| 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 b27c7660654e70b6abb627512a50b1acc63b7a9f..424de7656cc2cef5ffe509a6b29aa32bc1e3fad1 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| @@ -994,7 +994,7 @@ bool ApplyStyleCommand::removeInlineStyleFromElement(EditingStyle* style, HTMLEl
|
| {
|
| DCHECK(element);
|
|
|
| - if (!element->parentNode() || !element->parentNode()->isContentEditable())
|
| + if (!element->parentNode() || !isContentEditable(*element->parentNode()))
|
| return false;
|
|
|
| if (isStyledInlineElementToRemove(element)) {
|
| @@ -1486,7 +1486,7 @@ void ApplyStyleCommand::surroundNodeRangeWithElement(Node* passedStartNode, Node
|
|
|
| while (node) {
|
| Node* next = node->nextSibling();
|
| - if (node->isContentEditable()) {
|
| + if (isContentEditable(*node)) {
|
| removeNode(node, editingState);
|
| if (editingState->isAborted())
|
| return;
|
|
|