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

Unified Diff: third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.cpp

Issue 2176343006: [LayoutNG] Add NGConstraintSpace class definition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase w/HEAD Created 4 years, 5 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/NGConstraintSpace.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/NGConstraintSpace.cpp
diff --git a/third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.cpp b/third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..0904a4de46052763265fdf4ce47d3b9999454af5
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.cpp
@@ -0,0 +1,61 @@
+// 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.
+
+#include "core/layout/ng/NGConstraintSpace.h"
+
+namespace blink {
+
+NGConstraintSpace::NGConstraintSpace(LayoutUnit inlineSize,
+ LayoutUnit blockSize)
+{
+ m_inlineSize = inlineSize;
+ m_blockSize = blockSize;
+ m_inlineOverflowSize = LayoutUnit(-1);
+ m_blockOverflowSize = LayoutUnit(-1);
+ m_fixedInlineSize = 0;
+ m_fixedBlockSize = 0;
+ m_blockFragmentationType = FragmentNone;
+}
+
+void NGConstraintSpace::addExclusion(const NGExclusion exclusion,
+ unsigned options)
+{
+
+}
+
+void NGConstraintSpace::setOverflowSize(LayoutUnit inlineSize,
+ LayoutUnit blockSize)
+{
+ m_inlineOverflowSize = inlineSize;
+ m_blockOverflowSize = blockSize;
+}
+
+void NGConstraintSpace::setFixedSize(bool inlineFixed, bool blockFixed)
+{
+ m_fixedInlineSize = inlineFixed;
+ m_fixedBlockSize = blockFixed;
+}
+
+void NGConstraintSpace::setFragmentationType(NGFragmentationType type)
+{
+ m_blockFragmentationType = type;
+}
+
+DoublyLinkedList<const NGExclusion> NGConstraintSpace::exclusions(
+ unsigned options) const
+{
+ DoublyLinkedList<const NGExclusion> exclusions;
+ // TODO(eae): Implement.
+ return exclusions;
+}
+
+NGLayoutOpportunityIterator NGConstraintSpace::layoutOpportunities(
+ unsigned clear, NGExclusionFlowType avoid) const
+{
+ // TODO(eae): Implement.
+ NGLayoutOpportunityIterator iterator(this, clear, avoid);
+ return iterator;
+}
+
+} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698