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 |
(...skipping 22 matching lines...) Expand all Loading... |
33 { | 33 { |
34 } | 34 } |
35 | 35 |
36 LineLayoutItem() : m_layoutObject(0) { } | 36 LineLayoutItem() : m_layoutObject(0) { } |
37 | 37 |
38 // TODO(pilgrim): Remove this. It's only here to make things compile before | 38 // TODO(pilgrim): Remove this. It's only here to make things compile before |
39 // switching all of core/layout/line to using the API. | 39 // switching all of core/layout/line to using the API. |
40 // https://crbug.com/499321 | 40 // https://crbug.com/499321 |
41 operator LayoutObject*() const { return m_layoutObject; } | 41 operator LayoutObject*() const { return m_layoutObject; } |
42 | 42 |
| 43 bool needsLayout() const |
| 44 { |
| 45 return m_layoutObject->needsLayout(); |
| 46 } |
| 47 |
43 Node* node() const | 48 Node* node() const |
44 { | 49 { |
45 return m_layoutObject->node(); | 50 return m_layoutObject->node(); |
46 } | 51 } |
47 | 52 |
48 Node* nonPseudoNode() const | 53 Node* nonPseudoNode() const |
49 { | 54 { |
50 return m_layoutObject->nonPseudoNode(); | 55 return m_layoutObject->nonPseudoNode(); |
51 } | 56 } |
52 | 57 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 LayoutObject* layoutObject() { return m_layoutObject; } | 315 LayoutObject* layoutObject() { return m_layoutObject; } |
311 const LayoutObject* layoutObject() const { return m_layoutObject; } | 316 const LayoutObject* layoutObject() const { return m_layoutObject; } |
312 | 317 |
313 private: | 318 private: |
314 LayoutObject* m_layoutObject; | 319 LayoutObject* m_layoutObject; |
315 }; | 320 }; |
316 | 321 |
317 } // namespace blink | 322 } // namespace blink |
318 | 323 |
319 #endif // LineLayoutItem_h | 324 #endif // LineLayoutItem_h |
OLD | NEW |