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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 494 |
495 // This returns true if our document is in a phase of its lifestyle during | 495 // This returns true if our document is in a phase of its lifestyle during |
496 // which compositing state may legally be read. | 496 // which compositing state may legally be read. |
497 bool isAllowedToQueryCompositingState() const; | 497 bool isAllowedToQueryCompositingState() const; |
498 | 498 |
499 // Don't null check this. | 499 // Don't null check this. |
500 // FIXME: Rename. | 500 // FIXME: Rename. |
501 CompositedLayerMapping* compositedLayerMapping() const; | 501 CompositedLayerMapping* compositedLayerMapping() const; |
502 GraphicsLayer* graphicsLayerBacking() const; | 502 GraphicsLayer* graphicsLayerBacking() const; |
503 GraphicsLayer* graphicsLayerBackingForScrolling() const; | 503 GraphicsLayer* graphicsLayerBackingForScrolling() const; |
504 // Returns true for layers with scrollable overflow which have a background | 504 // Returns which GraphicsLayers backgrounds should be painted into for |
505 // that can be painted into the composited scrolling contents layer when it | 505 // overflow scrolling boxes. When the background can paint into the scrolling |
506 // exist (i.e. the background can scroll with the content). When the | 506 // contents and is also opaque this allows us to composite the scroller even |
507 // background is also opaque this allows us to composite the scroller even on | 507 // on low DPI as we can draw with subpixel anti-aliasing. |
508 // low DPI as we can draw with subpixel anti-aliasing. | 508 BackgroundPaintLocation backgroundPaintLocation() const; |
509 bool canPaintBackgroundOntoScrollingContentsLayer() const; | |
510 // NOTE: If you are using hasCompositedLayerMapping to determine the state of | 509 // NOTE: If you are using hasCompositedLayerMapping to determine the state of |
511 // compositing for this layer, (and not just to do bookkeeping related to the | 510 // compositing for this layer, (and not just to do bookkeeping related to the |
512 // mapping like, say, allocating or deallocating a mapping), then you may have | 511 // mapping like, say, allocating or deallocating a mapping), then you may have |
513 // incorrect logic. Use compositingState() instead. | 512 // incorrect logic. Use compositingState() instead. |
514 // FIXME: This is identical to null checking compositedLayerMapping(), why not | 513 // FIXME: This is identical to null checking compositedLayerMapping(), why not |
515 // just call that? | 514 // just call that? |
516 bool hasCompositedLayerMapping() const { | 515 bool hasCompositedLayerMapping() const { |
517 return m_rareData && m_rareData->compositedLayerMapping; | 516 return m_rareData && m_rareData->compositedLayerMapping; |
518 } | 517 } |
519 void ensureCompositedLayerMapping(); | 518 void ensureCompositedLayerMapping(); |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 | 1232 |
1234 } // namespace blink | 1233 } // namespace blink |
1235 | 1234 |
1236 #ifndef NDEBUG | 1235 #ifndef NDEBUG |
1237 // Outside the WebCore namespace for ease of invocation from gdb. | 1236 // Outside the WebCore namespace for ease of invocation from gdb. |
1238 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1237 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
1239 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1238 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
1240 #endif | 1239 #endif |
1241 | 1240 |
1242 #endif // Layer_h | 1241 #endif // Layer_h |
OLD | NEW |