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

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

Issue 319613004: Rename scheduleLayerUpdate now that it's only used for SVG filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename all the things 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 | « Source/core/html/HTMLPlugInElement.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 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after
3883 // If the filter fails to build, remove it from the layer. It will still att empt to 3883 // If the filter fails to build, remove it from the layer. It will still att empt to
3884 // go through regular processing (e.g. compositing), but never apply anythin g. 3884 // go through regular processing (e.g. compositing), but never apply anythin g.
3885 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende rer()->style()))) 3885 if (!filterInfo->renderer()->build(renderer(), computeFilterOperations(rende rer()->style())))
3886 filterInfo->setRenderer(nullptr); 3886 filterInfo->setRenderer(nullptr);
3887 } 3887 }
3888 3888
3889 void RenderLayer::filterNeedsRepaint() 3889 void RenderLayer::filterNeedsRepaint()
3890 { 3890 {
3891 { 3891 {
3892 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document(). lifecycle()); 3892 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document(). lifecycle());
3893 // It's possible for scheduleLayerUpdate to schedule a style recalc, whi ch 3893 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl e recalc, which
3894 // is a problem because this function can be called while performing lay out. 3894 // is a problem because this function can be called while performing lay out.
3895 // Presumably this represents an illegal data flow of layout or composit ing 3895 // Presumably this represents an illegal data flow of layout or composit ing
3896 // information into the style system. 3896 // information into the style system.
3897 toElement(renderer()->node())->scheduleLayerUpdate(); 3897 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack();
3898 } 3898 }
3899 3899
3900 if (renderer()->view()) { 3900 if (renderer()->view()) {
3901 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && renderer()->f rameView()->isInPerformLayout()) 3901 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && renderer()->f rameView()->isInPerformLayout())
3902 renderer()->setShouldDoFullPaintInvalidationAfterLayout(true); 3902 renderer()->setShouldDoFullPaintInvalidationAfterLayout(true);
3903 else 3903 else
3904 renderer()->repaint(); 3904 renderer()->repaint();
3905 } 3905 }
3906 } 3906 }
3907 3907
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
3962 } 3962 }
3963 } 3963 }
3964 3964
3965 void showLayerTree(const WebCore::RenderObject* renderer) 3965 void showLayerTree(const WebCore::RenderObject* renderer)
3966 { 3966 {
3967 if (!renderer) 3967 if (!renderer)
3968 return; 3968 return;
3969 showLayerTree(renderer->enclosingLayer()); 3969 showLayerTree(renderer->enclosingLayer());
3970 } 3970 }
3971 #endif 3971 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/rendering/RenderLayerFilterInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698