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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 void updateInternalHierarchy(); | 248 void updateInternalHierarchy(); |
249 void updatePaintingPhases(); | 249 void updatePaintingPhases(); |
250 bool updateClippingLayers(bool needsAncestorClip, bool needsDescendantClip); | 250 bool updateClippingLayers(bool needsAncestorClip, bool needsDescendantClip); |
251 bool updateChildTransformLayer(bool needsChildTransformLayer); | 251 bool updateChildTransformLayer(bool needsChildTransformLayer); |
252 bool updateOverflowControlsLayers(bool needsHorizontalScrollbarLayer, bool n
eedsVerticalScrollbarLayer, bool needsScrollCornerLayer, bool needsAncestorClip)
; | 252 bool updateOverflowControlsLayers(bool needsHorizontalScrollbarLayer, bool n
eedsVerticalScrollbarLayer, bool needsScrollCornerLayer, bool needsAncestorClip)
; |
253 bool updateForegroundLayer(bool needsForegroundLayer); | 253 bool updateForegroundLayer(bool needsForegroundLayer); |
254 bool updateBackgroundLayer(bool needsBackgroundLayer); | 254 bool updateBackgroundLayer(bool needsBackgroundLayer); |
255 bool updateMaskLayer(bool needsMaskLayer); | 255 bool updateMaskLayer(bool needsMaskLayer); |
256 void updateChildClippingMaskLayer(bool needsChildClippingMaskLayer); | 256 void updateChildClippingMaskLayer(bool needsChildClippingMaskLayer); |
257 bool requiresHorizontalScrollbarLayer() const { return m_owningLayer.scrolla
bleArea() && m_owningLayer.scrollableArea()->horizontalScrollbar(); } | 257 bool requiresHorizontalScrollbarLayer() const { return m_owningLayer.getScro
llableArea() && m_owningLayer.getScrollableArea()->horizontalScrollbar(); } |
258 bool requiresVerticalScrollbarLayer() const { return m_owningLayer.scrollabl
eArea() && m_owningLayer.scrollableArea()->verticalScrollbar(); } | 258 bool requiresVerticalScrollbarLayer() const { return m_owningLayer.getScroll
ableArea() && m_owningLayer.getScrollableArea()->verticalScrollbar(); } |
259 bool requiresScrollCornerLayer() const { return m_owningLayer.scrollableArea
() && !m_owningLayer.scrollableArea()->scrollCornerAndResizerRect().isEmpty(); } | 259 bool requiresScrollCornerLayer() const { return m_owningLayer.getScrollableA
rea() && !m_owningLayer.getScrollableArea()->scrollCornerAndResizerRect().isEmpt
y(); } |
260 bool updateScrollingLayers(bool scrollingLayers); | 260 bool updateScrollingLayers(bool scrollingLayers); |
261 void updateScrollParent(const PaintLayer*); | 261 void updateScrollParent(const PaintLayer*); |
262 void updateClipParent(const PaintLayer* scrollParent); | 262 void updateClipParent(const PaintLayer* scrollParent); |
263 bool updateSquashingLayers(bool needsSquashingLayers); | 263 bool updateSquashingLayers(bool needsSquashingLayers); |
264 void updateDrawsContent(); | 264 void updateDrawsContent(); |
265 void updateChildrenTransform(); | 265 void updateChildrenTransform(); |
266 void updateCompositedBounds(); | 266 void updateCompositedBounds(); |
267 void registerScrollingLayers(); | 267 void registerScrollingLayers(); |
268 | 268 |
269 // Also sets subpixelAccumulation on the layer. | 269 // Also sets subpixelAccumulation on the layer. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 | 440 |
441 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 441 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
442 unsigned m_scrollingContentsAreEmpty : 1; | 442 unsigned m_scrollingContentsAreEmpty : 1; |
443 | 443 |
444 friend class CompositedLayerMappingTest; | 444 friend class CompositedLayerMappingTest; |
445 }; | 445 }; |
446 | 446 |
447 } // namespace blink | 447 } // namespace blink |
448 | 448 |
449 #endif // CompositedLayerMapping_h | 449 #endif // CompositedLayerMapping_h |
OLD | NEW |