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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // opaque this allows us to composite the scroller even on low DPI as we can | 297 // opaque this allows us to composite the scroller even on low DPI as we can |
298 // draw with subpixel anti-aliasing. | 298 // draw with subpixel anti-aliasing. |
299 bool backgroundPaintsOntoScrollingContentsLayer() { | 299 bool backgroundPaintsOntoScrollingContentsLayer() { |
300 return m_backgroundPaintsOntoScrollingContentsLayer; | 300 return m_backgroundPaintsOntoScrollingContentsLayer; |
301 } | 301 } |
302 | 302 |
303 bool drawsBackgroundOntoContentLayer() { | 303 bool drawsBackgroundOntoContentLayer() { |
304 return m_drawsBackgroundOntoContentLayer; | 304 return m_drawsBackgroundOntoContentLayer; |
305 } | 305 } |
306 | 306 |
| 307 static ScrollingCoordinator* scrollingCoordinatorFromLayer(PaintLayer&); |
| 308 |
307 private: | 309 private: |
308 IntRect recomputeInterestRect(const GraphicsLayer*) const; | 310 IntRect recomputeInterestRect(const GraphicsLayer*) const; |
309 static bool interestRectChangedEnoughToRepaint( | 311 static bool interestRectChangedEnoughToRepaint( |
310 const IntRect& previousInterestRect, | 312 const IntRect& previousInterestRect, |
311 const IntRect& newInterestRect, | 313 const IntRect& newInterestRect, |
312 const IntSize& layerSize); | 314 const IntSize& layerSize); |
313 | 315 |
314 static const GraphicsLayerPaintInfo* containingSquashedLayer( | 316 static const GraphicsLayerPaintInfo* containingSquashedLayer( |
315 const LayoutObject*, | 317 const LayoutObject*, |
316 const Vector<GraphicsLayerPaintInfo>& layers, | 318 const Vector<GraphicsLayerPaintInfo>& layers, |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; | 706 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; |
705 | 707 |
706 bool m_drawsBackgroundOntoContentLayer; | 708 bool m_drawsBackgroundOntoContentLayer; |
707 | 709 |
708 friend class CompositedLayerMappingTest; | 710 friend class CompositedLayerMappingTest; |
709 }; | 711 }; |
710 | 712 |
711 } // namespace blink | 713 } // namespace blink |
712 | 714 |
713 #endif // CompositedLayerMapping_h | 715 #endif // CompositedLayerMapping_h |
OLD | NEW |