| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 const ObjectPaintProperties* objectPaintProperties() const | 311 const ObjectPaintProperties* objectPaintProperties() const |
| 312 { | 312 { |
| 313 return m_layoutObject->objectPaintProperties(); | 313 return m_layoutObject->objectPaintProperties(); |
| 314 } | 314 } |
| 315 | 315 |
| 316 void invalidatePaintRectangle(const LayoutRect& dirtyRect) const | 316 void invalidatePaintRectangle(const LayoutRect& dirtyRect) const |
| 317 { | 317 { |
| 318 m_layoutObject->invalidatePaintRectangle(dirtyRect); | 318 m_layoutObject->invalidatePaintRectangle(dirtyRect); |
| 319 } | 319 } |
| 320 | 320 |
| 321 PassRefPtr<ComputedStyle> getUncachedPseudoStyle(const PseudoStyleRequest& p
seudoStyleRequest, const ComputedStyle* parentStyle = nullptr, const ComputedSty
le* ownStyle = nullptr) const |
| 322 { |
| 323 return m_layoutObject->getUncachedPseudoStyle(pseudoStyleRequest, parent
Style, ownStyle); |
| 324 } |
| 325 |
| 321 protected: | 326 protected: |
| 322 LayoutObject* layoutObject() { return m_layoutObject; } | 327 LayoutObject* layoutObject() { return m_layoutObject; } |
| 323 const LayoutObject* layoutObject() const { return m_layoutObject; } | 328 const LayoutObject* layoutObject() const { return m_layoutObject; } |
| 324 | 329 |
| 325 private: | 330 private: |
| 326 LayoutObject* m_layoutObject; | 331 LayoutObject* m_layoutObject; |
| 327 | 332 |
| 328 friend class LayoutAPIShim; | 333 friend class LayoutAPIShim; |
| 329 }; | 334 }; |
| 330 | 335 |
| 331 } // namespace blink | 336 } // namespace blink |
| 332 | 337 |
| 333 #endif // LayoutItem_h | 338 #endif // LayoutItem_h |
| OLD | NEW |