From f5b91b3a26b69b7d1318599e74e1ca2bfe3d0614 Mon Sep 17 00:00:00 2001 From: "sharparrow1%yahoo.com" Date: Tue, 27 Feb 2007 22:03:26 +0000 Subject: [PATCH] Bug 371991: Stop requiring a reframe for fixed backgrounds. r+sr=roc. --- layout/style/nsStyleStruct.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp index c6eb2435ce33..841922afe807 100644 --- a/layout/style/nsStyleStruct.cpp +++ b/layout/style/nsStyleStruct.cpp @@ -1067,14 +1067,6 @@ nsStyleBackground::~nsStyleBackground() nsChangeHint nsStyleBackground::CalcDifference(const nsStyleBackground& aOther) const { - if (mBackgroundAttachment != aOther.mBackgroundAttachment - && ((NS_STYLE_BG_ATTACHMENT_FIXED == mBackgroundAttachment) || - (NS_STYLE_BG_ATTACHMENT_FIXED == aOther.mBackgroundAttachment))) - // this might require creation of a view - // XXX This probably doesn't call ApplyRenderingChangeToTree, which - // means we might not invalidate the canvas if this is the body. - return NS_STYLE_HINT_FRAMECHANGE; - if ((mBackgroundAttachment == aOther.mBackgroundAttachment) && (mBackgroundFlags == aOther.mBackgroundFlags) && (mBackgroundRepeat == aOther.mBackgroundRepeat) && @@ -1099,7 +1091,7 @@ nsChangeHint nsStyleBackground::CalcDifference(const nsStyleBackground& aOther) /* static */ nsChangeHint nsStyleBackground::MaxDifference() { - return NS_STYLE_HINT_FRAMECHANGE; + return NS_STYLE_HINT_VISUAL; } #endif