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 | |
111 // Returns true for a composited layer that has no backing store of its own,
so | 103 // Returns true for a composited layer that has no backing store of its own,
so |
112 // paints into some ancestor layer. | 104 // paints into some ancestor layer. |
113 bool paintsIntoCompositedAncestor() const { return !m_requiresOwnBackingStor
e; } | 105 bool paintsIntoCompositedAncestor() const { return !m_requiresOwnBackingStor
e; } |
114 | 106 |
115 void setRequiresOwnBackingStore(bool); | 107 void setRequiresOwnBackingStore(bool); |
116 | 108 |
117 void setContentsNeedDisplay(); | 109 void setContentsNeedDisplay(); |
118 // r is in the coordinate space of the layer's render object | 110 // r is in the coordinate space of the layer's render object |
119 void setContentsNeedDisplayInRect(const IntRect&); | 111 void setContentsNeedDisplayInRect(const IntRect&); |
120 | 112 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 bool m_boundsConstrainedByClipping; | 261 bool m_boundsConstrainedByClipping; |
270 bool m_isMainFrameRenderViewLayer; | 262 bool m_isMainFrameRenderViewLayer; |
271 bool m_requiresOwnBackingStore; | 263 bool m_requiresOwnBackingStore; |
272 bool m_canCompositeFilters; | 264 bool m_canCompositeFilters; |
273 bool m_backgroundLayerPaintsFixedRootBackground; | 265 bool m_backgroundLayerPaintsFixedRootBackground; |
274 }; | 266 }; |
275 | 267 |
276 } // namespace WebCore | 268 } // namespace WebCore |
277 | 269 |
278 #endif // RenderLayerBacking_h | 270 #endif // RenderLayerBacking_h |
OLD | NEW |