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

Unified Diff: third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.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/RemoveNodeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp
index d655897b8251f15aba7574d7de27bcaa0133507c..34cf6bebbaa3cd86f4245bc411c4cb40ce991522 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp
@@ -64,7 +64,7 @@ void RemoveNodeCommand::doUnapply()
{
ContainerNode* parent = m_parent.release();
Node* refChild = m_refChild.release();
- if (!parent || !parent->hasEditableStyle())
+ if (!parent || !hasEditableStyle(*parent))
return;
parent->insertBefore(m_node.get(), refChild, IGNORE_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698