OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/layout/ng/NGConstraintSpace.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 NGConstraintSpace::NGConstraintSpace(LayoutUnit inlineSize, |
| 10 LayoutUnit blockSize) |
| 11 { |
| 12 m_inlineSize = inlineSize; |
| 13 m_blockSize = blockSize; |
| 14 m_inlineOverflowSize = LayoutUnit(-1); |
| 15 m_blockOverflowSize = LayoutUnit(-1); |
| 16 m_fixedInlineSize = 0; |
| 17 m_fixedBlockSize = 0; |
| 18 m_blockFragmentationType = FragmentNone; |
| 19 } |
| 20 |
| 21 void NGConstraintSpace::addExclusion(const NGExclusion exclusion, |
| 22 unsigned options) |
| 23 { |
| 24 |
| 25 } |
| 26 |
| 27 void NGConstraintSpace::setOverflowSize(LayoutUnit inlineSize, |
| 28 LayoutUnit blockSize) |
| 29 { |
| 30 m_inlineOverflowSize = inlineSize; |
| 31 m_blockOverflowSize = blockSize; |
| 32 } |
| 33 |
| 34 void NGConstraintSpace::setFixedSize(bool inlineFixed, bool blockFixed) |
| 35 { |
| 36 m_fixedInlineSize = inlineFixed; |
| 37 m_fixedBlockSize = blockFixed; |
| 38 } |
| 39 |
| 40 void NGConstraintSpace::setFragmentationType(NGFragmentationType type) |
| 41 { |
| 42 m_blockFragmentationType = type; |
| 43 } |
| 44 |
| 45 DoublyLinkedList<const NGExclusion> NGConstraintSpace::exclusions( |
| 46 unsigned options) const |
| 47 { |
| 48 DoublyLinkedList<const NGExclusion> exclusions; |
| 49 // TODO(eae): Implement. |
| 50 return exclusions; |
| 51 } |
| 52 |
| 53 NGLayoutOpportunityIterator NGConstraintSpace::layoutOpportunities( |
| 54 unsigned clear, NGExclusionType avoid) const |
| 55 { |
| 56 // TODO(eae): Implement. |
| 57 NGLayoutOpportunityIterator iterator(this, clear, avoid); |
| 58 return iterator; |
| 59 } |
| 60 |
| 61 } // namespace blink |
OLD | NEW |