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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.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/layout/TextAutosizer.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
index 0af10a186c680b63f048e04faa530e22b52afbcf..0054e2b6da292016865d95e32b16c48f04640c0e 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -115,7 +115,7 @@ static bool IsIndependentDescendant(const LayoutBlock* layout_object) {
layout_object->IsHorizontalWritingMode()) ||
layout_object->Style()->IsDisplayReplacedType() ||
layout_object->IsTextArea() ||
- layout_object->Style()->UserModify() != READ_ONLY;
+ layout_object->Style()->UserModify() != EUserModify::kReadOnly;
}
static bool BlockIsRowOfLinks(const LayoutBlock* block) {
@@ -707,8 +707,8 @@ bool TextAutosizer::ClusterHasEnoughTextToAutosize(
// TextAreas and user-modifiable areas get a free pass to autosize regardless
// of text content.
- if (root->IsTextArea() ||
- (root->Style() && root->Style()->UserModify() != READ_ONLY)) {
+ if (root->IsTextArea() || (root->Style() && root->Style()->UserModify() !=
+ EUserModify::kReadOnly)) {
cluster->has_enough_text_to_autosize_ = kHasEnoughText;
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextControl.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698