| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex); | 169 void finishAccumulatingSquashingLayers(size_t nextSquashedLayerIndex); |
| 170 void updateRenderingContext(); | 170 void updateRenderingContext(); |
| 171 void updateShouldFlattenTransform(); | 171 void updateShouldFlattenTransform(); |
| 172 | 172 |
| 173 // GraphicsLayerClient interface | 173 // GraphicsLayerClient interface |
| 174 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me) OVERRIDE; | 174 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me) OVERRIDE; |
| 175 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; | 175 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& clip) OVERRIDE; |
| 176 virtual bool isTrackingRepaints() const OVERRIDE; | 176 virtual bool isTrackingRepaints() const OVERRIDE; |
| 177 | 177 |
| 178 #ifndef NDEBUG | 178 #if ENABLE(ASSERT) |
| 179 virtual void verifyNotPainting() OVERRIDE; | 179 virtual void verifyNotPainting() OVERRIDE; |
| 180 #endif | 180 #endif |
| 181 | 181 |
| 182 LayoutRect contentsBox() const; | 182 LayoutRect contentsBox() const; |
| 183 | 183 |
| 184 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } | 184 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } |
| 185 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } | 185 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } |
| 186 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } | 186 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } |
| 187 | 187 |
| 188 // Removes the overflow controls host layer from its parent and positions it | 188 // Removes the overflow controls host layer from its parent and positions it |
| 189 // so that it can be inserted as a sibling to this CLM without changing | 189 // so that it can be inserted as a sibling to this CLM without changing |
| 190 // position. | 190 // position. |
| 191 GraphicsLayer* detachLayerForOverflowControls(const RenderLayer& enclosingLa
yer); | 191 GraphicsLayer* detachLayerForOverflowControls(const RenderLayer& enclosingLa
yer); |
| 192 | 192 |
| 193 void updateFilters(const RenderStyle*); | 193 void updateFilters(const RenderStyle*); |
| 194 | 194 |
| 195 void setBlendMode(blink::WebBlendMode); | 195 void setBlendMode(blink::WebBlendMode); |
| 196 | 196 |
| 197 bool needsGraphicsLayerUpdate() { return m_pendingUpdateScope > GraphicsLaye
rUpdateNone; } | 197 bool needsGraphicsLayerUpdate() { return m_pendingUpdateScope > GraphicsLaye
rUpdateNone; } |
| 198 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) { m_pending
UpdateScope = std::max(static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScop
e), scope); } | 198 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) { m_pending
UpdateScope = std::max(static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScop
e), scope); } |
| 199 void clearNeedsGraphicsLayerUpdate() { m_pendingUpdateScope = GraphicsLayerU
pdateNone; } | 199 void clearNeedsGraphicsLayerUpdate() { m_pendingUpdateScope = GraphicsLayerU
pdateNone; } |
| 200 | 200 |
| 201 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater:
:UpdateType) const; | 201 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater:
:UpdateType) const; |
| 202 | 202 |
| 203 #if ASSERT_ENABLED | 203 #if ENABLE(ASSERT) |
| 204 void assertNeedsToUpdateGraphicsLayerBitsCleared() { ASSERT(m_pendingUpdate
Scope == GraphicsLayerUpdateNone); } | 204 void assertNeedsToUpdateGraphicsLayerBitsCleared() { ASSERT(m_pendingUpdate
Scope == GraphicsLayerUpdateNone); } |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 virtual String debugName(const GraphicsLayer*) OVERRIDE; | 207 virtual String debugName(const GraphicsLayer*) OVERRIDE; |
| 208 | 208 |
| 209 LayoutSize contentOffsetInCompositingLayer() const; | 209 LayoutSize contentOffsetInCompositingLayer() const; |
| 210 | 210 |
| 211 LayoutPoint squashingOffsetFromTransformedAncestor() | 211 LayoutPoint squashingOffsetFromTransformedAncestor() |
| 212 { | 212 { |
| 213 return m_squashingLayerOffsetFromTransformedAncestor; | 213 return m_squashingLayerOffsetFromTransformedAncestor; |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 unsigned m_isMainFrameRenderViewLayer : 1; | 414 unsigned m_isMainFrameRenderViewLayer : 1; |
| 415 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; | 415 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; |
| 416 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; | 416 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; |
| 417 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 417 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
| 418 unsigned m_scrollingContentsAreEmpty : 1; | 418 unsigned m_scrollingContentsAreEmpty : 1; |
| 419 }; | 419 }; |
| 420 | 420 |
| 421 } // namespace WebCore | 421 } // namespace WebCore |
| 422 | 422 |
| 423 #endif // CompositedLayerMapping_h | 423 #endif // CompositedLayerMapping_h |
| OLD | NEW |