This commit is contained in:
dbaron%dbaron.org 2004-09-13 20:40:46 +00:00
Родитель 8c339eab41
Коммит dc543d8c47
4 изменённых файлов: 20 добавлений и 14 удалений

Просмотреть файл

@ -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