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