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

Side by Side Diff: sky/engine/core/rendering/RenderLayer.cpp

Issue 840403003: First pass at deleting paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 return oldChild; 705 return oldChild;
706 } 706 }
707 707
708 void RenderLayer::removeOnlyThisLayer() 708 void RenderLayer::removeOnlyThisLayer()
709 { 709 {
710 if (!m_parent) 710 if (!m_parent)
711 return; 711 return;
712 712
713 m_clipper.clearClipRectsIncludingDescendants(); 713 m_clipper.clearClipRectsIncludingDescendants();
714 714
715 paintInvalidator().paintInvalidationIncludingNonCompositingDescendants();
716
717 RenderLayer* nextSib = nextSibling(); 715 RenderLayer* nextSib = nextSibling();
718 716
719 // Now walk our kids and reattach them to our parent. 717 // Now walk our kids and reattach them to our parent.
720 RenderLayer* current = m_first; 718 RenderLayer* current = m_first;
721 while (current) { 719 while (current) {
722 RenderLayer* next = current->nextSibling(); 720 RenderLayer* next = current->nextSibling();
723 removeChild(current); 721 removeChild(current);
724 m_parent->addChild(current, nextSib); 722 m_parent->addChild(current, nextSib);
725 723
726 current->renderer()->setShouldDoFullPaintInvalidation(true); 724 current->renderer()->setShouldDoFullPaintInvalidation(true);
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 } 2053 }
2056 } 2054 }
2057 2055
2058 void showLayerTree(const blink::RenderObject* renderer) 2056 void showLayerTree(const blink::RenderObject* renderer)
2059 { 2057 {
2060 if (!renderer) 2058 if (!renderer)
2061 return; 2059 return;
2062 showLayerTree(renderer->enclosingLayer()); 2060 showLayerTree(renderer->enclosingLayer());
2063 } 2061 }
2064 #endif 2062 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderFlexibleBox.cpp ('k') | sky/engine/core/rendering/RenderLayerModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698