Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: Source/WebCore/rendering/RenderLayer.cpp

Issue 8399041: Merge 98060 - Hidden composited iframes cause infinite loop (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/rendering/RenderLayerCompositor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/rendering/RenderLayerCompositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698