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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_derived_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_derived_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_derived_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_derived_constraint_space.h
new file mode 100644
index 0000000000000000000000000000000000000000..44e738344b50a1a96de808010a7872e998d6f619
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_derived_constraint_space.h
@@ -0,0 +1,44 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NGConstraintSpace_h
+#define NGConstraintSpace_h
+
+#include "core/CoreExport.h"
+#include "core/layout/ng/ng_constraint_space.h"
+#include "core/layout/ng/ng_units.h"
+#include "platform/LayoutUnit.h"
+#include "wtf/DoublyLinkedList.h"
+
+namespace blink {
+
+class CORE_EXPORT NGDerivedConstraintSpace final : public NGConstraintSpace {
+ public:
+ ~NGDerivedConstraintSpace();
+
+ LayoutUnit offset() const { return offset_; }
+ LayoutUnit size() const { return size_; }
+
+ private:
+ NGDerivedConstraintSpace(const NGConstraintSpace* original,
+ NGLogicalOffset offset,
+ NGLogicalSize size,
+ NGWritingMode writingMode,
+ NGDirection direction)
+ : original_(original),
+ offset_(offset),
+ size_(size),
+ writingMode_(writingMode),
+ direction_(direction) {}
+
+ const NGConstraintSpace* original_;
+ NGLogicalOffset offset_;
+ NGLogicalSize size_;
+ NGWritingMode writingMode_;
+ NGDirection direction_;
+};
+
+} // namespace blink
+
+#endif // NGConstraintSpace_h
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_fragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698