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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // Whether the given layer needs an extra 'contents' layer. | 113 // Whether the given layer needs an extra 'contents' layer. |
114 bool needsContentsCompositingLayer(const RenderLayer*) const; | 114 bool needsContentsCompositingLayer(const RenderLayer*) const; |
115 | 115 |
116 bool supportsFixedRootBackgroundCompositing() const; | 116 bool supportsFixedRootBackgroundCompositing() const; |
117 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; | 117 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; |
118 GraphicsLayer* fixedRootBackgroundLayer() const; | 118 GraphicsLayer* fixedRootBackgroundLayer() const; |
119 | 119 |
120 // Return the bounding box required for compositing layer and its childern,
relative to ancestorLayer. | 120 // Return the bounding box required for compositing layer and its childern,
relative to ancestorLayer. |
121 // If layerBoundingBox is not 0, on return it contains the bounding box of t
his layer only. | 121 // If layerBoundingBox is not 0, on return it contains the bounding box of t
his layer only. |
122 IntRect calculateCompositedBounds(const RenderLayer*, const RenderLayer* anc
estorLayer) const; | 122 LayoutRect calculateCompositedBounds(const RenderLayer*, const RenderLayer*
ancestorLayer) const; |
123 | 123 |
124 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. | 124 // Repaint the appropriate layers when the given RenderLayer starts or stops
being composited. |
125 void repaintOnCompositingChange(RenderLayer*); | 125 void repaintOnCompositingChange(RenderLayer*); |
126 | 126 |
127 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); | 127 void repaintInCompositedAncestor(RenderLayer*, const LayoutRect&); |
128 | 128 |
129 // Notify us that a layer has been added or removed | 129 // Notify us that a layer has been added or removed |
130 void layerWasAdded(RenderLayer* parent, RenderLayer* child); | 130 void layerWasAdded(RenderLayer* parent, RenderLayer* child); |
131 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); | 131 void layerWillBeRemoved(RenderLayer* parent, RenderLayer* child); |
132 | 132 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 361 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
362 #if USE(RUBBER_BANDING) | 362 #if USE(RUBBER_BANDING) |
363 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 363 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
364 #endif | 364 #endif |
365 }; | 365 }; |
366 | 366 |
367 | 367 |
368 } // namespace WebCore | 368 } // namespace WebCore |
369 | 369 |
370 #endif // RenderLayerCompositor_h | 370 #endif // RenderLayerCompositor_h |
OLD | NEW |