Bug 161184. Shrink nsIPresContexts by moving some default value settings out of it and into StyleStructs where they belong.
r=bzbarsky sr=dbaron git-svn-id: svn://10.0.0.236/trunk@126644 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -979,10 +979,9 @@ nsStyleBackground::nsStyleBackground(nsIPresContext* aPresContext)
|
||||
{
|
||||
mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT | NS_STYLE_BG_IMAGE_NONE;
|
||||
aPresContext->GetDefaultBackgroundColor(&mBackgroundColor);
|
||||
aPresContext->GetDefaultBackgroundImageAttachment(&mBackgroundAttachment);
|
||||
aPresContext->GetDefaultBackgroundImageRepeat(&mBackgroundRepeat);
|
||||
aPresContext->GetDefaultBackgroundImageOffset(&mBackgroundXPosition, &mBackgroundYPosition);
|
||||
aPresContext->GetDefaultBackgroundImage(mBackgroundImage);
|
||||
mBackgroundAttachment = NS_STYLE_BG_ATTACHMENT_SCROLL;
|
||||
mBackgroundRepeat = NS_STYLE_BG_REPEAT_XY;
|
||||
mBackgroundXPosition = mBackgroundYPosition = 0;
|
||||
}
|
||||
|
||||
nsStyleBackground::nsStyleBackground(const nsStyleBackground& aSource)
|
||||
|
||||
Reference in New Issue
Block a user