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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

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 | « no previous file | third_party/WebKit/Source/core/dom/Node.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.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index a3f8ef6d7178ab3cc3fef910916d7a6ead739df0..e81dfe8cb0155dd7ff4f8aaff278736ae9d468b1 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -416,18 +416,14 @@ public:
// must be recognized as inert to prevent text selection.
bool isInert() const;
- enum UserSelectAllTreatment {
- UserSelectAllDoesNotAffectEditability,
- UserSelectAllIsAlwaysNonEditable
- };
- bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEditability) const;
+ bool isContentEditable() const;
bool isContentRichlyEditable() const;
- bool hasEditableStyle(EditableType editableType = ContentIsEditable, UserSelectAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const
+ bool hasEditableStyle(EditableType editableType = ContentIsEditable) const
{
switch (editableType) {
case ContentIsEditable:
- return hasEditableStyle(Editable, treatment);
+ return hasEditableStyle(Editable);
case HasEditableAXRole:
return isEditableToAccessibility(Editable);
}
@@ -439,7 +435,7 @@ public:
{
switch (editableType) {
case ContentIsEditable:
- return hasEditableStyle(RichlyEditable, UserSelectAllIsAlwaysNonEditable);
+ return hasEditableStyle(RichlyEditable);
case HasEditableAXRole:
return isEditableToAccessibility(RichlyEditable);
}
@@ -801,7 +797,7 @@ private:
void checkSlotChange();
enum EditableLevel { Editable, RichlyEditable };
- bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllIsAlwaysNonEditable) const;
+ bool hasEditableStyle(EditableLevel) const;
bool isEditableToAccessibility(EditableLevel) const;
bool isUserActionElementActive() const;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698