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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeMac.mm

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/LayoutThemeMac.mm
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm b/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
index 909ecb8326d94b92932646d76b41930fc5dfd907..a0dec32d91586f2c92afacbb5c50d3b30f8354da 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
@@ -485,7 +485,7 @@ bool LayoutThemeMac::isControlStyled(const ComputedStyle& style) const {
return true;
// NSPopUpButtonCell on macOS 10.9 doesn't support
// NSUserInterfaceLayoutDirectionRightToLeft.
- if (IsOS10_9() && style.direction() == TextDirection::Rtl)
+ if (IsOS10_9() && style.direction() == TextDirection::kRtl)
return true;
}
// Some other cells don't work well when scaled.
@@ -718,7 +718,7 @@ void LayoutThemeMac::adjustMenuListStyle(ComputedStyle& style,
style.setHeight(Length(Auto));
// White-space is locked to pre.
- style.setWhiteSpace(EWhiteSpace::Pre);
+ style.setWhiteSpace(EWhiteSpace::kPre);
// Set the foreground color to black or gray when we have the aqua look.
// Cast to RGB32 is to work around a compiler bug.
@@ -820,7 +820,7 @@ void LayoutThemeMac::setPopupButtonCellState(const LayoutObject& object,
updatePressedState(popupButton, object);
popupButton.userInterfaceLayoutDirection =
- object.styleRef().direction() == TextDirection::Ltr
+ object.styleRef().direction() == TextDirection::kLtr
? NSUserInterfaceLayoutDirectionLeftToRight
: NSUserInterfaceLayoutDirectionRightToLeft;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698