OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 return m_location; | 273 return m_location; |
274 } | 274 } |
275 // FIXME: size() should DCHECK(!m_needsPositionUpdate) as well, but that fails | 275 // FIXME: size() should DCHECK(!m_needsPositionUpdate) as well, but that fails |
276 // in some tests, for example, fast/repaint/clipped-relative.html. | 276 // in some tests, for example, fast/repaint/clipped-relative.html. |
277 const IntSize& size() const { return m_size; } | 277 const IntSize& size() const { return m_size; } |
278 void setSizeHackForLayoutTreeAsText(const IntSize& size) { m_size = size; } | 278 void setSizeHackForLayoutTreeAsText(const IntSize& size) { m_size = size; } |
279 | 279 |
280 LayoutRect rect() const { return LayoutRect(location(), LayoutSize(size())); } | 280 LayoutRect rect() const { return LayoutRect(location(), LayoutSize(size())); } |
281 | 281 |
282 bool isRootLayer() const { return m_isRootLayer; } | 282 bool isRootLayer() const { return m_isRootLayer; } |
| 283 bool isRootScrollerLayer() const; |
283 | 284 |
284 PaintLayerCompositor* compositor() const; | 285 PaintLayerCompositor* compositor() const; |
285 | 286 |
286 // Notification from the layoutObject that its content changed (e.g. current | 287 // Notification from the layoutObject that its content changed (e.g. current |
287 // frame of image changed). Allows updates of layer content without | 288 // frame of image changed). Allows updates of layer content without |
288 // invalidating paint. | 289 // invalidating paint. |
289 void contentChanged(ContentChangeType); | 290 void contentChanged(ContentChangeType); |
290 | 291 |
291 void updateLayerPosition(); | 292 void updateLayerPosition(); |
292 | 293 |
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 | 1241 |
1241 } // namespace blink | 1242 } // namespace blink |
1242 | 1243 |
1243 #ifndef NDEBUG | 1244 #ifndef NDEBUG |
1244 // Outside the WebCore namespace for ease of invocation from gdb. | 1245 // Outside the WebCore namespace for ease of invocation from gdb. |
1245 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1246 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
1246 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1247 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
1247 #endif | 1248 #endif |
1248 | 1249 |
1249 #endif // Layer_h | 1250 #endif // Layer_h |
OLD | NEW |