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 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class ComputedStyle; | 15 class ComputedStyle; |
16 class Document; | 16 class Document; |
17 class HitTestRequest; | 17 class HitTestRequest; |
18 class HitTestLocation; | 18 class HitTestLocation; |
19 class LayoutObject; | 19 class LayoutObject; |
20 class LineLayoutBox; | 20 class LineLayoutBox; |
21 class LineLayoutBoxModel; | 21 class LineLayoutBoxModel; |
| 22 class LineLayoutPaintShim; |
22 | 23 |
23 enum HitTestFilter; | 24 enum HitTestFilter; |
24 | 25 |
25 class LineLayoutItem { | 26 class LineLayoutItem { |
26 public: | 27 public: |
27 explicit LineLayoutItem(LayoutObject* layoutObject) | 28 explicit LineLayoutItem(LayoutObject* layoutObject) |
28 : m_layoutObject(layoutObject) | 29 : m_layoutObject(layoutObject) |
29 { | 30 { |
30 } | 31 } |
31 | 32 |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 } | 317 } |
317 | 318 |
318 #endif | 319 #endif |
319 | 320 |
320 protected: | 321 protected: |
321 LayoutObject* layoutObject() { return m_layoutObject; } | 322 LayoutObject* layoutObject() { return m_layoutObject; } |
322 const LayoutObject* layoutObject() const { return m_layoutObject; } | 323 const LayoutObject* layoutObject() const { return m_layoutObject; } |
323 | 324 |
324 private: | 325 private: |
325 LayoutObject* m_layoutObject; | 326 LayoutObject* m_layoutObject; |
| 327 |
| 328 friend class LineLayoutPaintShim; |
326 }; | 329 }; |
327 | 330 |
328 } // namespace blink | 331 } // namespace blink |
329 | 332 |
330 #endif // LineLayoutItem_h | 333 #endif // LineLayoutItem_h |
OLD | NEW |