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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // scrolling content. If this returns true, these controls must be | 160 // scrolling content. If this returns true, these controls must be |
161 // repositioned in the graphics layer tree to ensure that they stack above | 161 // repositioned in the graphics layer tree to ensure that they stack above |
162 // scrolling content. | 162 // scrolling content. |
163 bool needsToReparentOverflowControls() const; | 163 bool needsToReparentOverflowControls() const; |
164 | 164 |
165 // Removes the overflow controls host layer from its parent and positions it | 165 // Removes the overflow controls host layer from its parent and positions it |
166 // so that it can be inserted as a sibling to this CLM without changing | 166 // so that it can be inserted as a sibling to this CLM without changing |
167 // position. | 167 // position. |
168 GraphicsLayer* detachLayerForOverflowControls(const DeprecatedPaintLayer& en
closingLayer); | 168 GraphicsLayer* detachLayerForOverflowControls(const DeprecatedPaintLayer& en
closingLayer); |
169 | 169 |
170 void updateFilters(const LayoutStyle&); | 170 void updateFilters(const ComputedStyle&); |
171 | 171 |
172 void setBlendMode(WebBlendMode); | 172 void setBlendMode(WebBlendMode); |
173 | 173 |
174 bool needsGraphicsLayerUpdate() { return m_pendingUpdateScope > GraphicsLaye
rUpdateNone; } | 174 bool needsGraphicsLayerUpdate() { return m_pendingUpdateScope > GraphicsLaye
rUpdateNone; } |
175 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) { m_pending
UpdateScope = std::max(static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScop
e), scope); } | 175 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) { m_pending
UpdateScope = std::max(static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScop
e), scope); } |
176 void clearNeedsGraphicsLayerUpdate() { m_pendingUpdateScope = GraphicsLayerU
pdateNone; } | 176 void clearNeedsGraphicsLayerUpdate() { m_pendingUpdateScope = GraphicsLayerU
pdateNone; } |
177 | 177 |
178 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater:
:UpdateType) const; | 178 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater:
:UpdateType) const; |
179 | 179 |
180 #if ENABLE(ASSERT) | 180 #if ENABLE(ASSERT) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // Also sets subpixelAccumulation on the layer. | 250 // Also sets subpixelAccumulation on the layer. |
251 void computeBoundsOfOwningLayer(const DeprecatedPaintLayer* compositedAncest
or, IntRect& localCompositingBounds, IntRect& compositingBoundsRelativeToComposi
tedAncestor, LayoutPoint& offsetFromCompositedAncestor, IntPoint& snappedOffsetF
romCompositedAncestor); | 251 void computeBoundsOfOwningLayer(const DeprecatedPaintLayer* compositedAncest
or, IntRect& localCompositingBounds, IntRect& compositingBoundsRelativeToComposi
tedAncestor, LayoutPoint& offsetFromCompositedAncestor, IntPoint& snappedOffsetF
romCompositedAncestor); |
252 | 252 |
253 void setBackgroundLayerPaintsFixedRootBackground(bool); | 253 void setBackgroundLayerPaintsFixedRootBackground(bool); |
254 | 254 |
255 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; | 255 GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; |
256 | 256 |
257 // Result is transform origin in pixels. | 257 // Result is transform origin in pixels. |
258 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; | 258 FloatPoint3D computeTransformOrigin(const IntRect& borderBox) const; |
259 | 259 |
260 void updateOpacity(const LayoutStyle&); | 260 void updateOpacity(const ComputedStyle&); |
261 void updateTransform(const LayoutStyle&); | 261 void updateTransform(const ComputedStyle&); |
262 void updateLayerBlendMode(const LayoutStyle&); | 262 void updateLayerBlendMode(const ComputedStyle&); |
263 void updateIsRootForIsolatedGroup(); | 263 void updateIsRootForIsolatedGroup(); |
264 void updateScrollBlocksOn(const LayoutStyle&); | 264 void updateScrollBlocksOn(const ComputedStyle&); |
265 // Return the opacity value that this layer should use for compositing. | 265 // Return the opacity value that this layer should use for compositing. |
266 float compositingOpacity(float rendererOpacity) const; | 266 float compositingOpacity(float rendererOpacity) const; |
267 | 267 |
268 bool paintsChildren() const; | 268 bool paintsChildren() const; |
269 | 269 |
270 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. | 270 // Returns true if this layer has content that needs to be rendered by paint
ing into the backing store. |
271 bool containsPaintedContent() const; | 271 bool containsPaintedContent() const; |
272 // Returns true if the Layer just contains an image that we can composite di
rectly. | 272 // Returns true if the Layer just contains an image that we can composite di
rectly. |
273 bool isDirectlyCompositedImage() const; | 273 bool isDirectlyCompositedImage() const; |
274 void updateImageContents(); | 274 void updateImageContents(); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 unsigned m_pendingUpdateScope : 2; | 415 unsigned m_pendingUpdateScope : 2; |
416 unsigned m_isMainFrameLayoutViewLayer : 1; | 416 unsigned m_isMainFrameLayoutViewLayer : 1; |
417 | 417 |
418 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 418 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
419 unsigned m_scrollingContentsAreEmpty : 1; | 419 unsigned m_scrollingContentsAreEmpty : 1; |
420 }; | 420 }; |
421 | 421 |
422 } // namespace blink | 422 } // namespace blink |
423 | 423 |
424 #endif // CompositedDeprecatedPaintLayerMapping_h | 424 #endif // CompositedDeprecatedPaintLayerMapping_h |
OLD | NEW |