| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 void updateImageContents(); | 289 void updateImageContents(); |
| 290 | 290 |
| 291 Color rendererBackgroundColor() const; | 291 Color rendererBackgroundColor() const; |
| 292 void updateBackgroundColor(); | 292 void updateBackgroundColor(); |
| 293 void updateContentsRect(); | 293 void updateContentsRect(); |
| 294 void updateAfterWidgetResize(); | 294 void updateAfterWidgetResize(); |
| 295 void updateCompositingReasons(); | 295 void updateCompositingReasons(); |
| 296 | 296 |
| 297 static bool hasVisibleNonCompositingDescendant(RenderLayer* parent); | 297 static bool hasVisibleNonCompositingDescendant(RenderLayer* parent); |
| 298 | 298 |
| 299 void paintsIntoCompositedAncestorChanged(); | |
| 300 | |
| 301 void doPaintTask(GraphicsLayerPaintInfo&, GraphicsContext*, const IntRect& c
lip); | 299 void doPaintTask(GraphicsLayerPaintInfo&, GraphicsContext*, const IntRect& c
lip); |
| 302 | 300 |
| 303 // Computes the background clip rect for the given squashed layer, up to any
containing layer that is squashed into the | 301 // Computes the background clip rect for the given squashed layer, up to any
containing layer that is squashed into the |
| 304 // same squashing layer and contains this squashed layer's clipping ancestor
. | 302 // same squashing layer and contains this squashed layer's clipping ancestor
. |
| 305 // The clip rect is returned in the coordinate space of the given squashed l
ayer. | 303 // The clip rect is returned in the coordinate space of the given squashed l
ayer. |
| 306 // If there is no such containing layer, returns the infinite rect. | 304 // If there is no such containing layer, returns the infinite rect. |
| 307 // FIXME: unify this code with the code that sets up m_ancestorClippingLayer
. They are doing very similar things. | 305 // FIXME: unify this code with the code that sets up m_ancestorClippingLayer
. They are doing very similar things. |
| 308 static IntRect localClipRectForSquashedLayer(const RenderLayer& referenceLay
er, const GraphicsLayerPaintInfo&, const Vector<GraphicsLayerPaintInfo>& layers
); | 306 static IntRect localClipRectForSquashedLayer(const RenderLayer& referenceLay
er, const GraphicsLayerPaintInfo&, const Vector<GraphicsLayerPaintInfo>& layers
); |
| 309 | 307 |
| 310 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant
(inclusive) of the | 308 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant
(inclusive) of the |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; | 407 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; |
| 410 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; | 408 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; |
| 411 unsigned m_canCompositeFilters : 1; | 409 unsigned m_canCompositeFilters : 1; |
| 412 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 410 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
| 413 unsigned m_scrollingContentsAreEmpty : 1; | 411 unsigned m_scrollingContentsAreEmpty : 1; |
| 414 }; | 412 }; |
| 415 | 413 |
| 416 } // namespace WebCore | 414 } // namespace WebCore |
| 417 | 415 |
| 418 #endif // CompositedLayerMapping_h | 416 #endif // CompositedLayerMapping_h |
| OLD | NEW |