| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 GraphicsLayer* parentForSublayers() const; | 109 GraphicsLayer* parentForSublayers() const; |
| 110 GraphicsLayer* childForSuperlayers() const; | 110 GraphicsLayer* childForSuperlayers() const; |
| 111 | 111 |
| 112 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge
t(); } | 112 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge
t(); } |
| 113 | 113 |
| 114 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain
mentLayer.get(); } | 114 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain
mentLayer.get(); } |
| 115 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } | 115 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } |
| 116 // Contains the bottommost layer in the hierarchy that can contain the child
ren transform. | 116 // Contains the bottommost layer in the hierarchy that can contain the child
ren transform. |
| 117 GraphicsLayer* layerForChildrenTransform() const; | 117 GraphicsLayer* layerForChildrenTransform() const; |
| 118 | 118 |
| 119 // Returns true for a composited layer that has no backing store of its own,
so | |
| 120 // paints into some ancestor layer. | |
| 121 bool paintsIntoCompositedAncestor() const { return !(m_requiresOwnBackingSto
reForAncestorReasons || m_requiresOwnBackingStoreForIntrinsicReasons); } | |
| 122 | |
| 123 // Updates whether a backing store is needed based on the layer's compositin
g ancestor's | |
| 124 // properties; returns true if the need for a backing store for ancestor rea
sons changed. | |
| 125 bool updateRequiresOwnBackingStoreForAncestorReasons(const RenderLayer* comp
ositingAncestor); | |
| 126 | |
| 127 // Updates whether a backing store is needed for intrinsic reasons (that is,
based on the | |
| 128 // layer's own properties or compositing reasons); returns true if the intri
nsic need for | |
| 129 // a backing store changed. | |
| 130 bool updateRequiresOwnBackingStoreForIntrinsicReasons(); | |
| 131 | |
| 132 void setSquashingContentsNeedDisplay(); | 119 void setSquashingContentsNeedDisplay(); |
| 133 void setContentsNeedDisplay(); | 120 void setContentsNeedDisplay(); |
| 134 // r is in the coordinate space of the layer's render object | 121 // r is in the coordinate space of the layer's render object |
| 135 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason
); | 122 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason
); |
| 136 | 123 |
| 137 // Notification from the renderer that its content changed. | 124 // Notification from the renderer that its content changed. |
| 138 void contentChanged(ContentChangeType); | 125 void contentChanged(ContentChangeType); |
| 139 | 126 |
| 140 LayoutRect compositedBounds() const { return m_compositedBounds; } | 127 LayoutRect compositedBounds() const { return m_compositedBounds; } |
| 141 IntRect pixelSnappedCompositedBounds() const; | 128 IntRect pixelSnappedCompositedBounds() const; |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 Vector<GraphicsLayerPaintInfo> m_squashedLayers; | 401 Vector<GraphicsLayerPaintInfo> m_squashedLayers; |
| 415 LayoutPoint m_squashingLayerOffsetFromTransformedAncestor; | 402 LayoutPoint m_squashingLayerOffsetFromTransformedAncestor; |
| 416 | 403 |
| 417 LayoutRect m_compositedBounds; | 404 LayoutRect m_compositedBounds; |
| 418 | 405 |
| 419 LayoutSize m_contentOffsetInCompositingLayer; | 406 LayoutSize m_contentOffsetInCompositingLayer; |
| 420 unsigned m_contentOffsetInCompositingLayerDirty : 1; | 407 unsigned m_contentOffsetInCompositingLayerDirty : 1; |
| 421 | 408 |
| 422 unsigned m_pendingUpdateScope : 2; | 409 unsigned m_pendingUpdateScope : 2; |
| 423 unsigned m_isMainFrameRenderViewLayer : 1; | 410 unsigned m_isMainFrameRenderViewLayer : 1; |
| 424 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; | 411 |
| 425 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; | |
| 426 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 412 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
| 427 unsigned m_scrollingContentsAreEmpty : 1; | 413 unsigned m_scrollingContentsAreEmpty : 1; |
| 428 }; | 414 }; |
| 429 | 415 |
| 430 } // namespace blink | 416 } // namespace blink |
| 431 | 417 |
| 432 #endif // CompositedLayerMapping_h | 418 #endif // CompositedLayerMapping_h |
| OLD | NEW |