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

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: 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/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index c76579423256b3fc814fa998b3ee881723fb40eb..fc8c89517280fc5c81ddaaee5f9a44dc2956ecb8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -269,7 +269,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
@@ -278,7 +278,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