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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2878333002: Make ETextModify an enum class. (Closed)
Patch Set: Created 3 years, 7 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/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index aae9e7b3cf42f556772fde78b23bed945e8dc739..72d667e651c7778f25c0c04a5c836b8b6a132737 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -332,11 +332,11 @@ static bool HasEditableLevel(const Node& node, EditableLevel editable_level) {
if ((ancestor.IsHTMLElement() || ancestor.IsDocumentNode()) &&
ancestor.GetLayoutObject()) {
switch (ancestor.GetLayoutObject()->Style()->UserModify()) {
- case READ_ONLY:
+ case EUserModify::kReadOnly:
return false;
- case READ_WRITE:
+ case EUserModify::kReadWrite:
return true;
- case READ_WRITE_PLAINTEXT_ONLY:
+ case EUserModify::kReadWritePlaintextOnly:
return editable_level != kRichlyEditable;
}
NOTREACHED();
@@ -985,7 +985,7 @@ EUserSelect UsedValueOfUserSelect(const Node& node) {
return SELECT_NONE;
const ComputedStyle* style = node.GetLayoutObject()->Style();
- if (style->UserModify() != READ_ONLY)
+ if (style->UserModify() != EUserModify::kReadOnly)
return SELECT_TEXT;
return style->UserSelect();

Powered by Google App Engine
This is Rietveld 408576698