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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
426 | 426 |
427 // This returns true if our document is in a phase of its lifestyle during w hich | 427 // This returns true if our document is in a phase of its lifestyle during w hich |
428 // compositing state may legally be read. | 428 // compositing state may legally be read. |
429 bool isAllowedToQueryCompositingState() const; | 429 bool isAllowedToQueryCompositingState() const; |
430 | 430 |
431 // Don't null check this. | 431 // Don't null check this. |
432 // FIXME: Rename. | 432 // FIXME: Rename. |
433 CompositedLayerMapping* compositedLayerMapping() const; | 433 CompositedLayerMapping* compositedLayerMapping() const; |
434 GraphicsLayer* graphicsLayerBacking() const; | 434 GraphicsLayer* graphicsLayerBacking() const; |
435 GraphicsLayer* graphicsLayerBackingForScrolling() const; | 435 GraphicsLayer* graphicsLayerBackingForScrolling() const; |
436 // Returns true for layers with scrollable overflow which have a background | |
437 // that can be painted into the composited scrolling contents layer (i.e. | |
438 // the background can scroll with the content). When the background is also | |
chrishtr
2016/09/02 01:19:38
"can be painted into the composited scrolling cont
Stephen Chennney
2016/09/06 21:06:21
Will do.
| |
439 // opaque this allows us to composite the scroller even on low DPI as we can | |
440 // draw with subpixel anti-aliasing. | |
441 bool shouldPaintBackgroundOntoScrollingContentsLayer() const; | |
436 // NOTE: If you are using hasCompositedLayerMapping to determine the state o f compositing for this layer, | 442 // NOTE: If you are using hasCompositedLayerMapping to determine the state o f compositing for this layer, |
437 // (and not just to do bookkeeping related to the mapping like, say, allocat ing or deallocating a mapping), | 443 // (and not just to do bookkeeping related to the mapping like, say, allocat ing or deallocating a mapping), |
438 // then you may have incorrect logic. Use compositingState() instead. | 444 // then you may have incorrect logic. Use compositingState() instead. |
439 // FIXME: This is identical to null checking compositedLayerMapping(), why n ot just call that? | 445 // FIXME: This is identical to null checking compositedLayerMapping(), why n ot just call that? |
440 bool hasCompositedLayerMapping() const { return m_rareData && m_rareData->co mpositedLayerMapping; } | 446 bool hasCompositedLayerMapping() const { return m_rareData && m_rareData->co mpositedLayerMapping; } |
441 void ensureCompositedLayerMapping(); | 447 void ensureCompositedLayerMapping(); |
442 void clearCompositedLayerMapping(bool layerBeingDestroyed = false); | 448 void clearCompositedLayerMapping(bool layerBeingDestroyed = false); |
443 CompositedLayerMapping* groupedMapping() const { return m_rareData ? m_rareD ata->groupedMapping : nullptr; } | 449 CompositedLayerMapping* groupedMapping() const { return m_rareData ? m_rareD ata->groupedMapping : nullptr; } |
444 enum SetGroupMappingOptions { | 450 enum SetGroupMappingOptions { |
445 InvalidateLayerAndRemoveFromMapping, | 451 InvalidateLayerAndRemoveFromMapping, |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
901 | 907 |
902 } // namespace blink | 908 } // namespace blink |
903 | 909 |
904 #ifndef NDEBUG | 910 #ifndef NDEBUG |
905 // Outside the WebCore namespace for ease of invocation from gdb. | 911 // Outside the WebCore namespace for ease of invocation from gdb. |
906 void showLayerTree(const blink::PaintLayer*); | 912 void showLayerTree(const blink::PaintLayer*); |
907 void showLayerTree(const blink::LayoutObject*); | 913 void showLayerTree(const blink::LayoutObject*); |
908 #endif | 914 #endif |
909 | 915 |
910 #endif // Layer_h | 916 #endif // Layer_h |
OLD | NEW |