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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual ~CompositedLayerMapping(); | 80 virtual ~CompositedLayerMapping(); |
81 | 81 |
82 RenderLayer& owningLayer() const { return m_owningLayer; } | 82 RenderLayer& owningLayer() const { return m_owningLayer; } |
83 | 83 |
84 // Returns true if layer configuration changed. | 84 // Returns true if layer configuration changed. |
85 bool updateGraphicsLayerConfiguration(GraphicsLayerUpdater::UpdateType); | 85 bool updateGraphicsLayerConfiguration(GraphicsLayerUpdater::UpdateType); |
86 // Update graphics layer position and bounds. | 86 // Update graphics layer position and bounds. |
87 | 87 |
88 void updateGraphicsLayerGeometry(GraphicsLayerUpdater::UpdateType, const Ren
derLayer* compositingContainer); | 88 void updateGraphicsLayerGeometry(GraphicsLayerUpdater::UpdateType, const Ren
derLayer* compositingContainer); |
89 | 89 |
| 90 bool hasScrollChildren(); |
90 // Update whether layer needs blending. | 91 // Update whether layer needs blending. |
91 void updateContentsOpaque(); | 92 void updateContentsOpaque(); |
92 | 93 |
93 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } | 94 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } |
94 | 95 |
95 // Layer to clip children | 96 // Layer to clip children |
96 bool hasClippingLayer() const { return m_childContainmentLayer; } | 97 bool hasClippingLayer() const { return m_childContainmentLayer; } |
97 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get();
} | 98 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get();
} |
98 | 99 |
99 // Layer to get clipped by ancestor | 100 // Layer to get clipped by ancestor |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 bool m_requiresOwnBackingStoreForAncestorReasons : 1; | 397 bool m_requiresOwnBackingStoreForAncestorReasons : 1; |
397 bool m_canCompositeFilters : 1; | 398 bool m_canCompositeFilters : 1; |
398 bool m_backgroundLayerPaintsFixedRootBackground : 1; | 399 bool m_backgroundLayerPaintsFixedRootBackground : 1; |
399 bool m_needToUpdateGraphicsLayer : 1; | 400 bool m_needToUpdateGraphicsLayer : 1; |
400 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; | 401 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; |
401 }; | 402 }; |
402 | 403 |
403 } // namespace WebCore | 404 } // namespace WebCore |
404 | 405 |
405 #endif // CompositedLayerMapping_h | 406 #endif // CompositedLayerMapping_h |
OLD | NEW |