make a slider, not a spinner. doh!

This commit is contained in:
pinkerton%netscape.com 1999-04-20 21:43:09 +00:00
parent f662c72c7b
commit ca0f65130e
2 changed files with 16 additions and 16 deletions

View File

@ -17,7 +17,7 @@
*/
#include "nsSpinnerFrame.h"
#include "nsSliderFrame.h"
#include "nsIContent.h"
#include "prtypes.h"
@ -29,14 +29,14 @@
//
// NS_NewSpinnerFrame
// NS_NewSliderFrame
//
// Wrapper for creating a new spinner
//
nsresult
NS_NewSpinnerFrame(nsIFrame*& aResult)
NS_NewSliderFrame(nsIFrame*& aResult)
{
aResult = new nsSpinnerFrame;
aResult = new nsSliderFrame;
if ( !aResult )
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
@ -44,9 +44,9 @@ NS_NewSpinnerFrame(nsIFrame*& aResult)
//
// nsSpinnerFrame cntr
// nsSliderFrame cntr
//
nsSpinnerFrame::nsSpinnerFrame()
nsSliderFrame::nsSliderFrame()
{
} // cntr
@ -58,7 +58,7 @@ nsSpinnerFrame::nsSpinnerFrame()
// Overidden to handle ???
//
NS_METHOD
nsSpinnerFrame::Paint(nsIPresContext& aPresContext,
nsSliderFrame::Paint(nsIPresContext& aPresContext,
nsIRenderingContext& aRenderingContext,
const nsRect& aDirtyRect,
nsFramePaintLayer aWhichLayer)
@ -73,7 +73,7 @@ nsSpinnerFrame::Paint(nsIPresContext& aPresContext,
// For now, be as big as CSS wants us to be, or some small default size.
//
void
nsSpinnerFrame :: GetDesiredSize(nsIPresContext* aPresContext,
nsSliderFrame :: GetDesiredSize(nsIPresContext* aPresContext,
const nsHTMLReflowState& aReflowState,
nsHTMLReflowMetrics& aDesiredLayoutSize)
{

View File

@ -17,11 +17,11 @@
*/
//
// nsSpinnerFrame
// nsSliderFrame
//
#ifndef nsSpinnerFrame_h__
#define nsSpinnerFrame_h__
#ifndef nsSliderFrame_h__
#define nsSliderFrame_h__
#include "nsLeafFrame.h"
@ -32,17 +32,17 @@
class nsString;
nsresult NS_NewSpinnerFrame(nsIFrame*& aResult) ;
nsresult NS_NewSliderFrame(nsIFrame*& aResult) ;
class nsSpinnerFrame : public nsLeafFrame
class nsSliderFrame : public nsLeafFrame
{
public:
nsSpinnerFrame();
nsSliderFrame();
// nsIFrame overrides
NS_IMETHOD GetFrameName(nsString& aResult) const {
return MakeFrameName("SpinnerFrame", aResult);
return MakeFrameName("SliderFrame", aResult);
}
NS_IMETHOD Paint(nsIPresContext& aPresContext,
nsIRenderingContext& aRenderingContext,
@ -55,6 +55,6 @@ protected:
const nsHTMLReflowState& aReflowState,
nsHTMLReflowMetrics& aDesiredSize) ;
}; // class nsSpinnerFrame
}; // class nsSliderFrame
#endif