OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 LineLayoutItem_h | 5 #ifndef LineLayoutItem_h |
6 #define LineLayoutItem_h | 6 #define LineLayoutItem_h |
7 | 7 |
8 #include "core/layout/LayoutObject.h" | 8 #include "core/layout/LayoutObject.h" |
9 #include "core/layout/LayoutObjectInlines.h" | 9 #include "core/layout/LayoutObjectInlines.h" |
10 | 10 |
11 #include "platform/LayoutUnit.h" | 11 #include "platform/LayoutUnit.h" |
| 12 #include "wtf/Allocator.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 | 15 |
15 class ComputedStyle; | 16 class ComputedStyle; |
16 class Document; | 17 class Document; |
17 class HitTestRequest; | 18 class HitTestRequest; |
18 class HitTestLocation; | 19 class HitTestLocation; |
19 class LayoutObject; | 20 class LayoutObject; |
20 class LineLayoutBox; | 21 class LineLayoutBox; |
21 class LineLayoutBoxModel; | 22 class LineLayoutBoxModel; |
22 | 23 |
23 enum HitTestFilter; | 24 enum HitTestFilter; |
24 | 25 |
25 class LineLayoutItem { | 26 class LineLayoutItem { |
| 27 ALLOW_ONLY_INLINE_ALLOCATION(); |
26 public: | 28 public: |
27 explicit LineLayoutItem(LayoutObject* layoutObject) | 29 explicit LineLayoutItem(LayoutObject* layoutObject) |
28 : m_layoutObject(layoutObject) | 30 : m_layoutObject(layoutObject) |
29 { | 31 { |
30 } | 32 } |
31 | 33 |
32 LineLayoutItem(std::nullptr_t) | 34 LineLayoutItem(std::nullptr_t) |
33 : m_layoutObject(0) | 35 : m_layoutObject(0) |
34 { | 36 { |
35 } | 37 } |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 LayoutObject* layoutObject() { return m_layoutObject; } | 323 LayoutObject* layoutObject() { return m_layoutObject; } |
322 const LayoutObject* layoutObject() const { return m_layoutObject; } | 324 const LayoutObject* layoutObject() const { return m_layoutObject; } |
323 | 325 |
324 private: | 326 private: |
325 LayoutObject* m_layoutObject; | 327 LayoutObject* m_layoutObject; |
326 }; | 328 }; |
327 | 329 |
328 } // namespace blink | 330 } // namespace blink |
329 | 331 |
330 #endif // LineLayoutItem_h | 332 #endif // LineLayoutItem_h |
OLD | NEW |