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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp

Issue 2591373003: Changed WritingMode to an enum class and renamed its members (Closed)
Patch Set: Added comment 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/shapes/ShapeOutsideInfo.cpp
diff --git a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
index 1a4fa4a608d64d5521f912d2b1f32b9be22907ca..f67685c915ceb28e718e012699db0685d708ee1c 100644
--- a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
@@ -226,11 +226,11 @@ const Shape& ShapeOutsideInfo::computedShape() const {
inline LayoutUnit borderBeforeInWritingMode(const LayoutBox& layoutBox,
WritingMode writingMode) {
switch (writingMode) {
- case TopToBottomWritingMode:
+ case WritingMode::HorizontalTb:
return LayoutUnit(layoutBox.borderTop());
- case LeftToRightWritingMode:
+ case WritingMode::VerticalLr:
return LayoutUnit(layoutBox.borderLeft());
- case RightToLeftWritingMode:
+ case WritingMode::VerticalRl:
return LayoutUnit(layoutBox.borderRight());
}
@@ -242,11 +242,11 @@ inline LayoutUnit borderAndPaddingBeforeInWritingMode(
const LayoutBox& layoutBox,
WritingMode writingMode) {
switch (writingMode) {
- case TopToBottomWritingMode:
+ case WritingMode::HorizontalTb:
return layoutBox.borderTop() + layoutBox.paddingTop();
- case LeftToRightWritingMode:
+ case WritingMode::VerticalLr:
return layoutBox.borderLeft() + layoutBox.paddingLeft();
- case RightToLeftWritingMode:
+ case WritingMode::VerticalRl:
return layoutBox.borderRight() + layoutBox.paddingRight();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/shapes/BoxShapeTest.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698