| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 // Updates whether a backing store is needed based on the layer's compositin
g ancestor's | 137 // Updates whether a backing store is needed based on the layer's compositin
g ancestor's |
| 138 // properties; returns true if the need for a backing store for ancestor rea
sons changed. | 138 // properties; returns true if the need for a backing store for ancestor rea
sons changed. |
| 139 bool updateRequiresOwnBackingStoreForAncestorReasons(const RenderLayer* comp
ositingAncestor); | 139 bool updateRequiresOwnBackingStoreForAncestorReasons(const RenderLayer* comp
ositingAncestor); |
| 140 | 140 |
| 141 // Updates whether a backing store is needed for intrinsic reasons (that is,
based on the | 141 // Updates whether a backing store is needed for intrinsic reasons (that is,
based on the |
| 142 // layer's own properties or compositing reasons); returns true if the intri
nsic need for | 142 // layer's own properties or compositing reasons); returns true if the intri
nsic need for |
| 143 // a backing store changed. | 143 // a backing store changed. |
| 144 bool updateRequiresOwnBackingStoreForIntrinsicReasons(); | 144 bool updateRequiresOwnBackingStoreForIntrinsicReasons(); |
| 145 | 145 |
| 146 void setSquashingContentsNeedDisplay(); |
| 146 void setContentsNeedDisplay(); | 147 void setContentsNeedDisplay(); |
| 147 // r is in the coordinate space of the layer's render object | 148 // r is in the coordinate space of the layer's render object |
| 148 void setContentsNeedDisplayInRect(const IntRect&); | 149 void setContentsNeedDisplayInRect(const IntRect&); |
| 149 | 150 |
| 150 // Notification from the renderer that its content changed. | 151 // Notification from the renderer that its content changed. |
| 151 void contentChanged(ContentChangeType); | 152 void contentChanged(ContentChangeType); |
| 152 | 153 |
| 153 LayoutRect compositedBounds() const { return m_compositedBounds; } | 154 LayoutRect compositedBounds() const { return m_compositedBounds; } |
| 154 IntRect pixelSnappedCompositedBounds() const; | 155 IntRect pixelSnappedCompositedBounds() const; |
| 155 void updateCompositedBounds(GraphicsLayerUpdater::UpdateType); | 156 void updateCompositedBounds(GraphicsLayerUpdater::UpdateType); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 bool m_requiresOwnBackingStoreForAncestorReasons : 1; | 398 bool m_requiresOwnBackingStoreForAncestorReasons : 1; |
| 398 bool m_canCompositeFilters : 1; | 399 bool m_canCompositeFilters : 1; |
| 399 bool m_backgroundLayerPaintsFixedRootBackground : 1; | 400 bool m_backgroundLayerPaintsFixedRootBackground : 1; |
| 400 bool m_needToUpdateGraphicsLayer : 1; | 401 bool m_needToUpdateGraphicsLayer : 1; |
| 401 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; | 402 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; |
| 402 }; | 403 }; |
| 403 | 404 |
| 404 } // namespace WebCore | 405 } // namespace WebCore |
| 405 | 406 |
| 406 #endif // CompositedLayerMapping_h | 407 #endif // CompositedLayerMapping_h |
| OLD | NEW |