| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 3770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3781 m_clipRects = 0; | 3781 m_clipRects = 0; |
| 3782 #ifndef NDEBUG | 3782 #ifndef NDEBUG |
| 3783 m_clipRectsRoot = 0; | 3783 m_clipRectsRoot = 0; |
| 3784 #endif | 3784 #endif |
| 3785 } | 3785 } |
| 3786 } | 3786 } |
| 3787 | 3787 |
| 3788 #if USE(ACCELERATED_COMPOSITING) | 3788 #if USE(ACCELERATED_COMPOSITING) |
| 3789 RenderLayerBacking* RenderLayer::ensureBacking() | 3789 RenderLayerBacking* RenderLayer::ensureBacking() |
| 3790 { | 3790 { |
| 3791 if (!m_backing) | 3791 if (!m_backing) { |
| 3792 m_backing = adoptPtr(new RenderLayerBacking(this)); | 3792 m_backing = adoptPtr(new RenderLayerBacking(this)); |
| 3793 compositor()->layerBecameComposited(this); |
| 3794 } |
| 3793 return m_backing.get(); | 3795 return m_backing.get(); |
| 3794 } | 3796 } |
| 3795 | 3797 |
| 3796 void RenderLayer::clearBacking() | 3798 void RenderLayer::clearBacking() |
| 3797 { | 3799 { |
| 3800 if (m_backing && !renderer()->documentBeingDestroyed()) |
| 3801 compositor()->layerBecameNonComposited(this); |
| 3798 m_backing.clear(); | 3802 m_backing.clear(); |
| 3799 } | 3803 } |
| 3800 | 3804 |
| 3801 bool RenderLayer::hasCompositedMask() const | 3805 bool RenderLayer::hasCompositedMask() const |
| 3802 { | 3806 { |
| 3803 return m_backing && m_backing->hasMaskLayer(); | 3807 return m_backing && m_backing->hasMaskLayer(); |
| 3804 } | 3808 } |
| 3805 | 3809 |
| 3806 GraphicsLayer* RenderLayer::layerForHorizontalScrollbar() const | 3810 GraphicsLayer* RenderLayer::layerForHorizontalScrollbar() const |
| 3807 { | 3811 { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4322 } | 4326 } |
| 4323 } | 4327 } |
| 4324 | 4328 |
| 4325 void showLayerTree(const WebCore::RenderObject* renderer) | 4329 void showLayerTree(const WebCore::RenderObject* renderer) |
| 4326 { | 4330 { |
| 4327 if (!renderer) | 4331 if (!renderer) |
| 4328 return; | 4332 return; |
| 4329 showLayerTree(renderer->enclosingLayer()); | 4333 showLayerTree(renderer->enclosingLayer()); |
| 4330 } | 4334 } |
| 4331 #endif | 4335 #endif |
| OLD | NEW |