This commit is contained in:
dbaron%fas.harvard.edu 2002-04-06 19:18:35 +00:00
Родитель fa1fed6872
Коммит 0c610fadf1
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -156,7 +156,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext,
GetButtonOuterFocusRect(aRect, rect); GetButtonOuterFocusRect(aRect, rect);
const nsStyleBorder* border; const nsStyleBorder* border;
::GetStyleData(mOuterFocusStyle, &border); ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mOuterFocusStyle), &border);
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame,
aDirtyRect, rect, *border, mOuterFocusStyle, 0); aDirtyRect, rect, *border, mOuterFocusStyle, 0);
} }
@ -167,7 +167,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext,
GetButtonInnerFocusRect(aRect, rect); GetButtonInnerFocusRect(aRect, rect);
const nsStyleBorder* border; const nsStyleBorder* border;
::GetStyleData(mInnerFocusStyle, &border); ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mInnerFocusStyle), &border);
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame,
aDirtyRect, rect, *border, mInnerFocusStyle, 0); aDirtyRect, rect, *border, mInnerFocusStyle, 0);
} }

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

@ -156,7 +156,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext,
GetButtonOuterFocusRect(aRect, rect); GetButtonOuterFocusRect(aRect, rect);
const nsStyleBorder* border; const nsStyleBorder* border;
::GetStyleData(mOuterFocusStyle, &border); ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mOuterFocusStyle), &border);
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame,
aDirtyRect, rect, *border, mOuterFocusStyle, 0); aDirtyRect, rect, *border, mOuterFocusStyle, 0);
} }
@ -167,7 +167,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext,
GetButtonInnerFocusRect(aRect, rect); GetButtonInnerFocusRect(aRect, rect);
const nsStyleBorder* border; const nsStyleBorder* border;
::GetStyleData(mInnerFocusStyle, &border); ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mInnerFocusStyle), &border);
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame,
aDirtyRect, rect, *border, mInnerFocusStyle, 0); aDirtyRect, rect, *border, mInnerFocusStyle, 0);
} }