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

Unified Diff: third_party/WebKit/Source/platform/LengthBox.cpp

Issue 2591373003: Changed WritingMode to an enum class and renamed its members (Closed)
Patch Set: 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/platform/LengthBox.cpp
diff --git a/third_party/WebKit/Source/platform/LengthBox.cpp b/third_party/WebKit/Source/platform/LengthBox.cpp
index a64a6891d8bb6ab2177e7e3ef0a337176efffba6..372a6a1cbb407316330bc16a2fda51e3bf103d0f 100644
--- a/third_party/WebKit/Source/platform/LengthBox.cpp
+++ b/third_party/WebKit/Source/platform/LengthBox.cpp
@@ -42,11 +42,11 @@ const Length& LengthBox::logicalRight(WritingMode writingMode) const {
const Length& LengthBox::before(WritingMode writingMode) const {
switch (writingMode) {
- case TopToBottomWritingMode:
+ case WritingMode::HorizontalTb:
return m_top;
- case LeftToRightWritingMode:
+ case WritingMode::VerticalLr:
return m_left;
- case RightToLeftWritingMode:
+ case WritingMode::VerticalRl:
return m_right;
}
ASSERT_NOT_REACHED();
@@ -55,11 +55,11 @@ const Length& LengthBox::before(WritingMode writingMode) const {
const Length& LengthBox::after(WritingMode writingMode) const {
switch (writingMode) {
- case TopToBottomWritingMode:
+ case WritingMode::HorizontalTb:
return m_bottom;
- case LeftToRightWritingMode:
+ case WritingMode::VerticalLr:
return m_right;
- case RightToLeftWritingMode:
+ case WritingMode::VerticalRl:
return m_left;
}
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698