From 34d7ea2e81b1a4784ee310dac4313aad7a6dd727 Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Sat, 6 Apr 2002 19:18:35 +0000 Subject: [PATCH] Fix SunWS / OS/2 bustage. --- layout/forms/nsButtonFrameRenderer.cpp | 4 ++-- layout/html/forms/src/nsButtonFrameRenderer.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/forms/nsButtonFrameRenderer.cpp b/layout/forms/nsButtonFrameRenderer.cpp index 89e08c73d7c..7240a224c5e 100644 --- a/layout/forms/nsButtonFrameRenderer.cpp +++ b/layout/forms/nsButtonFrameRenderer.cpp @@ -156,7 +156,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext, GetButtonOuterFocusRect(aRect, rect); const nsStyleBorder* border; - ::GetStyleData(mOuterFocusStyle, &border); + ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mOuterFocusStyle), &border); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, aDirtyRect, rect, *border, mOuterFocusStyle, 0); } @@ -167,7 +167,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext, GetButtonInnerFocusRect(aRect, rect); const nsStyleBorder* border; - ::GetStyleData(mInnerFocusStyle, &border); + ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mInnerFocusStyle), &border); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, aDirtyRect, rect, *border, mInnerFocusStyle, 0); } diff --git a/layout/html/forms/src/nsButtonFrameRenderer.cpp b/layout/html/forms/src/nsButtonFrameRenderer.cpp index 89e08c73d7c..7240a224c5e 100644 --- a/layout/html/forms/src/nsButtonFrameRenderer.cpp +++ b/layout/html/forms/src/nsButtonFrameRenderer.cpp @@ -156,7 +156,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext, GetButtonOuterFocusRect(aRect, rect); const nsStyleBorder* border; - ::GetStyleData(mOuterFocusStyle, &border); + ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mOuterFocusStyle), &border); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, aDirtyRect, rect, *border, mOuterFocusStyle, 0); } @@ -167,7 +167,7 @@ nsButtonFrameRenderer::PaintOutlineAndFocusBorders(nsIPresContext* aPresContext, GetButtonInnerFocusRect(aRect, rect); const nsStyleBorder* border; - ::GetStyleData(mInnerFocusStyle, &border); + ::GetStyleData(NS_STATIC_CAST(nsIStyleContext*,mInnerFocusStyle), &border); nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame, aDirtyRect, rect, *border, mInnerFocusStyle, 0); }