Index: third_party/WebKit/Source/core/css/CSSProperty.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSProperty.cpp b/third_party/WebKit/Source/core/css/CSSProperty.cpp |
index 69452b0b07994110da6302901398e2fb0b16692c..7df3a339fcde3b31340774841b6e440c1a5c4626 100644 |
--- a/third_party/WebKit/Source/core/css/CSSProperty.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSProperty.cpp |
@@ -54,13 +54,13 @@ static CSSPropertyID resolveToPhysicalProperty( |
LogicalBoxSide logicalSide, |
const StylePropertyShorthand& shorthand) { |
if (direction == TextDirection::Ltr) { |
- if (writingMode == TopToBottomWritingMode) { |
+ if (isHorizontalWritingMode(writingMode)) { |
// The common case. The logical and physical box sides match. |
// Left = Start, Right = End, Before = Top, After = Bottom |
return shorthand.properties()[logicalSide]; |
} |
- if (writingMode == LeftToRightWritingMode) { |
+ if (isFlippedLinesWritingMode(writingMode)) { |
// Start = Top, End = Bottom, Before = Left, After = Right. |
switch (logicalSide) { |
case StartSide: |
@@ -87,7 +87,7 @@ static CSSPropertyID resolveToPhysicalProperty( |
} |
} |
- if (writingMode == TopToBottomWritingMode) { |
+ if (isHorizontalWritingMode(writingMode)) { |
// Start = Right, End = Left, Before = Top, After = Bottom |
switch (logicalSide) { |
case StartSide: |
@@ -101,7 +101,7 @@ static CSSPropertyID resolveToPhysicalProperty( |
} |
} |
- if (writingMode == LeftToRightWritingMode) { |
+ if (isFlippedLinesWritingMode(writingMode)) { |
// Start = Bottom, End = Top, Before = Left, After = Right |
switch (logicalSide) { |
case StartSide: |