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

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

Issue 337793004: Repaint squashing content in cases where the entire frame is repainting. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged. Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayerRepainter.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, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 updatePagination(); 294 updatePagination();
295 flags |= UpdatePagination; 295 flags |= UpdatePagination;
296 } 296 }
297 297
298 if (renderer()->hasColumns()) 298 if (renderer()->hasColumns())
299 flags |= UpdatePagination; 299 flags |= UpdatePagination;
300 300
301 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) 301 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
302 child->updateLayerPositionRecursive(flags); 302 child->updateLayerPositionRecursive(flags);
303 303
304 if ((flags & NeedsFullRepaintInBacking) && hasCompositedLayerMapping() && !c ompositedLayerMapping()->paintsIntoCompositedAncestor()) 304 // FIXME: why isn't FrameView just calling RenderLayerCompositor::repaintCom positedLayers? Does it really impact
305 // performance?
306 if ((flags & NeedsFullRepaintInBacking) && hasCompositedLayerMapping() && !c ompositedLayerMapping()->paintsIntoCompositedAncestor()) {
305 compositedLayerMapping()->setContentsNeedDisplay(); 307 compositedLayerMapping()->setContentsNeedDisplay();
308 // This code is called when the FrameView wants to repaint the entire fr ame. This includes squashing content.
309 compositedLayerMapping()->setSquashingContentsNeedDisplay();
310 }
306 } 311 }
307 312
308 void RenderLayer::setAncestorChainHasSelfPaintingLayerDescendant() 313 void RenderLayer::setAncestorChainHasSelfPaintingLayerDescendant()
309 { 314 {
310 for (RenderLayer* layer = this; layer; layer = layer->parent()) { 315 for (RenderLayer* layer = this; layer; layer = layer->parent()) {
311 if (!layer->m_hasSelfPaintingLayerDescendantDirty && layer->hasSelfPaint ingLayerDescendant()) 316 if (!layer->m_hasSelfPaintingLayerDescendantDirty && layer->hasSelfPaint ingLayerDescendant())
312 break; 317 break;
313 318
314 layer->m_hasSelfPaintingLayerDescendantDirty = false; 319 layer->m_hasSelfPaintingLayerDescendantDirty = false;
315 layer->m_hasSelfPaintingLayerDescendant = true; 320 layer->m_hasSelfPaintingLayerDescendant = true;
(...skipping 3514 matching lines...) Expand 10 before | Expand all | Expand 10 after
3830 } 3835 }
3831 } 3836 }
3832 3837
3833 void showLayerTree(const WebCore::RenderObject* renderer) 3838 void showLayerTree(const WebCore::RenderObject* renderer)
3834 { 3839 {
3835 if (!renderer) 3840 if (!renderer)
3836 return; 3841 return;
3837 showLayerTree(renderer->enclosingLayer()); 3842 showLayerTree(renderer->enclosingLayer());
3838 } 3843 }
3839 #endif 3844 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayerRepainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698