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

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

Issue 2149243003: [Editing][DOM][CodeHealth] Remove unused enum Node::UserSelectAllTreatment. (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/InsertNodeBeforeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp
index fda1d1957aacd6b4a94255d4b833a6f062cfbbb6..edcc46551bcf03d2922cd2b9ec77e8ec7eb076ef 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp
@@ -47,16 +47,16 @@ InsertNodeBeforeCommand::InsertNodeBeforeCommand(Node* insertChild, Node* refChi
void InsertNodeBeforeCommand::doApply(EditingState*)
{
ContainerNode* parent = m_refChild->parentNode();
- if (!parent || (m_shouldAssumeContentIsAlwaysEditable == DoNotAssumeContentIsAlwaysEditable && !parent->isContentEditable(Node::UserSelectAllIsAlwaysNonEditable)))
+ if (!parent || (m_shouldAssumeContentIsAlwaysEditable == DoNotAssumeContentIsAlwaysEditable && !parent->isContentEditable()))
return;
- DCHECK(parent->isContentEditable(Node::UserSelectAllIsAlwaysNonEditable)) << parent;
+ DCHECK(parent->isContentEditable()) << parent;
parent->insertBefore(m_insertChild.get(), m_refChild.get(), IGNORE_EXCEPTION);
}
void InsertNodeBeforeCommand::doUnapply()
{
- if (!m_insertChild->isContentEditable(Node::UserSelectAllIsAlwaysNonEditable))
+ if (!m_insertChild->isContentEditable())
return;
m_insertChild->remove(IGNORE_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698