| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NGLayoutAlgorithm_h | 5 #ifndef NGLayoutAlgorithm_h |
| 6 #define NGLayoutAlgorithm_h | 6 #define NGLayoutAlgorithm_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 struct MinAndMaxContentSizes; | 15 struct MinAndMaxContentSizes; |
| 16 class NGBlockNode; | 16 class NGBlockNode; |
| 17 class NGConstraintSpace; | 17 class NGConstraintSpace; |
| 18 class NGFragmentBase; | 18 class NGFragmentBase; |
| 19 class NGPhysicalFragmentBase; | 19 class NGPhysicalFragmentBase; |
| 20 class NGPhysicalFragment; | |
| 21 | 20 |
| 22 enum NGLayoutStatus { kNotFinished, kChildAlgorithmRequired, kNewFragment }; | 21 enum NGLayoutStatus { kNotFinished, kChildAlgorithmRequired, kNewFragment }; |
| 23 | 22 |
| 24 // Base class for all LayoutNG algorithms. | 23 // Base class for all LayoutNG algorithms. |
| 25 class CORE_EXPORT NGLayoutAlgorithm | 24 class CORE_EXPORT NGLayoutAlgorithm |
| 26 : public GarbageCollectedFinalized<NGLayoutAlgorithm> { | 25 : public GarbageCollectedFinalized<NGLayoutAlgorithm> { |
| 27 WTF_MAKE_NONCOPYABLE(NGLayoutAlgorithm); | 26 WTF_MAKE_NONCOPYABLE(NGLayoutAlgorithm); |
| 28 | 27 |
| 29 public: | 28 public: |
| 30 NGLayoutAlgorithm() {} | 29 NGLayoutAlgorithm() {} |
| (...skipping 26 matching lines...) Expand all Loading... |
| 57 virtual MinAndMaxState ComputeMinAndMaxContentSizes(MinAndMaxContentSizes*) { | 56 virtual MinAndMaxState ComputeMinAndMaxContentSizes(MinAndMaxContentSizes*) { |
| 58 return kNotImplemented; | 57 return kNotImplemented; |
| 59 } | 58 } |
| 60 | 59 |
| 61 DEFINE_INLINE_VIRTUAL_TRACE() {} | 60 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace blink | 63 } // namespace blink |
| 65 | 64 |
| 66 #endif // NGLayoutAlgorithm_h | 65 #endif // NGLayoutAlgorithm_h |
| OLD | NEW |