Bug 253889: DeCOMtaminate nsIPresShell - IsPaintingSuppressed(). r=roc

This commit is contained in:
Craig Topper
2010-03-31 08:43:49 -04:00
parent ac854ad380
commit 3b09030026
7 changed files with 15 additions and 27 deletions
+1 -3
View File
@@ -7223,9 +7223,7 @@ ApplyRenderingChangeToTree(nsPresContext* aPresContext,
nsChangeHint aChange)
{
nsIPresShell *shell = aPresContext->PresShell();
PRBool isPaintingSuppressed = PR_FALSE;
shell->IsPaintingSuppressed(&isPaintingSuppressed);
if (isPaintingSuppressed) {
if (shell->IsPaintingSuppressed()) {
// Don't allow synchronous rendering changes when painting is turned off.
aChange = NS_SubtractHint(aChange, nsChangeHint_RepaintFrame);
if (!aChange) {