Fix for bug #1998. Now we render the background image over the padding area and not over the border area

This commit is contained in:
troy@netscape.com
1999-01-15 18:25:58 +00:00
parent f1ca5eae56
commit 217ab2bc29
24 changed files with 178 additions and 126 deletions

View File

@@ -698,7 +698,7 @@ nsTextControlFrame::PaintTextControl(nsIPresContext& aPresContext,
const nsStyleColor* sbColor = (const nsStyleColor*)scrollbarStyle->GetStyleData(eStyleStruct_Color);
srect.SetRect(mRect.width-scrollbarScaledWidth-(2*onePixel), mRect.height-scrollbarScaledHeight-(onePixel*2), scrollbarScaledWidth, scrollbarScaledHeight);
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
aDirtyRect, srect, *sbColor, 0, 0);
aDirtyRect, srect, *sbColor, *spacing, 0, 0);
}