| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. | 276 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. |
| 277 bool containsPaintedContent() const; | 277 bool containsPaintedContent() const; |
| 278 // Returns true if the RenderLayer just contains an image that we can compos
ite directly. | 278 // Returns true if the RenderLayer just contains an image that we can compos
ite directly. |
| 279 bool isDirectlyCompositedImage() const; | 279 bool isDirectlyCompositedImage() const; |
| 280 void updateImageContents(); | 280 void updateImageContents(); |
| 281 | 281 |
| 282 Color rendererBackgroundColor() const; | 282 Color rendererBackgroundColor() const; |
| 283 void updateBackgroundColor(); | 283 void updateBackgroundColor(); |
| 284 void updateContentsRect(); | 284 void updateContentsRect(); |
| 285 void updateContentsOffsetInCompositingLayer(const IntPoint& snappedOffsetFro
mCompositedAncestor, const IntPoint& graphicsLayerParentLocation); | 285 void updateContentsOffsetInCompositingLayer(const IntPoint& snappedOffsetFro
mCompositedAncestor, const IntPoint& graphicsLayerParentLocation); |
| 286 void updateAfterWidgetResize(); | |
| 287 void updateCompositingReasons(); | 286 void updateCompositingReasons(); |
| 288 | 287 |
| 289 void doPaintTask(const GraphicsLayerPaintInfo&, const PaintLayerFlags&, Grap
hicsContext*, const IntRect& clip); | 288 void doPaintTask(const GraphicsLayerPaintInfo&, const PaintLayerFlags&, Grap
hicsContext*, const IntRect& clip); |
| 290 | 289 |
| 291 // Computes the background clip rect for the given squashed layer, up to any
containing layer that is squashed into the | 290 // Computes the background clip rect for the given squashed layer, up to any
containing layer that is squashed into the |
| 292 // same squashing layer and contains this squashed layer's clipping ancestor
. | 291 // same squashing layer and contains this squashed layer's clipping ancestor
. |
| 293 // The clip rect is returned in the coordinate space of the given squashed l
ayer. | 292 // The clip rect is returned in the coordinate space of the given squashed l
ayer. |
| 294 // If there is no such containing layer, returns the infinite rect. | 293 // If there is no such containing layer, returns the infinite rect. |
| 295 // FIXME: unify this code with the code that sets up m_ancestorClippingLayer
. They are doing very similar things. | 294 // FIXME: unify this code with the code that sets up m_ancestorClippingLayer
. They are doing very similar things. |
| 296 static IntRect localClipRectForSquashedLayer(const RenderLayer& referenceLay
er, const GraphicsLayerPaintInfo&, const Vector<GraphicsLayerPaintInfo>& layers
); | 295 static IntRect localClipRectForSquashedLayer(const RenderLayer& referenceLay
er, const GraphicsLayerPaintInfo&, const Vector<GraphicsLayerPaintInfo>& layers
); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 unsigned m_pendingUpdateScope : 2; | 418 unsigned m_pendingUpdateScope : 2; |
| 420 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; | 419 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; |
| 421 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; | 420 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; |
| 422 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 421 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
| 423 unsigned m_scrollingContentsAreEmpty : 1; | 422 unsigned m_scrollingContentsAreEmpty : 1; |
| 424 }; | 423 }; |
| 425 | 424 |
| 426 } // namespace blink | 425 } // namespace blink |
| 427 | 426 |
| 428 #endif // CompositedLayerMapping_h | 427 #endif // CompositedLayerMapping_h |
| OLD | NEW |