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