| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 enum UpdateLayerCompositingStateOptions { | 106 enum UpdateLayerCompositingStateOptions { |
| 107 Normal, | 107 Normal, |
| 108 UseChickenEggHacks, // Use this to trigger temporary chicken-egg hacks.
See crbug.com/339892. | 108 UseChickenEggHacks, // Use this to trigger temporary chicken-egg hacks.
See crbug.com/339892. |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // Update the compositing dirty bits, based on the compositing-impacting pro
perties of the layer. | 111 // Update the compositing dirty bits, based on the compositing-impacting pro
perties of the layer. |
| 112 // (At the moment, it also has some legacy compatibility hacks.) | 112 // (At the moment, it also has some legacy compatibility hacks.) |
| 113 void updateLayerCompositingState(RenderLayer*, UpdateLayerCompositingStateOp
tions = Normal); | 113 void updateLayerCompositingState(RenderLayer*, UpdateLayerCompositingStateOp
tions = Normal); |
| 114 | 114 |
| 115 // Update the geometry for compositing children of compositingAncestor. | |
| 116 void updateCompositingDescendantGeometry(RenderLayerStackingNode* compositin
gAncestor, RenderLayer*); | |
| 117 | |
| 118 // Whether layer's compositedLayerMapping needs a GraphicsLayer to do clippi
ng by an ancestor (non-stacking-context parent with overflow). | 115 // Whether layer's compositedLayerMapping needs a GraphicsLayer to do clippi
ng by an ancestor (non-stacking-context parent with overflow). |
| 119 bool clippedByAncestor(const RenderLayer*) const; | 116 bool clippedByAncestor(const RenderLayer*) const; |
| 120 // Whether layer's compositedLayerMapping needs a GraphicsLayer to clip z-or
der children of the given RenderLayer. | 117 // Whether layer's compositedLayerMapping needs a GraphicsLayer to clip z-or
der children of the given RenderLayer. |
| 121 bool clipsCompositingDescendants(const RenderLayer*) const; | 118 bool clipsCompositingDescendants(const RenderLayer*) const; |
| 122 | 119 |
| 123 // Whether the given layer needs an extra 'contents' layer. | 120 // Whether the given layer needs an extra 'contents' layer. |
| 124 bool needsContentsCompositingLayer(const RenderLayer*) const; | 121 bool needsContentsCompositingLayer(const RenderLayer*) const; |
| 125 | 122 |
| 126 bool supportsFixedRootBackgroundCompositing() const; | 123 bool supportsFixedRootBackgroundCompositing() const; |
| 127 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; | 124 bool needsFixedRootBackgroundLayer(const RenderLayer*) const; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 356 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
| 360 #if USE(RUBBER_BANDING) | 357 #if USE(RUBBER_BANDING) |
| 361 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 358 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
| 362 #endif | 359 #endif |
| 363 }; | 360 }; |
| 364 | 361 |
| 365 | 362 |
| 366 } // namespace WebCore | 363 } // namespace WebCore |
| 367 | 364 |
| 368 #endif // RenderLayerCompositor_h | 365 #endif // RenderLayerCompositor_h |
| OLD | NEW |