| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La
youtRect& layoutRect, VisualRectFlags flags = DefaultVisualRectFlags) const | 287 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La
youtRect& layoutRect, VisualRectFlags flags = DefaultVisualRectFlags) const |
| 288 { | 288 { |
| 289 return m_layoutObject->mapToVisualRectInAncestorSpace(ancestor, layoutRe
ct, flags); | 289 return m_layoutObject->mapToVisualRectInAncestorSpace(ancestor, layoutRe
ct, flags); |
| 290 } | 290 } |
| 291 | 291 |
| 292 Color resolveColor(int colorProperty) const | 292 Color resolveColor(int colorProperty) const |
| 293 { | 293 { |
| 294 return m_layoutObject->resolveColor(colorProperty); | 294 return m_layoutObject->resolveColor(colorProperty); |
| 295 } | 295 } |
| 296 | 296 |
| 297 ObjectPaintProperties* objectPaintProperties() const | 297 const ObjectPaintProperties* objectPaintProperties() const |
| 298 { | 298 { |
| 299 return m_layoutObject->objectPaintProperties(); | 299 return m_layoutObject->objectPaintProperties(); |
| 300 } | 300 } |
| 301 | 301 |
| 302 protected: | 302 protected: |
| 303 LayoutObject* layoutObject() { return m_layoutObject; } | 303 LayoutObject* layoutObject() { return m_layoutObject; } |
| 304 const LayoutObject* layoutObject() const { return m_layoutObject; } | 304 const LayoutObject* layoutObject() const { return m_layoutObject; } |
| 305 | 305 |
| 306 private: | 306 private: |
| 307 LayoutObject* m_layoutObject; | 307 LayoutObject* m_layoutObject; |
| 308 | 308 |
| 309 friend class LayoutAPIShim; | 309 friend class LayoutAPIShim; |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 } // namespace blink | 312 } // namespace blink |
| 313 | 313 |
| 314 #endif // LayoutItem_h | 314 #endif // LayoutItem_h |
| OLD | NEW |