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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 LayoutSize contentOffsetInCompositingLayer() const; | 199 LayoutSize contentOffsetInCompositingLayer() const; |
200 | 200 |
201 LayoutPoint squashingOffsetFromTransformedAncestor() | 201 LayoutPoint squashingOffsetFromTransformedAncestor() |
202 { | 202 { |
203 return m_squashingLayerOffsetFromTransformedAncestor; | 203 return m_squashingLayerOffsetFromTransformedAncestor; |
204 } | 204 } |
205 | 205 |
206 // If there is a squashed layer painting into this CLM that is an ancestor o
f the given RenderObject, return it. Otherwise return 0. | 206 // If there is a squashed layer painting into this CLM that is an ancestor o
f the given RenderObject, return it. Otherwise return 0. |
207 const GraphicsLayerPaintInfo* containingSquashedLayer(const RenderObject*); | 207 const GraphicsLayerPaintInfo* containingSquashedLayer(const RenderObject*); |
208 | 208 |
| 209 void updateScrollingContentsForSelectionGaps(const IntRect& blockSelectionGa
psBounds); |
| 210 |
209 private: | 211 private: |
210 static const GraphicsLayerPaintInfo* containingSquashedLayer(const RenderObj
ect*, const Vector<GraphicsLayerPaintInfo>& layers); | 212 static const GraphicsLayerPaintInfo* containingSquashedLayer(const RenderObj
ect*, const Vector<GraphicsLayerPaintInfo>& layers); |
211 | 213 |
212 // Helper methods to updateGraphicsLayerGeometry: | 214 // Helper methods to updateGraphicsLayerGeometry: |
213 void computeGraphicsLayerParentLocation(const RenderLayer* compositingContai
ner, const IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLoca
tion); | 215 void computeGraphicsLayerParentLocation(const RenderLayer* compositingContai
ner, const IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLoca
tion); |
214 void updateSquashingLayerGeometry(const LayoutPoint& offsetFromCompositedAnc
estor, const IntPoint& graphicsLayerParentLocation, const RenderLayer& reference
Layer, Vector<GraphicsLayerPaintInfo>& layers, GraphicsLayer*, LayoutPoint* offs
etFromTransformedAncestor); | 216 void updateSquashingLayerGeometry(const LayoutPoint& offsetFromCompositedAnc
estor, const IntPoint& graphicsLayerParentLocation, const RenderLayer& reference
Layer, Vector<GraphicsLayerPaintInfo>& layers, GraphicsLayer*, LayoutPoint* offs
etFromTransformedAncestor); |
215 void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBound
s, const IntRect& localCompositingBounds, IntPoint& graphicsLayerParentLocation)
; | 217 void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBound
s, const IntRect& localCompositingBounds, IntPoint& graphicsLayerParentLocation)
; |
216 void updateAncestorClippingLayerGeometry(const RenderLayer* compositingConta
iner, const IntPoint& snappedOffsetFromCompositedAncestor, IntPoint& graphicsLay
erParentLocation); | 218 void updateAncestorClippingLayerGeometry(const RenderLayer* compositingConta
iner, const IntPoint& snappedOffsetFromCompositedAncestor, IntPoint& graphicsLay
erParentLocation); |
217 void updateChildContainmentLayerGeometry(const IntRect& clippingBox, const I
ntRect& localCompositingBounds); | 219 void updateChildContainmentLayerGeometry(const IntRect& clippingBox, const I
ntRect& localCompositingBounds); |
218 void updateChildTransformLayerGeometry(); | 220 void updateChildTransformLayerGeometry(); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 LayoutRect m_compositedBounds; | 393 LayoutRect m_compositedBounds; |
392 | 394 |
393 bool m_artificiallyInflatedBounds : 1; // bounds had to be made non-zero to
make transform-origin work | 395 bool m_artificiallyInflatedBounds : 1; // bounds had to be made non-zero to
make transform-origin work |
394 bool m_isMainFrameRenderViewLayer : 1; | 396 bool m_isMainFrameRenderViewLayer : 1; |
395 bool m_requiresOwnBackingStoreForIntrinsicReasons : 1; | 397 bool m_requiresOwnBackingStoreForIntrinsicReasons : 1; |
396 bool m_requiresOwnBackingStoreForAncestorReasons : 1; | 398 bool m_requiresOwnBackingStoreForAncestorReasons : 1; |
397 bool m_canCompositeFilters : 1; | 399 bool m_canCompositeFilters : 1; |
398 bool m_backgroundLayerPaintsFixedRootBackground : 1; | 400 bool m_backgroundLayerPaintsFixedRootBackground : 1; |
399 bool m_needToUpdateGraphicsLayer : 1; | 401 bool m_needToUpdateGraphicsLayer : 1; |
400 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; | 402 bool m_needToUpdateGraphicsLayerOfAllDecendants : 1; |
| 403 bool m_scrollingContentsAreEmpty : 1; |
401 }; | 404 }; |
402 | 405 |
403 } // namespace WebCore | 406 } // namespace WebCore |
404 | 407 |
405 #endif // CompositedLayerMapping_h | 408 #endif // CompositedLayerMapping_h |
OLD | NEW |