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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_fragment_base.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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_fragment.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h
index 03c5df925cc01a86574a5b879fab8bd123d98a85..c9260b9287f52fd0ac1a5810c1ee5bc8e4e36f02 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h
@@ -6,6 +6,7 @@
#define NGFragmentBase_h
#include "core/CoreExport.h"
+#include "core/layout/ng/ng_constraint_space.h"
#include "platform/LayoutUnit.h"
#include "platform/heap/Handle.h"
#include "wtf/Vector.h"
@@ -16,16 +17,6 @@ class CORE_EXPORT NGFragmentBase : public GarbageCollected<NGFragmentBase> {
public:
enum NGFragmentType { FragmentBox = 0, FragmentText = 1 };
- // TODO(eae): We might want to re-use WritingMode and Direction from style.
- enum NGWritingMode {
- HorizontalTopBottom = 0,
- VerticalRightLeft = 1,
- VerticalLeftRight = 2,
- SidewaysRightLeft = 3,
- SidewaysLeftRight = 4
- };
- enum NGDirection { LeftToRight = 0, RightToLeft = 1 };
-
NGFragmentType type() const { return static_cast<NGFragmentType>(m_type); }
NGWritingMode writingMode() const {
return static_cast<NGWritingMode>(m_writingMode);
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_fragment.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698