OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 bool hasScrollingLayer() const { return m_scrollingLayer; } | 94 bool hasScrollingLayer() const { return m_scrollingLayer; } |
95 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); } | 95 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); } |
96 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa
yer.get(); } | 96 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa
yer.get(); } |
97 | 97 |
98 bool hasMaskLayer() const { return m_maskLayer != 0; } | 98 bool hasMaskLayer() const { return m_maskLayer != 0; } |
99 | 99 |
100 GraphicsLayer* parentForSublayers() const; | 100 GraphicsLayer* parentForSublayers() const; |
101 GraphicsLayer* childForSuperlayers() const; | 101 GraphicsLayer* childForSuperlayers() const; |
102 | 102 |
| 103 // RenderLayers with backing normally short-circuit paintLayer() because |
| 104 // their content is rendered via callbacks from GraphicsLayer. However, the
document |
| 105 // layer is special, because it has a GraphicsLayer to act as a container fo
r the GraphicsLayers |
| 106 // for descendants, but its contents usually render into the window (in whic
h case this returns true). |
| 107 // This returns false for other layers, and when the document layer actually
needs to paint into its backing store |
| 108 // for some reason. |
| 109 bool paintsIntoWindow() const; |
| 110 |
103 // Returns true for a composited layer that has no backing store of its own,
so | 111 // Returns true for a composited layer that has no backing store of its own,
so |
104 // paints into some ancestor layer. | 112 // paints into some ancestor layer. |
105 bool paintsIntoCompositedAncestor() const { return !m_requiresOwnBackingStor
e; } | 113 bool paintsIntoCompositedAncestor() const { return !m_requiresOwnBackingStor
e; } |
106 | 114 |
107 void setRequiresOwnBackingStore(bool); | 115 void setRequiresOwnBackingStore(bool); |
108 | 116 |
109 void setContentsNeedDisplay(); | 117 void setContentsNeedDisplay(); |
110 // r is in the coordinate space of the layer's render object | 118 // r is in the coordinate space of the layer's render object |
111 void setContentsNeedDisplayInRect(const IntRect&); | 119 void setContentsNeedDisplayInRect(const IntRect&); |
112 | 120 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 bool m_boundsConstrainedByClipping; | 267 bool m_boundsConstrainedByClipping; |
260 bool m_isMainFrameRenderViewLayer; | 268 bool m_isMainFrameRenderViewLayer; |
261 bool m_requiresOwnBackingStore; | 269 bool m_requiresOwnBackingStore; |
262 bool m_canCompositeFilters; | 270 bool m_canCompositeFilters; |
263 bool m_backgroundLayerPaintsFixedRootBackground; | 271 bool m_backgroundLayerPaintsFixedRootBackground; |
264 }; | 272 }; |
265 | 273 |
266 } // namespace WebCore | 274 } // namespace WebCore |
267 | 275 |
268 #endif // RenderLayerBacking_h | 276 #endif // RenderLayerBacking_h |
OLD | NEW |