From 8f1b6c4b343289d7b3bc2dde1d494561eba09cf3 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Fri, 22 Jan 1999 22:31:15 +0000 Subject: [PATCH] styleContext is passed onto PaintBorder()/PaintArrow() git-svn-id: svn://10.0.0.236/trunk@18358 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsComboboxControlFrame.cpp | 6 +++--- mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/forms/nsComboboxControlFrame.cpp b/mozilla/layout/forms/nsComboboxControlFrame.cpp index 5ae681b5e82..f44123cb093 100644 --- a/mozilla/layout/forms/nsComboboxControlFrame.cpp +++ b/mozilla/layout/forms/nsComboboxControlFrame.cpp @@ -507,7 +507,7 @@ nsComboboxControlFrame::PaintComboboxControl(nsIPresContext& aPresContext, aDirtyRect, rect, *myColor, *mySpacing, 0, 0); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this, - aDirtyRect, rect, *mySpacing, 0); + aDirtyRect, rect, *mySpacing, mStyleContext, 0); nsHTMLContainerFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer); @@ -561,7 +561,7 @@ nsComboboxControlFrame::PaintComboboxControl(nsIPresContext& aPresContext, aRenderingContext.DrawString(mTextStr, x, y, 0); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this, - aDirtyRect, inside, *blkSpacing, 0); + aDirtyRect, inside, *blkSpacing, blkStyle, 0); aRenderingContext.PopState(clipEmpty); @@ -582,7 +582,7 @@ nsComboboxControlFrame::PaintComboboxControl(nsIPresContext& aPresContext, nsRect srect(0,0,0,0);//mRect.width-scrollbarWidth-onePixel, onePixel, scrollbarWidth, mRect.height-(onePixel*2)); srect = mButtonRect; nsFormControlHelper::PaintArrow(nsFormControlHelper::eArrowDirection_Down, aRenderingContext,aPresContext, - aDirtyRect, srect, onePixel, *arrowColor, *arrowSpacing, this, mRect); + aDirtyRect, srect, onePixel, mArrowStyle, *arrowSpacing, this, mRect); //} diff --git a/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp b/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp index 5ae681b5e82..f44123cb093 100644 --- a/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp @@ -507,7 +507,7 @@ nsComboboxControlFrame::PaintComboboxControl(nsIPresContext& aPresContext, aDirtyRect, rect, *myColor, *mySpacing, 0, 0); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this, - aDirtyRect, rect, *mySpacing, 0); + aDirtyRect, rect, *mySpacing, mStyleContext, 0); nsHTMLContainerFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer); @@ -561,7 +561,7 @@ nsComboboxControlFrame::PaintComboboxControl(nsIPresContext& aPresContext, aRenderingContext.DrawString(mTextStr, x, y, 0); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this, - aDirtyRect, inside, *blkSpacing, 0); + aDirtyRect, inside, *blkSpacing, blkStyle, 0); aRenderingContext.PopState(clipEmpty); @@ -582,7 +582,7 @@ nsComboboxControlFrame::PaintComboboxControl(nsIPresContext& aPresContext, nsRect srect(0,0,0,0);//mRect.width-scrollbarWidth-onePixel, onePixel, scrollbarWidth, mRect.height-(onePixel*2)); srect = mButtonRect; nsFormControlHelper::PaintArrow(nsFormControlHelper::eArrowDirection_Down, aRenderingContext,aPresContext, - aDirtyRect, srect, onePixel, *arrowColor, *arrowSpacing, this, mRect); + aDirtyRect, srect, onePixel, mArrowStyle, *arrowSpacing, this, mRect); //}