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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant
(inclusive) of the | 322 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant
(inclusive) of the |
323 // clipping container for |m_owningLayer|. | 323 // clipping container for |m_owningLayer|. |
324 bool owningLayerClippedByLayerNotAboveCompositedAncestor(const PaintLayer* s
crollParent); | 324 bool owningLayerClippedByLayerNotAboveCompositedAncestor(const PaintLayer* s
crollParent); |
325 | 325 |
326 const PaintLayer* scrollParent(); | 326 const PaintLayer* scrollParent(); |
327 | 327 |
328 // Clear the groupedMapping entry on the layer at the given index, only if t
hat layer does | 328 // Clear the groupedMapping entry on the layer at the given index, only if t
hat layer does |
329 // not appear earlier in the set of layers for this object. | 329 // not appear earlier in the set of layers for this object. |
330 bool invalidateLayerIfNoPrecedingEntry(size_t); | 330 bool invalidateLayerIfNoPrecedingEntry(size_t); |
331 | 331 |
| 332 // Returns true for layers with scrollable overflow which have a background |
| 333 // that can be painted into the composited scrolling contents layer (i.e. |
| 334 // the background can scroll with the content). When the background is also |
| 335 // opaque this allows us to composite the scroller even on low DPI as we can |
| 336 // draw with subpixel anti-aliasing. |
| 337 bool shouldPaintBackgroundOntoScrollingContentsLayer() const; |
| 338 |
332 PaintLayer& m_owningLayer; | 339 PaintLayer& m_owningLayer; |
333 | 340 |
334 // The hierarchy of layers that is maintained by the CompositedLayerMapping
looks like this: | 341 // The hierarchy of layers that is maintained by the CompositedLayerMapping
looks like this: |
335 // | 342 // |
336 // + m_ancestorClippingLayer [OPTIONAL] | 343 // + m_ancestorClippingLayer [OPTIONAL] |
337 // + m_graphicsLayer | 344 // + m_graphicsLayer |
338 // + m_childTransformLayer [OPTIONAL] | 345 // + m_childTransformLayer [OPTIONAL] |
339 // | + m_childContainmentLayer [OPTIONAL] <-OR-> m_scrollingLayer [OPTI
ONAL] | 346 // | + m_childContainmentLayer [OPTIONAL] <-OR-> m_scrollingLayer [OPTI
ONAL] |
340 // | + m_scrollingContentsL
ayer [Present iff m_scrollingLayer is present] | 347 // | + m_scrollingContentsL
ayer [Present iff m_scrollingLayer is present] |
341 // + m_overflowControlsAncestorClippingLayer [OPTIONAL] // *The overflo
w controls may need to be repositioned in the | 348 // + m_overflowControlsAncestorClippingLayer [OPTIONAL] // *The overflo
w controls may need to be repositioned in the |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 462 |
456 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 463 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
457 unsigned m_scrollingContentsAreEmpty : 1; | 464 unsigned m_scrollingContentsAreEmpty : 1; |
458 | 465 |
459 friend class CompositedLayerMappingTest; | 466 friend class CompositedLayerMappingTest; |
460 }; | 467 }; |
461 | 468 |
462 } // namespace blink | 469 } // namespace blink |
463 | 470 |
464 #endif // CompositedLayerMapping_h | 471 #endif // CompositedLayerMapping_h |
OLD | NEW |