Index: third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp |
index 8c6f691acaa73280127d870e1cbcd3db7327a4f5..b9f8cef4b26ae82d4f603d6ae553097731a1f9da 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp |
@@ -157,7 +157,7 @@ void IndentOutdentCommand::outdentParagraph(EditingState* editingState) |
VisiblePosition visibleEndOfParagraph = endOfParagraph(visibleStartOfParagraph); |
HTMLElement* enclosingElement = toHTMLElement(enclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), &isHTMLListOrBlockquoteElement)); |
- if (!enclosingElement || !enclosingElement->parentNode()->hasEditableStyle()) // We can't outdent if there is no place to go! |
+ if (!enclosingElement || !hasEditableStyle(*enclosingElement->parentNode())) // We can't outdent if there is no place to go! |
return; |
// Use InsertListCommand to remove the selection from the list |
@@ -190,7 +190,7 @@ void IndentOutdentCommand::outdentParagraph(EditingState* editingState) |
if (Element* splitPointParent = splitPoint->parentElement()) { |
if (splitPointParent->hasTagName(blockquoteTag) |
&& !splitPoint->hasTagName(blockquoteTag) |
- && splitPointParent->parentNode()->hasEditableStyle()) // We can't outdent if there is no place to go! |
+ && hasEditableStyle(*splitPointParent->parentNode())) // We can't outdent if there is no place to go! |
splitElement(splitPointParent, splitPoint); |
} |
} |