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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. | 181 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. |
182 bool containsPaintedContent() const; | 182 bool containsPaintedContent() const; |
183 // Returns true if the RenderLayer just contains an image that we can compos
ite directly. | 183 // Returns true if the RenderLayer just contains an image that we can compos
ite directly. |
184 bool isDirectlyCompositedImage() const; | 184 bool isDirectlyCompositedImage() const; |
185 void updateImageContents(); | 185 void updateImageContents(); |
186 | 186 |
187 bool rendererHasBackground() const; | 187 bool rendererHasBackground() const; |
188 Color rendererBackgroundColor() const; | 188 Color rendererBackgroundColor() const; |
189 void updateBackgroundColor(); | 189 void updateBackgroundColor(); |
190 | 190 |
191 bool hasVisibleNonCompositingDescendants() const; | 191 bool hasNonCompositingDescendants() const; |
192 | 192 |
193 void paintIntoLayer(RenderLayer* rootLayer, GraphicsContext*, const LayoutRe
ct& paintDirtyRect, PaintBehavior, GraphicsLayerPaintingPhase, RenderObject* pai
ntingRoot); | 193 void paintIntoLayer(RenderLayer* rootLayer, GraphicsContext*, const LayoutRe
ct& paintDirtyRect, PaintBehavior, GraphicsLayerPaintingPhase, RenderObject* pai
ntingRoot); |
194 | 194 |
195 static int graphicsLayerToCSSProperty(AnimatedPropertyID); | 195 static int graphicsLayerToCSSProperty(AnimatedPropertyID); |
196 static AnimatedPropertyID cssToGraphicsLayerProperty(int); | 196 static AnimatedPropertyID cssToGraphicsLayerProperty(int); |
197 | 197 |
198 #ifndef NDEBUG | 198 #ifndef NDEBUG |
199 String nameForLayer() const; | 199 String nameForLayer() const; |
200 #endif | 200 #endif |
201 | 201 |
(...skipping 12 matching lines...) Expand all Loading... |
214 LayoutRect m_compositedBounds; | 214 LayoutRect m_compositedBounds; |
215 | 215 |
216 bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to
make transform-origin work | 216 bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to
make transform-origin work |
217 }; | 217 }; |
218 | 218 |
219 } // namespace WebCore | 219 } // namespace WebCore |
220 | 220 |
221 #endif // USE(ACCELERATED_COMPOSITING) | 221 #endif // USE(ACCELERATED_COMPOSITING) |
222 | 222 |
223 #endif // RenderLayerBacking_h | 223 #endif // RenderLayerBacking_h |
OLD | NEW |