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

Unified Diff: third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.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/WrapContentsInDummySpanCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp b/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp
index fabe7d7705838c26cded4850b83e4ec7c92bad97..df61ad000e1163f86f1fb71d8aa736333b811def 100644
--- a/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp
@@ -60,7 +60,7 @@ void WrapContentsInDummySpanCommand::doUnapply()
{
DCHECK(m_element);
- if (!m_dummySpan || !m_element->hasEditableStyle())
+ if (!m_dummySpan || !hasEditableStyle(*m_element))
return;
NodeVector children;
@@ -76,7 +76,7 @@ void WrapContentsInDummySpanCommand::doReapply()
{
DCHECK(m_element);
- if (!m_dummySpan || !m_element->hasEditableStyle())
+ if (!m_dummySpan || !hasEditableStyle(*m_element))
return;
executeApply();

Powered by Google App Engine
This is Rietveld 408576698