| 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 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 LayoutItem container() const | 139 LayoutItem container() const |
| 140 { | 140 { |
| 141 return LayoutItem(m_layoutObject->container()); | 141 return LayoutItem(m_layoutObject->container()); |
| 142 } | 142 } |
| 143 | 143 |
| 144 Node* node() const | 144 Node* node() const |
| 145 { | 145 { |
| 146 return m_layoutObject->node(); | 146 return m_layoutObject->node(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void updateStyleAndLayout() |
| 150 { |
| 151 return m_layoutObject->document().updateStyleAndLayout(); |
| 152 } |
| 153 |
| 149 const ComputedStyle& styleRef() const | 154 const ComputedStyle& styleRef() const |
| 150 { | 155 { |
| 151 return m_layoutObject->styleRef(); | 156 return m_layoutObject->styleRef(); |
| 152 } | 157 } |
| 153 | 158 |
| 154 LayoutSize offsetFromContainer(const LayoutItem& item) const | 159 LayoutSize offsetFromContainer(const LayoutItem& item) const |
| 155 { | 160 { |
| 156 return m_layoutObject->offsetFromContainer(item.layoutObject()); | 161 return m_layoutObject->offsetFromContainer(item.layoutObject()); |
| 157 } | 162 } |
| 158 | 163 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 LayoutObject* layoutObject() { return m_layoutObject; } | 205 LayoutObject* layoutObject() { return m_layoutObject; } |
| 201 const LayoutObject* layoutObject() const { return m_layoutObject; } | 206 const LayoutObject* layoutObject() const { return m_layoutObject; } |
| 202 | 207 |
| 203 private: | 208 private: |
| 204 LayoutObject* m_layoutObject; | 209 LayoutObject* m_layoutObject; |
| 205 }; | 210 }; |
| 206 | 211 |
| 207 } // namespace blink | 212 } // namespace blink |
| 208 | 213 |
| 209 #endif // LayoutItem_h | 214 #endif // LayoutItem_h |
| OLD | NEW |