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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 bool updateSquashingLayerAssignment(RenderLayer* squashedLayer, const Render
Layer& owningLayer, size_t nextSquashedLayerIndex); | 151 bool updateSquashingLayerAssignment(RenderLayer* squashedLayer, const Render
Layer& owningLayer, size_t nextSquashedLayerIndex); |
152 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*); | 152 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*); |
153 | 153 |
154 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex); | 154 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex); |
155 void updateRenderingContext(); | 155 void updateRenderingContext(); |
156 void updateShouldFlattenTransform(); | 156 void updateShouldFlattenTransform(); |
157 | 157 |
158 // GraphicsLayerClient interface | 158 // GraphicsLayerClient interface |
159 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me) OVERRIDE; | 159 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me) OVERRIDE; |
160 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; | 160 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; |
161 virtual bool isTrackingRepaints() const OVERRIDE; | 161 virtual bool isTrackingPaintInvalidations() const OVERRIDE; |
162 | 162 |
163 #if ENABLE(ASSERT) | 163 #if ENABLE(ASSERT) |
164 virtual void verifyNotPainting() OVERRIDE; | 164 virtual void verifyNotPainting() OVERRIDE; |
165 #endif | 165 #endif |
166 | 166 |
167 LayoutRect contentsBox() const; | 167 LayoutRect contentsBox() const; |
168 | 168 |
169 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } | 169 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } |
170 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } | 170 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } |
171 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } | 171 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 // we scroll, we don't have to re-raster the background into position. This
layer is also inserted | 370 // we scroll, we don't have to re-raster the background into position. This
layer is also inserted |
371 // into the tree by the RLC as it gets a special home. This layer becomes a
descendant of the | 371 // into the tree by the RLC as it gets a special home. This layer becomes a
descendant of the |
372 // frame clipping layer. That is: | 372 // frame clipping layer. That is: |
373 // ... | 373 // ... |
374 // + frame clipping layer | 374 // + frame clipping layer |
375 // + m_backgroundLayer | 375 // + m_backgroundLayer |
376 // + frame scrolling layer | 376 // + frame scrolling layer |
377 // + root content layer | 377 // + root content layer |
378 // | 378 // |
379 // With the hierarchy set up like this, the root content layer is able to sc
roll without affecting | 379 // With the hierarchy set up like this, the root content layer is able to sc
roll without affecting |
380 // the background layer (or repainting). | 380 // the background layer (or paint invalidation). |
381 OwnPtr<GraphicsLayer> m_foregroundLayer; // Only used in cases where we need
to draw the foreground separately. | 381 OwnPtr<GraphicsLayer> m_foregroundLayer; // Only used in cases where we need
to draw the foreground separately. |
382 OwnPtr<GraphicsLayer> m_backgroundLayer; // Only used in cases where we need
to draw the background separately. | 382 OwnPtr<GraphicsLayer> m_backgroundLayer; // Only used in cases where we need
to draw the background separately. |
383 | 383 |
384 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; | 384 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; |
385 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; | 385 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; |
386 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 386 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
387 | 387 |
388 // This layer exists to simplify the reparenting of overflow control that is
occasionally required | 388 // This layer exists to simplify the reparenting of overflow control that is
occasionally required |
389 // to ensure that scrollbars appear above scrolling content. | 389 // to ensure that scrollbars appear above scrolling content. |
390 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; | 390 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 unsigned m_isMainFrameRenderViewLayer : 1; | 424 unsigned m_isMainFrameRenderViewLayer : 1; |
425 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; | 425 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; |
426 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; | 426 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; |
427 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 427 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
428 unsigned m_scrollingContentsAreEmpty : 1; | 428 unsigned m_scrollingContentsAreEmpty : 1; |
429 }; | 429 }; |
430 | 430 |
431 } // namespace blink | 431 } // namespace blink |
432 | 432 |
433 #endif // CompositedLayerMapping_h | 433 #endif // CompositedLayerMapping_h |
OLD | NEW |