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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Comment Created 4 years, 3 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/LayoutTextControlSingleLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp b/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp
index d762b843cb68937c0613e82a659970c84caeed2e..a8edb0b8a0fd2541f0cab8ceff206b8dd93b9407 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp
@@ -291,7 +291,7 @@ PassRefPtr<ComputedStyle> LayoutTextControlSingleLine::createInnerEditorStyle(co
if (logicalHeight.isPercentOrCalc() || (logicalHeight.isFixed() && logicalHeight.getFloatValue() > computedLineHeight))
textBlockStyle->setLineHeight(ComputedStyle::initialLineHeight());
- textBlockStyle->setDisplay(BLOCK);
+ textBlockStyle->setDisplay(EDisplay::Block);
textBlockStyle->setUnique();
if (inputElement()->shouldRevealPassword())
@@ -302,7 +302,7 @@ PassRefPtr<ComputedStyle> LayoutTextControlSingleLine::createInnerEditorStyle(co
textBlockStyle->setOverflowY(OverflowScroll);
RefPtr<ComputedStyle> noScrollbarStyle = ComputedStyle::create();
noScrollbarStyle->setStyleType(PseudoIdScrollbar);
- noScrollbarStyle->setDisplay(NONE);
+ noScrollbarStyle->setDisplay(EDisplay::None);
textBlockStyle->addCachedPseudoStyle(noScrollbarStyle);
textBlockStyle->setHasPseudoStyle(PseudoIdScrollbar);

Powered by Google App Engine
This is Rietveld 408576698