| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 return m_layoutObject->mutableStyle(); | 185 return m_layoutObject->mutableStyle(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 ComputedStyle& mutableStyleRef() const | 188 ComputedStyle& mutableStyleRef() const |
| 189 { | 189 { |
| 190 return m_layoutObject->mutableStyleRef(); | 190 return m_layoutObject->mutableStyleRef(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void setStyle(PassRefPtr<ComputedStyle> style) | 193 void setStyle(PassRefPtr<ComputedStyle> style) |
| 194 { | 194 { |
| 195 m_layoutObject->setStyle(style); | 195 m_layoutObject->setStyle(std::move(style)); |
| 196 } | 196 } |
| 197 | 197 |
| 198 LayoutSize offsetFromContainer(const LayoutItem& item) const | 198 LayoutSize offsetFromContainer(const LayoutItem& item) const |
| 199 { | 199 { |
| 200 return m_layoutObject->offsetFromContainer(item.layoutObject()); | 200 return m_layoutObject->offsetFromContainer(item.layoutObject()); |
| 201 } | 201 } |
| 202 | 202 |
| 203 LayoutViewItem view() const; | 203 LayoutViewItem view() const; |
| 204 | 204 |
| 205 FrameView* frameView() const | 205 FrameView* frameView() const |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 private: | 314 private: |
| 315 LayoutObject* m_layoutObject; | 315 LayoutObject* m_layoutObject; |
| 316 | 316 |
| 317 friend class LayoutAPIShim; | 317 friend class LayoutAPIShim; |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 } // namespace blink | 320 } // namespace blink |
| 321 | 321 |
| 322 #endif // LayoutItem_h | 322 #endif // LayoutItem_h |
| OLD | NEW |