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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 const ObjectPaintProperties* paintProperties() const { | 222 const ObjectPaintProperties* paintProperties() const { |
223 return m_layoutObject->paintProperties(); | 223 return m_layoutObject->paintProperties(); |
224 } | 224 } |
225 | 225 |
226 void invalidatePaintRectangle(const LayoutRect& dirtyRect) const { | 226 void invalidatePaintRectangle(const LayoutRect& dirtyRect) const { |
227 m_layoutObject->invalidatePaintRectangle(dirtyRect); | 227 m_layoutObject->invalidatePaintRectangle(dirtyRect); |
228 } | 228 } |
229 | 229 |
230 PassRefPtr<ComputedStyle> getUncachedPseudoStyle( | 230 PassRefPtr<ComputedStyle> getUncachedPseudoStyle( |
231 const PseudoStyleRequest& pseudoStyleRequest, | 231 const PseudoStyleRequest& pseudoStyleRequest, |
232 const ComputedStyle* parentStyle = nullptr, | 232 const ComputedStyle* parentStyle = nullptr) const { |
233 const ComputedStyle* ownStyle = nullptr) const { | |
234 return m_layoutObject->getUncachedPseudoStyle(pseudoStyleRequest, | 233 return m_layoutObject->getUncachedPseudoStyle(pseudoStyleRequest, |
235 parentStyle, ownStyle); | 234 parentStyle); |
236 } | 235 } |
237 | 236 |
238 protected: | 237 protected: |
239 LayoutObject* layoutObject() { return m_layoutObject; } | 238 LayoutObject* layoutObject() { return m_layoutObject; } |
240 const LayoutObject* layoutObject() const { return m_layoutObject; } | 239 const LayoutObject* layoutObject() const { return m_layoutObject; } |
241 | 240 |
242 private: | 241 private: |
243 LayoutObject* m_layoutObject; | 242 LayoutObject* m_layoutObject; |
244 | 243 |
245 friend class LayoutAPIShim; | 244 friend class LayoutAPIShim; |
246 }; | 245 }; |
247 | 246 |
248 } // namespace blink | 247 } // namespace blink |
249 | 248 |
250 #endif // LayoutItem_h | 249 #endif // LayoutItem_h |
OLD | NEW |