Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp

Issue 2171493003: [Editing][DOM][CodeHealth] Make Node::hasEditableStyle global functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp b/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp
index a78e7f39aeb16a0cd737152b0fb21e3b4dd29513..258098432c27852e98defa8865e2c51844dbbc26 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp
@@ -41,7 +41,7 @@ RemoveNodePreservingChildrenCommand::RemoveNodePreservingChildrenCommand(Node* n
void RemoveNodePreservingChildrenCommand::doApply(EditingState* editingState)
{
ABORT_EDITING_COMMAND_IF(!m_node->parentNode());
- ABORT_EDITING_COMMAND_IF(!m_node->parentNode()->hasEditableStyle());
+ ABORT_EDITING_COMMAND_IF(!hasEditableStyle(*m_node->parentNode()));
if (m_node->isContainerNode()) {
NodeVector children;
getChildNodes(toContainerNode(*m_node), children);

Powered by Google App Engine
This is Rietveld 408576698