| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void updateStyleAndLayout() | 170 void updateStyleAndLayout() |
| 171 { | 171 { |
| 172 return m_layoutObject->document().updateStyleAndLayout(); | 172 return m_layoutObject->document().updateStyleAndLayout(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 const ComputedStyle& styleRef() const | 175 const ComputedStyle& styleRef() const |
| 176 { | 176 { |
| 177 return m_layoutObject->styleRef(); | 177 return m_layoutObject->styleRef(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 ComputedStyle& mutableStyleRef() const |
| 181 { |
| 182 return m_layoutObject->mutableStyleRef(); |
| 183 } |
| 184 |
| 180 LayoutSize offsetFromContainer(const LayoutItem& item) const | 185 LayoutSize offsetFromContainer(const LayoutItem& item) const |
| 181 { | 186 { |
| 182 return m_layoutObject->offsetFromContainer(item.layoutObject()); | 187 return m_layoutObject->offsetFromContainer(item.layoutObject()); |
| 183 } | 188 } |
| 184 | 189 |
| 185 FrameView* frameView() const | 190 FrameView* frameView() const |
| 186 { | 191 { |
| 187 return m_layoutObject->document().view(); | 192 return m_layoutObject->document().view(); |
| 188 } | 193 } |
| 189 | 194 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 273 |
| 269 private: | 274 private: |
| 270 LayoutObject* m_layoutObject; | 275 LayoutObject* m_layoutObject; |
| 271 | 276 |
| 272 friend class LayoutAPIShim; | 277 friend class LayoutAPIShim; |
| 273 }; | 278 }; |
| 274 | 279 |
| 275 } // namespace blink | 280 } // namespace blink |
| 276 | 281 |
| 277 #endif // LayoutItem_h | 282 #endif // LayoutItem_h |
| OLD | NEW |