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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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 39fea2df2c493ffcda3b5bc874f69d13be4c9cb7..909ecb8326d94b92932646d76b41930fc5dfd907 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() == RTL)
+ if (IsOS10_9() && style.direction() == TextDirection::Rtl)
return true;
}
// Some other cells don't work well when scaled.
@@ -820,7 +820,7 @@ void LayoutThemeMac::setPopupButtonCellState(const LayoutObject& object,
updatePressedState(popupButton, object);
popupButton.userInterfaceLayoutDirection =
- object.styleRef().direction() == LTR
+ object.styleRef().direction() == TextDirection::Ltr
? NSUserInterfaceLayoutDirectionLeftToRight
: NSUserInterfaceLayoutDirectionRightToLeft;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextTest.cpp ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698