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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/editing/CaretBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 64c7afeec53a10b9e10b21a8be6b5d95a89c5479..51e5e773424e71355756f448f226669c2dfcd4c8 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -534,19 +534,19 @@ void Node::normalize()
}
}
-bool Node::isContentEditable(UserSelectAllTreatment treatment) const
+bool Node::isContentEditable() const
{
document().updateStyleAndLayoutTree();
- return hasEditableStyle(Editable, treatment);
+ return hasEditableStyle(Editable);
}
bool Node::isContentRichlyEditable() const
{
document().updateStyleAndLayoutTree();
- return hasEditableStyle(RichlyEditable, UserSelectAllIsAlwaysNonEditable);
+ return hasEditableStyle(RichlyEditable);
}
-bool Node::hasEditableStyle(EditableLevel editableLevel, UserSelectAllTreatment treatment) const
+bool Node::hasEditableStyle(EditableLevel editableLevel) const
{
if (isPseudoElement())
return false;
@@ -2201,7 +2201,7 @@ bool Node::willRespondToMouseClickEvents()
{
if (isDisabledFormControl(this))
return false;
- return isContentEditable(UserSelectAllIsAlwaysNonEditable) || hasEventListeners(EventTypeNames::mouseup) || hasEventListeners(EventTypeNames::mousedown) || hasEventListeners(EventTypeNames::click) || hasEventListeners(EventTypeNames::DOMActivate);
+ return isContentEditable() || hasEventListeners(EventTypeNames::mouseup) || hasEventListeners(EventTypeNames::mousedown) || hasEventListeners(EventTypeNames::click) || hasEventListeners(EventTypeNames::DOMActivate);
}
bool Node::willRespondToTouchEvents()
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/editing/CaretBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698