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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.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: 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/LayoutFlexibleBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
index 661cd9a3529962a1aed647febf843bccf8329afc..efe8cd72d34865042a9f1c8bc71ed2dd2b92a069 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
@@ -83,6 +83,10 @@ private:
NeverLayout
};
+ enum class TransformedWritingMode {
+ TopToBottomWritingMode, RightToLeftWritingMode, LeftToRightWritingMode, BottomToTopWritingMode
+ };
+
typedef HashMap<const LayoutBox*, LayoutUnit> InflexibleFlexItemSize;
typedef Vector<LayoutBox*> OrderedFlexItemList;
@@ -107,7 +111,7 @@ private:
LayoutUnit crossAxisContentExtent() const;
LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight);
LayoutUnit computeMainAxisExtentForChild(const LayoutBox& child, SizeType, const Length& size);
- WritingMode transformedWritingMode() const;
+ TransformedWritingMode transformedWritingMode() const;
LayoutUnit flowAwareBorderStart() const;
LayoutUnit flowAwareBorderEnd() const;
LayoutUnit flowAwareBorderBefore() const;

Powered by Google App Engine
This is Rietveld 408576698