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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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/LayoutMenuList.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
index 8cd237344959176fd45de5f0bcc19efa5c9a2205..605e02ec176f32108cdf69b04ba78e89d60ead93 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
@@ -102,10 +102,12 @@ void LayoutMenuList::adjustInnerStyle() {
Length paddingEnd = Length(LayoutTheme::theme().popupInternalPaddingEnd(
frameView()->getHostWindow(), styleRef()),
Fixed);
- innerStyle.setPaddingLeft(
- styleRef().direction() == TextDirection::Ltr ? paddingStart : paddingEnd);
- innerStyle.setPaddingRight(
- styleRef().direction() == TextDirection::Ltr ? paddingEnd : paddingStart);
+ innerStyle.setPaddingLeft(styleRef().direction() == TextDirection::kLtr
+ ? paddingStart
+ : paddingEnd);
+ innerStyle.setPaddingRight(styleRef().direction() == TextDirection::kLtr
+ ? paddingEnd
+ : paddingStart);
innerStyle.setPaddingTop(
Length(LayoutTheme::theme().popupInternalPaddingTop(styleRef()), Fixed));
innerStyle.setPaddingBottom(Length(
@@ -117,8 +119,8 @@ void LayoutMenuList::adjustInnerStyle() {
m_innerBlock->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
LayoutInvalidationReason::StyleChange);
innerStyle.setTextAlign(style()->isLeftToRightDirection()
- ? ETextAlign::Left
- : ETextAlign::Right);
+ ? ETextAlign::kLeft
+ : ETextAlign::kRight);
innerStyle.setDirection(m_optionStyle->direction());
innerStyle.setUnicodeBidi(m_optionStyle->unicodeBidi());
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutListMarker.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698