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 #include "wtf/Allocator.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class ComputedStyle; | 16 class ComputedStyle; |
17 class Document; | 17 class Document; |
18 class HitTestRequest; | 18 class HitTestRequest; |
19 class HitTestLocation; | 19 class HitTestLocation; |
20 class LayoutObject; | 20 class LayoutObject; |
21 class LineLayoutBox; | 21 class LineLayoutBox; |
22 class LineLayoutBoxModel; | 22 class LineLayoutBoxModel; |
23 class LineLayoutPaintShim; | 23 class LineLayoutAPIShim; |
24 | 24 |
25 enum HitTestFilter; | 25 enum HitTestFilter; |
26 | 26 |
27 class LineLayoutItem { | 27 class LineLayoutItem { |
28 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 28 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
29 public: | 29 public: |
30 explicit LineLayoutItem(LayoutObject* layoutObject) | 30 explicit LineLayoutItem(LayoutObject* layoutObject) |
31 : m_layoutObject(layoutObject) | 31 : m_layoutObject(layoutObject) |
32 { | 32 { |
33 } | 33 } |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 #endif | 376 #endif |
377 | 377 |
378 protected: | 378 protected: |
379 LayoutObject* layoutObject() { return m_layoutObject; } | 379 LayoutObject* layoutObject() { return m_layoutObject; } |
380 const LayoutObject* layoutObject() const { return m_layoutObject; } | 380 const LayoutObject* layoutObject() const { return m_layoutObject; } |
381 | 381 |
382 private: | 382 private: |
383 LayoutObject* m_layoutObject; | 383 LayoutObject* m_layoutObject; |
384 | 384 |
385 friend class LineLayoutPaintShim; | 385 friend class LineLayoutAPIShim; |
386 }; | 386 }; |
387 | 387 |
388 } // namespace blink | 388 } // namespace blink |
389 | 389 |
390 #endif // LineLayoutItem_h | 390 #endif // LineLayoutItem_h |
OLD | NEW |