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

Unified Diff: third_party/WebKit/Source/platform/text/WritingMode.h

Issue 1419813004: Remove the "horizontal-bt" value from -webkit-writing-mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestExpectations Created 5 years, 2 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/platform/text/WritingMode.h
diff --git a/third_party/WebKit/Source/platform/text/WritingMode.h b/third_party/WebKit/Source/platform/text/WritingMode.h
index 1c2866a0db7c77e2db553ece0f6081eb979da61e..8f679946af83f2d0fd9c763dd2ff3c06c6685f8d 100644
--- a/third_party/WebKit/Source/platform/text/WritingMode.h
+++ b/third_party/WebKit/Source/platform/text/WritingMode.h
@@ -34,25 +34,25 @@
namespace blink {
enum WritingMode {
- TopToBottomWritingMode, RightToLeftWritingMode, LeftToRightWritingMode, BottomToTopWritingMode
+ TopToBottomWritingMode, RightToLeftWritingMode, LeftToRightWritingMode
};
-// Lines have horizontal orientation; modes horizontal-tb or horizontal-bt.
+// Lines have horizontal orientation; modes horizontal-tb.
inline bool isHorizontalWritingMode(WritingMode writingMode)
{
- return writingMode == TopToBottomWritingMode || writingMode == BottomToTopWritingMode;
+ return writingMode == TopToBottomWritingMode;
}
-// Bottom of the line occurs earlier in the block; modes vertical-lr or horizontal-bt.
+// Bottom of the line occurs earlier in the block; modes vertical-lr.
inline bool isFlippedLinesWritingMode(WritingMode writingMode)
{
- return writingMode == LeftToRightWritingMode || writingMode == BottomToTopWritingMode;
+ return writingMode == LeftToRightWritingMode;
}
-// Block progression increases in the opposite direction to normal; modes vertical-rl or horizontal-bt.
+// Block progression increases in the opposite direction to normal; modes vertical-rl.
inline bool isFlippedBlocksWritingMode(WritingMode writingMode)
{
- return writingMode == RightToLeftWritingMode || writingMode == BottomToTopWritingMode;
+ return writingMode == RightToLeftWritingMode;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698