зеркало из https://github.com/mozilla/pjs.git
Fix VC7 bustage. b=258793
This commit is contained in:
Родитель
8c339eab41
Коммит
dc543d8c47
|
@ -188,13 +188,10 @@ struct nsStyleBackground : public nsStyleStruct {
|
|||
(NS_STYLE_BG_COLOR_TRANSPARENT | NS_STYLE_BG_IMAGE_NONE);
|
||||
}
|
||||
|
||||
PRBool HasFixedBackground() const
|
||||
{
|
||||
// We have to take slower codepaths for fixed background attachment,
|
||||
// but we don't want to do that when there's no image.
|
||||
return mBackgroundAttachment == NS_STYLE_BG_ATTACHMENT_FIXED &&
|
||||
mBackgroundImage;
|
||||
}
|
||||
// We have to take slower codepaths for fixed background attachment,
|
||||
// but we don't want to do that when there's no image.
|
||||
// Not inline because it uses an nsCOMPtr<imgIRequest>
|
||||
PRBool HasFixedBackground() const;
|
||||
};
|
||||
|
||||
#define BORDER_COLOR_DEFINED 0x80
|
||||
|
|
|
@ -1088,6 +1088,12 @@ nsChangeHint nsStyleBackground::CalcDifference(const nsStyleBackground& aOther)
|
|||
return NS_STYLE_HINT_VISUAL;
|
||||
}
|
||||
|
||||
PRBool nsStyleBackground::HasFixedBackground() const
|
||||
{
|
||||
return mBackgroundAttachment == NS_STYLE_BG_ATTACHMENT_FIXED &&
|
||||
mBackgroundImage;
|
||||
}
|
||||
|
||||
// --------------------
|
||||
// nsStyleDisplay
|
||||
//
|
||||
|
|
|
@ -1088,6 +1088,12 @@ nsChangeHint nsStyleBackground::CalcDifference(const nsStyleBackground& aOther)
|
|||
return NS_STYLE_HINT_VISUAL;
|
||||
}
|
||||
|
||||
PRBool nsStyleBackground::HasFixedBackground() const
|
||||
{
|
||||
return mBackgroundAttachment == NS_STYLE_BG_ATTACHMENT_FIXED &&
|
||||
mBackgroundImage;
|
||||
}
|
||||
|
||||
// --------------------
|
||||
// nsStyleDisplay
|
||||
//
|
||||
|
|
|
@ -188,13 +188,10 @@ struct nsStyleBackground : public nsStyleStruct {
|
|||
(NS_STYLE_BG_COLOR_TRANSPARENT | NS_STYLE_BG_IMAGE_NONE);
|
||||
}
|
||||
|
||||
PRBool HasFixedBackground() const
|
||||
{
|
||||
// We have to take slower codepaths for fixed background attachment,
|
||||
// but we don't want to do that when there's no image.
|
||||
return mBackgroundAttachment == NS_STYLE_BG_ATTACHMENT_FIXED &&
|
||||
mBackgroundImage;
|
||||
}
|
||||
// We have to take slower codepaths for fixed background attachment,
|
||||
// but we don't want to do that when there's no image.
|
||||
// Not inline because it uses an nsCOMPtr<imgIRequest>
|
||||
PRBool HasFixedBackground() const;
|
||||
};
|
||||
|
||||
#define BORDER_COLOR_DEFINED 0x80
|
||||
|
|
Загрузка…
Ссылка в новой задаче