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

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

Issue 478433002: Avoid RenderObject::paintInvalidationForWholeRenderer() if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations Created 6 years, 4 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 | « Source/core/rendering/RenderInline.cpp ('k') | Source/core/rendering/RenderLayerFilterInfo.cpp » ('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 3592 matching lines...) Expand 10 before | Expand all | Expand 10 after
3603 { 3603 {
3604 { 3604 {
3605 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document(). lifecycle()); 3605 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document(). lifecycle());
3606 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl e recalc, which 3606 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl e recalc, which
3607 // is a problem because this function can be called while performing lay out. 3607 // is a problem because this function can be called while performing lay out.
3608 // Presumably this represents an illegal data flow of layout or composit ing 3608 // Presumably this represents an illegal data flow of layout or composit ing
3609 // information into the style system. 3609 // information into the style system.
3610 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack(); 3610 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack();
3611 } 3611 }
3612 3612
3613 if (renderer()->view()) { 3613 renderer()->setShouldDoFullPaintInvalidation(true);
3614 if (renderer()->frameView()->isInPerformLayout())
3615 renderer()->setShouldDoFullPaintInvalidation(true);
3616 else
3617 renderer()->paintInvalidationForWholeRenderer();
3618 }
3619 } 3614 }
3620 3615
3621 void RenderLayer::addLayerHitTestRects(LayerHitTestRects& rects) const 3616 void RenderLayer::addLayerHitTestRects(LayerHitTestRects& rects) const
3622 { 3617 {
3623 computeSelfHitTestRects(rects); 3618 computeSelfHitTestRects(rects);
3624 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) 3619 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
3625 child->addLayerHitTestRects(rects); 3620 child->addLayerHitTestRects(rects);
3626 } 3621 }
3627 3622
3628 void RenderLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const 3623 void RenderLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
3686 } 3681 }
3687 } 3682 }
3688 3683
3689 void showLayerTree(const blink::RenderObject* renderer) 3684 void showLayerTree(const blink::RenderObject* renderer)
3690 { 3685 {
3691 if (!renderer) 3686 if (!renderer)
3692 return; 3687 return;
3693 showLayerTree(renderer->enclosingLayer()); 3688 showLayerTree(renderer->enclosingLayer());
3694 } 3689 }
3695 #endif 3690 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | Source/core/rendering/RenderLayerFilterInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698