| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool supportsFixedRootBackgroundCompositing() const; | 117 bool supportsFixedRootBackgroundCompositing() const; |
| 118 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; | 118 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; |
| 119 GraphicsLayer* fixedRootBackgroundLayer() const; | 119 GraphicsLayer* fixedRootBackgroundLayer() const; |
| 120 void setNeedsUpdateFixedBackground() { m_needsUpdateFixedBackground = true;
} | 120 void setNeedsUpdateFixedBackground() { m_needsUpdateFixedBackground = true;
} |
| 121 | 121 |
| 122 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. | 122 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. |
| 123 void repaintOnCompositingChange(RenderLayer*); | 123 void repaintOnCompositingChange(RenderLayer*); |
| 124 | 124 |
| 125 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); | 125 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); |
| 126 | 126 |
| 127 // Notify us that a layer has been added or removed | |
| 128 void layerWasAdded(RenderLayer* parent, RenderLayer* child); | |
| 129 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); | 127 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); |
| 130 | 128 |
| 131 void repaintCompositedLayers(); | 129 void repaintCompositedLayers(); |
| 132 | 130 |
| 133 RenderLayer* rootRenderLayer() const; | 131 RenderLayer* rootRenderLayer() const; |
| 134 GraphicsLayer* rootGraphicsLayer() const; | 132 GraphicsLayer* rootGraphicsLayer() const; |
| 135 GraphicsLayer* scrollLayer() const; | 133 GraphicsLayer* scrollLayer() const; |
| 136 GraphicsLayer* containerLayer() const; | 134 GraphicsLayer* containerLayer() const; |
| 137 | 135 |
| 138 // We don't always have a root transform layer. This function lazily allocat
es one | 136 // We don't always have a root transform layer. This function lazily allocat
es one |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; | 278 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; |
| 281 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 279 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 282 #if USE(RUBBER_BANDING) | 280 #if USE(RUBBER_BANDING) |
| 283 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 281 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 284 #endif | 282 #endif |
| 285 }; | 283 }; |
| 286 | 284 |
| 287 } // namespace WebCore | 285 } // namespace WebCore |
| 288 | 286 |
| 289 #endif // RenderLayerCompositor_h | 287 #endif // RenderLayerCompositor_h |
| OLD | NEW |