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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.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/InsertIntoTextNodeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
index a518d6e37f3c305fadbac3ce2639f0a86b47a746..9a9580962f26b032a6fba7e7adc21fb30c6fa6bb 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
@@ -50,7 +50,7 @@ void InsertIntoTextNodeCommand::doApply(EditingState*)
if (passwordEchoEnabled)
document().updateStyleAndLayoutIgnorePendingStylesheets();
- if (!m_node->hasEditableStyle())
+ if (!hasEditableStyle(*m_node))
return;
if (passwordEchoEnabled) {
@@ -65,7 +65,7 @@ void InsertIntoTextNodeCommand::doApply(EditingState*)
void InsertIntoTextNodeCommand::doUnapply()
{
- if (!m_node->hasEditableStyle())
+ if (!hasEditableStyle(*m_node))
return;
m_node->deleteData(m_offset, m_text.length(), IGNORE_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698