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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h

Issue 2236933003: [LayoutNG] Add writing mode to NGDerivedConstraintSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/ng/ng_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
index e4ee8b10f3913507521537fbd0dcd8870f8f8604..5c322ab1f21883126bc59982e8cd0d34254331de 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
@@ -40,6 +40,16 @@ enum NGExclusionFlowType {
ExcludeInlineBoth
};
+enum NGWritingMode {
+ HorizontalTopBottom = 0,
+ VerticalRightLeft = 1,
+ VerticalLeftRight = 2,
+ SidewaysRightLeft = 3,
+ SidewaysLeftRight = 4
+};
+
+enum NGDirection { LeftToRight = 0, RightToLeft = 1 };
+
class NGExclusion {
public:
NGExclusion();
@@ -130,25 +140,6 @@ class CORE_EXPORT NGLayoutOpportunityIterator final {
NGExclusionFlowType m_avoid;
};
-class CORE_EXPORT NGDerivedConstraintSpace final : NGConstraintSpace {
- public:
- ~NGDerivedConstraintSpace();
-
- LayoutUnit inlineOffset() const;
- LayoutUnit blockOffset() const;
- LayoutUnit inlineSize() const;
- LayoutUnit blockSize() const;
-
- private:
- NGDerivedConstraintSpace();
-
- LayoutUnit m_inlineOffset;
- LayoutUnit m_blockOffset;
- LayoutUnit m_inlineSize;
- LayoutUnit m_blockSize;
- NGConstraintSpace* m_original;
-};
-
} // namespace blink
#endif // NGConstraintSpace_h

Powered by Google App Engine
This is Rietveld 408576698