Chromium Code Reviews| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 309 GraphicsLayer* graphicsLayerBacking() const; | 309 GraphicsLayer* graphicsLayerBacking() const; |
| 310 GraphicsLayer* graphicsLayerBackingForScrolling() const; | 310 GraphicsLayer* graphicsLayerBackingForScrolling() const; |
| 311 // NOTE: If you are using hasCompositedDeprecatedPaintLayerMapping to determ ine the state of compositing for this layer, | 311 // NOTE: If you are using hasCompositedDeprecatedPaintLayerMapping to determ ine the state of compositing for this layer, |
| 312 // (and not just to do bookkeeping related to the mapping like, say, allocat ing or deallocating a mapping), | 312 // (and not just to do bookkeeping related to the mapping like, say, allocat ing or deallocating a mapping), |
| 313 // then you may have incorrect logic. Use compositingState() instead. | 313 // then you may have incorrect logic. Use compositingState() instead. |
| 314 // FIXME: This is identical to null checking compositedDeprecatedPaintLayerM apping(), why not just call that? | 314 // FIXME: This is identical to null checking compositedDeprecatedPaintLayerM apping(), why not just call that? |
| 315 bool hasCompositedDeprecatedPaintLayerMapping() const { return m_compositedD eprecatedPaintLayerMapping.get(); } | 315 bool hasCompositedDeprecatedPaintLayerMapping() const { return m_compositedD eprecatedPaintLayerMapping.get(); } |
| 316 void ensureCompositedDeprecatedPaintLayerMapping(); | 316 void ensureCompositedDeprecatedPaintLayerMapping(); |
| 317 void clearCompositedDeprecatedPaintLayerMapping(bool layerBeingDestroyed = f alse); | 317 void clearCompositedDeprecatedPaintLayerMapping(bool layerBeingDestroyed = f alse); |
| 318 CompositedDeprecatedPaintLayerMapping* groupedMapping() const { return m_gro upedMapping; } | 318 CompositedDeprecatedPaintLayerMapping* groupedMapping() const { return m_gro upedMapping; } |
| 319 void setGroupedMapping(CompositedDeprecatedPaintLayerMapping* groupedMapping , bool layerBeingDestroyed = false); | 319 void setGroupedMapping(CompositedDeprecatedPaintLayerMapping* groupedMapping , bool issueInvalidations); |
|
Ian Vollick
2015/07/02 17:28:59
Could you please use an enum rather than a boolean
| |
| 320 | 320 |
| 321 bool hasCompositedMask() const; | 321 bool hasCompositedMask() const; |
| 322 bool hasCompositedClippingMask() const; | 322 bool hasCompositedClippingMask() const; |
| 323 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla bleArea->needsCompositedScrolling(); } | 323 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla bleArea->needsCompositedScrolling(); } |
| 324 | 324 |
| 325 // Computes the position of the given layout object in the space of |paintIn validationContainer|. | 325 // Computes the position of the given layout object in the space of |paintIn validationContainer|. |
| 326 // FIXME: invert the logic to have paint invalidation containers take care o f painting objects into them, rather than the reverse. | 326 // FIXME: invert the logic to have paint invalidation containers take care o f painting objects into them, rather than the reverse. |
| 327 // This will allow us to clean up this static method messiness. | 327 // This will allow us to clean up this static method messiness. |
| 328 static LayoutPoint positionFromPaintInvalidationBacking(const LayoutObject*, const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidation State* = 0); | 328 static LayoutPoint positionFromPaintInvalidationBacking(const LayoutObject*, const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidation State* = 0); |
| 329 | 329 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 713 | 713 |
| 714 } // namespace blink | 714 } // namespace blink |
| 715 | 715 |
| 716 #ifndef NDEBUG | 716 #ifndef NDEBUG |
| 717 // Outside the WebCore namespace for ease of invocation from gdb. | 717 // Outside the WebCore namespace for ease of invocation from gdb. |
| 718 void showLayerTree(const blink::DeprecatedPaintLayer*); | 718 void showLayerTree(const blink::DeprecatedPaintLayer*); |
| 719 void showLayerTree(const blink::LayoutObject*); | 719 void showLayerTree(const blink::LayoutObject*); |
| 720 #endif | 720 #endif |
| 721 | 721 |
| 722 #endif // Layer_h | 722 #endif // Layer_h |
| OLD | NEW |