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

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

Issue 1419813004: Remove the "horizontal-bt" value from -webkit-writing-mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add static_assert to ensure TransformedWritingMode matches to WritingMode 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/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 5122fbb01aec4a0f38a3a69c66ffe70bfadb4f8f..5767dcd7942626fa80398eb9f2768a3b35dbab03 100644
--- a/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp
@@ -186,7 +186,6 @@ inline LayoutUnit borderBeforeInWritingMode(const LayoutBox& layoutBox, WritingM
{
switch (writingMode) {
case TopToBottomWritingMode: return layoutBox.borderTop();
- case BottomToTopWritingMode: return layoutBox.borderBottom();
case LeftToRightWritingMode: return layoutBox.borderLeft();
case RightToLeftWritingMode: return layoutBox.borderRight();
}
@@ -199,7 +198,6 @@ inline LayoutUnit borderAndPaddingBeforeInWritingMode(const LayoutBox& layoutBox
{
switch (writingMode) {
case TopToBottomWritingMode: return layoutBox.borderTop() + layoutBox.paddingTop();
- case BottomToTopWritingMode: return layoutBox.borderBottom() + layoutBox.paddingBottom();
case LeftToRightWritingMode: return layoutBox.borderLeft() + layoutBox.paddingLeft();
case RightToLeftWritingMode: return layoutBox.borderRight() + layoutBox.paddingRight();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698