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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 LayoutRect compositedBounds() const { return m_compositedBounds; } | 184 LayoutRect compositedBounds() const { return m_compositedBounds; } |
185 IntRect pixelSnappedCompositedBounds() const; | 185 IntRect pixelSnappedCompositedBounds() const; |
186 | 186 |
187 void positionOverflowControlsLayers(); | 187 void positionOverflowControlsLayers(); |
188 | 188 |
189 // Returns true if the assignment actually changed the assigned squashing | 189 // Returns true if the assignment actually changed the assigned squashing |
190 // layer. | 190 // layer. |
191 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, | 191 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, |
192 size_t nextSquashedLayerIndex); | 192 size_t nextSquashedLayerIndex); |
193 void removeLayerFromSquashingGraphicsLayer(const PaintLayer*); | 193 void removeLayerFromSquashingGraphicsLayer(const PaintLayer*); |
194 #if ENABLE(ASSERT) | 194 #if DCHECK_IS_ON() |
195 bool verifyLayerInSquashingVector(const PaintLayer*); | 195 bool verifyLayerInSquashingVector(const PaintLayer*); |
196 #endif | 196 #endif |
197 | 197 |
198 void finishAccumulatingSquashingLayers( | 198 void finishAccumulatingSquashingLayers( |
199 size_t nextSquashedLayerIndex, | 199 size_t nextSquashedLayerIndex, |
200 Vector<PaintLayer*>& layersNeedingPaintInvalidation); | 200 Vector<PaintLayer*>& layersNeedingPaintInvalidation); |
201 void updateRenderingContext(); | 201 void updateRenderingContext(); |
202 void updateShouldFlattenTransform(); | 202 void updateShouldFlattenTransform(); |
203 void updateElementIdAndCompositorMutableProperties(); | 203 void updateElementIdAndCompositorMutableProperties(); |
204 | 204 |
205 // GraphicsLayerClient interface | 205 // GraphicsLayerClient interface |
206 void invalidateTargetElementForTesting() override; | 206 void invalidateTargetElementForTesting() override; |
207 IntRect computeInterestRect( | 207 IntRect computeInterestRect( |
208 const GraphicsLayer*, | 208 const GraphicsLayer*, |
209 const IntRect& previousInterestRect) const override; | 209 const IntRect& previousInterestRect) const override; |
210 LayoutSize subpixelAccumulation() const final; | 210 LayoutSize subpixelAccumulation() const final; |
211 bool needsRepaint(const GraphicsLayer&) const override; | 211 bool needsRepaint(const GraphicsLayer&) const override; |
212 void paintContents(const GraphicsLayer*, | 212 void paintContents(const GraphicsLayer*, |
213 GraphicsContext&, | 213 GraphicsContext&, |
214 GraphicsLayerPaintingPhase, | 214 GraphicsLayerPaintingPhase, |
215 const IntRect& interestRect) const override; | 215 const IntRect& interestRect) const override; |
216 | 216 |
217 bool isTrackingRasterInvalidations() const override; | 217 bool isTrackingRasterInvalidations() const override; |
218 | 218 |
219 #if ENABLE(ASSERT) | 219 #if DCHECK_IS_ON() |
220 void verifyNotPainting() override; | 220 void verifyNotPainting() override; |
221 #endif | 221 #endif |
222 | 222 |
223 LayoutRect contentsBox() const; | 223 LayoutRect contentsBox() const; |
224 | 224 |
225 GraphicsLayer* layerForHorizontalScrollbar() const { | 225 GraphicsLayer* layerForHorizontalScrollbar() const { |
226 return m_layerForHorizontalScrollbar.get(); | 226 return m_layerForHorizontalScrollbar.get(); |
227 } | 227 } |
228 GraphicsLayer* layerForVerticalScrollbar() const { | 228 GraphicsLayer* layerForVerticalScrollbar() const { |
229 return m_layerForVerticalScrollbar.get(); | 229 return m_layerForVerticalScrollbar.get(); |
(...skipping 29 matching lines...) Expand all Loading... |
259 m_pendingUpdateScope = std::max( | 259 m_pendingUpdateScope = std::max( |
260 static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScope), scope); | 260 static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScope), scope); |
261 } | 261 } |
262 void clearNeedsGraphicsLayerUpdate() { | 262 void clearNeedsGraphicsLayerUpdate() { |
263 m_pendingUpdateScope = GraphicsLayerUpdateNone; | 263 m_pendingUpdateScope = GraphicsLayerUpdateNone; |
264 } | 264 } |
265 | 265 |
266 GraphicsLayerUpdater::UpdateType updateTypeForChildren( | 266 GraphicsLayerUpdater::UpdateType updateTypeForChildren( |
267 GraphicsLayerUpdater::UpdateType) const; | 267 GraphicsLayerUpdater::UpdateType) const; |
268 | 268 |
269 #if ENABLE(ASSERT) | 269 #if DCHECK_IS_ON() |
270 void assertNeedsToUpdateGraphicsLayerBitsCleared() { | 270 void assertNeedsToUpdateGraphicsLayerBitsCleared() { |
271 ASSERT(m_pendingUpdateScope == GraphicsLayerUpdateNone); | 271 ASSERT(m_pendingUpdateScope == GraphicsLayerUpdateNone); |
272 } | 272 } |
273 #endif | 273 #endif |
274 | 274 |
275 String debugName(const GraphicsLayer*) const override; | 275 String debugName(const GraphicsLayer*) const override; |
276 | 276 |
277 LayoutSize contentOffsetInCompositingLayer() const; | 277 LayoutSize contentOffsetInCompositingLayer() const; |
278 | 278 |
279 LayoutPoint squashingOffsetFromTransformedAncestor() { | 279 LayoutPoint squashingOffsetFromTransformedAncestor() { |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 // layer and the graphics layer because the scrolling contents layer is | 687 // layer and the graphics layer because the scrolling contents layer is |
688 // clipped by the padding box. | 688 // clipped by the padding box. |
689 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; | 689 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; |
690 | 690 |
691 friend class CompositedLayerMappingTest; | 691 friend class CompositedLayerMappingTest; |
692 }; | 692 }; |
693 | 693 |
694 } // namespace blink | 694 } // namespace blink |
695 | 695 |
696 #endif // CompositedLayerMapping_h | 696 #endif // CompositedLayerMapping_h |
OLD | NEW |