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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // a backing store changed. | 150 // a backing store changed. |
151 bool updateRequiresOwnBackingStoreForIntrinsicReasons(); | 151 bool updateRequiresOwnBackingStoreForIntrinsicReasons(); |
152 | 152 |
153 void setContentsNeedDisplay(); | 153 void setContentsNeedDisplay(); |
154 // r is in the coordinate space of the layer's render object | 154 // r is in the coordinate space of the layer's render object |
155 void setContentsNeedDisplayInRect(const IntRect&); | 155 void setContentsNeedDisplayInRect(const IntRect&); |
156 | 156 |
157 // Notification from the renderer that its content changed. | 157 // Notification from the renderer that its content changed. |
158 void contentChanged(ContentChangeType); | 158 void contentChanged(ContentChangeType); |
159 | 159 |
160 LayoutRect compositedBounds() const; | 160 LayoutRect compositedBounds() const { return m_compositedBounds; } |
| 161 IntRect pixelSnappedCompositedBounds() const; |
161 void setCompositedBounds(const LayoutRect&); | 162 void setCompositedBounds(const LayoutRect&); |
162 void updateCompositedBounds(); | 163 void updateCompositedBounds(); |
163 | 164 |
164 void updateAfterWidgetResize(); | 165 void updateAfterWidgetResize(); |
165 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); | 166 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); |
166 bool hasUnpositionedOverflowControlsLayers() const; | 167 bool hasUnpositionedOverflowControlsLayers() const; |
167 | 168 |
168 // Returns true if the assignment actually changed the assigned squashing la
yer. | 169 // Returns true if the assignment actually changed the assigned squashing la
yer. |
169 bool updateSquashingLayerAssignment(RenderLayer*, IntSize offsetFromSquashin
gCLM, size_t nextSquashedLayerIndex); | 170 bool updateSquashingLayerAssignment(RenderLayer*, IntSize offsetFromSquashin
gCLM, size_t nextSquashedLayerIndex); |
170 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*); | 171 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 bool m_requiresOwnBackingStoreForAncestorReasons : 1; | 361 bool m_requiresOwnBackingStoreForAncestorReasons : 1; |
361 bool m_canCompositeFilters : 1; | 362 bool m_canCompositeFilters : 1; |
362 bool m_backgroundLayerPaintsFixedRootBackground : 1; | 363 bool m_backgroundLayerPaintsFixedRootBackground : 1; |
363 bool m_needToUpdateGeometry : 1; | 364 bool m_needToUpdateGeometry : 1; |
364 bool m_needToUpdateGeometryOfAllDecendants : 1; | 365 bool m_needToUpdateGeometryOfAllDecendants : 1; |
365 }; | 366 }; |
366 | 367 |
367 } // namespace WebCore | 368 } // namespace WebCore |
368 | 369 |
369 #endif // CompositedLayerMapping_h | 370 #endif // CompositedLayerMapping_h |
OLD | NEW |