| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // This returns true if our document is in a phase of its lifestyle during w
hich | 280 // This returns true if our document is in a phase of its lifestyle during w
hich |
| 281 // compositing state may legally be read. | 281 // compositing state may legally be read. |
| 282 bool isAllowedToQueryCompositingState() const; | 282 bool isAllowedToQueryCompositingState() const; |
| 283 | 283 |
| 284 // Don't null check this. | 284 // Don't null check this. |
| 285 CompositedLayerMapping* compositedLayerMapping() const; | 285 CompositedLayerMapping* compositedLayerMapping() const; |
| 286 // FIXME: This should return a reference. | 286 // FIXME: This should return a reference. |
| 287 CompositedLayerMapping* ensureCompositedLayerMapping(); | 287 CompositedLayerMapping* ensureCompositedLayerMapping(); |
| 288 GraphicsLayer* graphicsLayerBacking() const; | 288 GraphicsLayer* graphicsLayerBacking() const; |
| 289 GraphicsLayer* graphicsLayerBackingForScrolling() const; | 289 GraphicsLayer* graphicsLayerBackingForScrolling() const; |
| 290 // NOTE: If you are using hasCompositedLayerMapping to determine the state o
f compositing for this layer, | 290 |
| 291 // (and not just to do bookkeeping related to the mapping like, say, allocat
ing or deallocating a mapping), | |
| 292 // then you may have incorrect logic. Use compositingState() instead. | |
| 293 // FIXME: This is identical to null checking compositedLayerMapping(), why n
ot just call that? | |
| 294 bool hasCompositedLayerMapping() const { return m_compositedLayerMapping.get
(); } | |
| 295 void clearCompositedLayerMapping(bool layerBeingDestroyed = false); | 291 void clearCompositedLayerMapping(bool layerBeingDestroyed = false); |
| 296 CompositedLayerMapping* groupedMapping() const { return m_groupedMapping; } | 292 CompositedLayerMapping* groupedMapping() const { return m_groupedMapping; } |
| 297 void setGroupedMapping(CompositedLayerMapping* groupedMapping, bool layerBei
ngDestroyed = false); | 293 void setGroupedMapping(CompositedLayerMapping* groupedMapping, bool layerBei
ngDestroyed = false); |
| 298 | 294 |
| 299 bool hasCompositedMask() const; | 295 bool hasCompositedMask() const; |
| 300 bool hasCompositedClippingMask() const; | 296 bool hasCompositedClippingMask() const; |
| 301 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } | 297 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } |
| 302 | 298 |
| 303 // Computes the position of the given render object in the space of |paintIn
validationContainer|. | 299 // Computes the position of the given render object in the space of |paintIn
validationContainer|. |
| 304 // FIXME: invert the logic to have paint invalidation containers take care o
f painting objects into them, rather than the reverse. | 300 // FIXME: invert the logic to have paint invalidation containers take care o
f painting objects into them, rather than the reverse. |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 | 678 |
| 683 } // namespace blink | 679 } // namespace blink |
| 684 | 680 |
| 685 #ifndef NDEBUG | 681 #ifndef NDEBUG |
| 686 // Outside the WebCore namespace for ease of invocation from gdb. | 682 // Outside the WebCore namespace for ease of invocation from gdb. |
| 687 void showLayerTree(const blink::RenderLayer*); | 683 void showLayerTree(const blink::RenderLayer*); |
| 688 void showLayerTree(const blink::RenderObject*); | 684 void showLayerTree(const blink::RenderObject*); |
| 689 #endif | 685 #endif |
| 690 | 686 |
| 691 #endif // RenderLayer_h | 687 #endif // RenderLayer_h |
| OLD | NEW |