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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Added 2 changes in mac files 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/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index 10507de24c542e11585ac683879858401dc1b4d7..74bb7ba4587a18f66997888c5d2715541458d2bd 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -267,7 +267,7 @@ IntSize LayoutFlexibleBox::originAdjustmentForScrollbars() const {
WritingMode writingMode = style()->getWritingMode();
if (flexDirection == FlowRow) {
- if (textDirection == RTL) {
+ if (textDirection == TextDirection::Rtl) {
if (writingMode == TopToBottomWritingMode)
size.expand(adjustmentWidth, 0);
else
@@ -276,7 +276,7 @@ IntSize LayoutFlexibleBox::originAdjustmentForScrollbars() const {
if (writingMode == RightToLeftWritingMode)
size.expand(adjustmentWidth, 0);
} else if (flexDirection == FlowRowReverse) {
- if (textDirection == LTR) {
+ if (textDirection == TextDirection::Ltr) {
if (writingMode == TopToBottomWritingMode)
size.expand(adjustmentWidth, 0);
else

Powered by Google App Engine
This is Rietveld 408576698