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 NGPhysicalBoxFragment_h | 5 #ifndef NGPhysicalBoxFragment_h |
6 #define NGPhysicalBoxFragment_h | 6 #define NGPhysicalBoxFragment_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/geometry/ng_logical_offset.h" | 9 #include "core/layout/ng/geometry/ng_logical_offset.h" |
10 #include "core/layout/ng/geometry/ng_margin_strut.h" | 10 #include "core/layout/ng/geometry/ng_margin_strut.h" |
11 #include "core/layout/ng/ng_floating_object.h" | 11 #include "core/layout/ng/ng_floating_object.h" |
12 #include "core/layout/ng/ng_physical_fragment.h" | 12 #include "core/layout/ng/ng_physical_fragment.h" |
13 #include "wtf/Optional.h" | 13 #include "platform/wtf/Optional.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 struct NGFloatingObject; | 17 struct NGFloatingObject; |
18 | 18 |
19 class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment { | 19 class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment { |
20 public: | 20 public: |
21 // This modifies the passed-in children vector. | 21 // This modifies the passed-in children vector. |
22 NGPhysicalBoxFragment(LayoutObject* layout_object, | 22 NGPhysicalBoxFragment(LayoutObject* layout_object, |
23 NGPhysicalSize size, | 23 NGPhysicalSize size, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 DEFINE_TYPE_CASTS(NGPhysicalBoxFragment, | 59 DEFINE_TYPE_CASTS(NGPhysicalBoxFragment, |
60 NGPhysicalFragment, | 60 NGPhysicalFragment, |
61 fragment, | 61 fragment, |
62 fragment->Type() == NGPhysicalFragment::kFragmentBox, | 62 fragment->Type() == NGPhysicalFragment::kFragmentBox, |
63 fragment.Type() == NGPhysicalFragment::kFragmentBox); | 63 fragment.Type() == NGPhysicalFragment::kFragmentBox); |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif // NGPhysicalBoxFragment_h | 67 #endif // NGPhysicalBoxFragment_h |
OLD | NEW |