| 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 LayoutItem_h | 5 #ifndef LayoutItem_h |
| 6 #define LayoutItem_h | 6 #define LayoutItem_h |
| 7 | 7 |
| 8 #include "core/inspector/InspectorTraceEvents.h" | 8 #include "core/inspector/InspectorTraceEvents.h" |
| 9 #include "core/layout/LayoutObject.h" | 9 #include "core/layout/LayoutObject.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool isImage() const | 82 bool isImage() const |
| 83 { | 83 { |
| 84 return m_layoutObject->isImage(); | 84 return m_layoutObject->isImage(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool isLayoutFullScreen() const | 87 bool isLayoutFullScreen() const |
| 88 { | 88 { |
| 89 return m_layoutObject->isLayoutFullScreen(); | 89 return m_layoutObject->isLayoutFullScreen(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 bool isListItem() const |
| 93 { |
| 94 return m_layoutObject->isListItem(); |
| 95 } |
| 96 |
| 92 bool needsLayout() | 97 bool needsLayout() |
| 93 { | 98 { |
| 94 return m_layoutObject->needsLayout(); | 99 return m_layoutObject->needsLayout(); |
| 95 } | 100 } |
| 96 | 101 |
| 97 void layout() | 102 void layout() |
| 98 { | 103 { |
| 99 m_layoutObject->layout(); | 104 m_layoutObject->layout(); |
| 100 } | 105 } |
| 101 | 106 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 LayoutObject* layoutObject() { return m_layoutObject; } | 153 LayoutObject* layoutObject() { return m_layoutObject; } |
| 149 const LayoutObject* layoutObject() const { return m_layoutObject; } | 154 const LayoutObject* layoutObject() const { return m_layoutObject; } |
| 150 | 155 |
| 151 private: | 156 private: |
| 152 LayoutObject* m_layoutObject; | 157 LayoutObject* m_layoutObject; |
| 153 }; | 158 }; |
| 154 | 159 |
| 155 } // namespace blink | 160 } // namespace blink |
| 156 | 161 |
| 157 #endif // LayoutItem_h | 162 #endif // LayoutItem_h |
| OLD | NEW |