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 10da9d445850691fd872d476701ec2b53b0d96ce..2d42c670c23f224615e8b41c23e5f63397503503 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp |
@@ -984,7 +984,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)) { |
@@ -1476,7 +1476,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; |