зеркало из https://github.com/mozilla/gecko-dev.git
Bug 227838. Remove unused RequiresWidget method from nsIFormControlFrame. r+sr=bzbarsky
This commit is contained in:
Родитель
fa6f07df7c
Коммит
17f81274ba
|
@ -1975,14 +1975,6 @@ nsComboboxControlFrame::HandleEvent(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsComboboxControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsComboboxControlFrame::SetProperty(nsIPresContext* aPresContext, nsIAtom* aName, const nsAString& aValue)
|
||||
{
|
||||
|
|
|
@ -161,7 +161,6 @@ public:
|
|||
float aPixToTwip,
|
||||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
// nsIFormMouseListener
|
||||
virtual void MouseClicked(nsIPresContext* aPresContext);
|
||||
|
|
|
@ -590,13 +590,6 @@ nsFileControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
|
|||
return 0;
|
||||
}
|
||||
|
||||
nsresult nsFileControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsFileControlFrame::SetProperty(nsIPresContext* aPresContext,
|
||||
nsIAtom* aName,
|
||||
const nsAString& aValue)
|
||||
|
|
|
@ -118,9 +118,6 @@ public:
|
|||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
// from nsIAnonymousContentCreator
|
||||
NS_IMETHOD CreateAnonymousContent(nsIPresContext* aPresContext,
|
||||
nsISupportsArray& aChildList);
|
||||
|
|
|
@ -843,14 +843,6 @@ nsFormControlFrame::GetProperty(nsIAtom* aName, nsAString& aValue)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsFormControlFrame::RequiresWidget(PRBool & aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsFormControlFrame::SetSuggestedSize(nscoord aWidth, nscoord aHeight)
|
||||
{
|
||||
|
|
|
@ -252,17 +252,7 @@ protected:
|
|||
|
||||
virtual ~nsFormControlFrame();
|
||||
|
||||
|
||||
/**
|
||||
* Determine if the control uses a native widget for rendering
|
||||
* @param aRequiresWidget is set to PR_TRUE if it has a native widget, PR_FALSE otherwise.
|
||||
* @returns NS_OK
|
||||
*/
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* Get the size that this frame would occupy without any constraints
|
||||
* @param aPresContext the presentation context
|
||||
* @param aDesiredSize the size desired by this frame, to be set by this method
|
||||
|
|
|
@ -601,13 +601,6 @@ nsHTMLButtonControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContex
|
|||
return 0;
|
||||
}
|
||||
|
||||
nsresult nsHTMLButtonControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsHTMLButtonControlFrame::SetProperty(nsIPresContext* aPresContext,
|
||||
nsIAtom* aName, const nsAString& aValue)
|
||||
{
|
||||
|
|
|
@ -141,9 +141,6 @@ public:
|
|||
}
|
||||
#endif
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
NS_IMETHOD_(PRInt32) GetFormControlType() const;
|
||||
NS_IMETHOD GetName(nsAString* aName);
|
||||
NS_IMETHOD GetValue(nsAString* aName);
|
||||
|
|
|
@ -48,8 +48,8 @@ class nsIAtom;
|
|||
|
||||
// IID for the nsIFormControlFrame class
|
||||
#define NS_IFORMCONTROLFRAME_IID \
|
||||
{ 0x38eb3980, 0x4d99, 0x11d2, \
|
||||
{ 0x80, 0x3f, 0x0, 0x60, 0x8, 0x15, 0xa7, 0x91 } }
|
||||
{ 0xf1911a34, 0xcdf7, 0x4f10, \
|
||||
{ 0xbc, 0x2a, 0x77, 0x1f, 0x68, 0xce, 0xbc, 0x54 } }
|
||||
|
||||
/**
|
||||
* nsIFormControlFrame is the common interface for frames of form controls. It
|
||||
|
@ -82,23 +82,6 @@ public:
|
|||
|
||||
NS_IMETHOD SetSuggestedSize(nscoord aWidth, nscoord aHeight) = 0;
|
||||
|
||||
/**
|
||||
* Determine if the control uses a native widget for rendering
|
||||
* @param aRequiresWidget is set to PR_TRUE if it has a native widget, PR_FALSE otherwise.
|
||||
* @returns NS_OK
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Determine if the control uses a native widget for rendering
|
||||
* @param aRequiresWidget is set to PR_TRUE if it has a native widget, PR_FALSE otherwise.
|
||||
* @returns NS_OK
|
||||
*/
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget) = 0;
|
||||
|
||||
|
||||
|
||||
NS_IMETHOD GetFont(nsIPresContext* aPresContext,
|
||||
const nsFont*& aFont) = 0;
|
||||
/**
|
||||
|
|
|
@ -119,8 +119,6 @@ public:
|
|||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
// nsIFormControlFrame
|
||||
NS_IMETHOD SetProperty(nsIPresContext* aPresContext, nsIAtom* aName, const nsAString& aValue);
|
||||
|
@ -355,13 +353,6 @@ nsImageControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
|
|||
return 0;
|
||||
}
|
||||
|
||||
nsresult nsImageControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsImageControlFrame::SetProperty(nsIPresContext* aPresContext,
|
||||
nsIAtom* aName,
|
||||
const nsAString& aValue)
|
||||
|
|
|
@ -2226,14 +2226,6 @@ nsListControlFrame::IsInDropDownMode() const
|
|||
return((nsnull == mComboboxFrame) ? PR_FALSE : PR_TRUE);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
nsresult
|
||||
nsListControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
NS_IMETHODIMP
|
||||
nsListControlFrame::GetNumberOfOptions(PRInt32* aNumOptions)
|
||||
|
|
|
@ -152,7 +152,6 @@ public:
|
|||
float aPixToTwip,
|
||||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
virtual ScrollbarStyles GetScrollbarStyles() const;
|
||||
|
||||
|
|
|
@ -2126,13 +2126,6 @@ nsTextControlFrame::SetSuggestedSize(nscoord aWidth, nscoord aHeight)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTextControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTextControlFrame::GetFont(nsIPresContext* aPresContext,
|
||||
const nsFont*& aFont)
|
||||
|
|
|
@ -147,7 +147,6 @@ public:
|
|||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;/**/
|
||||
NS_IMETHOD SetSuggestedSize(nscoord aWidth, nscoord aHeight);
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
NS_IMETHOD GetFont(nsIPresContext* aPresContext,
|
||||
const nsFont*& aFont);
|
||||
NS_IMETHOD GetFormContent(nsIContent*& aContent) const;
|
||||
|
|
|
@ -48,8 +48,8 @@ class nsIAtom;
|
|||
|
||||
// IID for the nsIFormControlFrame class
|
||||
#define NS_IFORMCONTROLFRAME_IID \
|
||||
{ 0x38eb3980, 0x4d99, 0x11d2, \
|
||||
{ 0x80, 0x3f, 0x0, 0x60, 0x8, 0x15, 0xa7, 0x91 } }
|
||||
{ 0xf1911a34, 0xcdf7, 0x4f10, \
|
||||
{ 0xbc, 0x2a, 0x77, 0x1f, 0x68, 0xce, 0xbc, 0x54 } }
|
||||
|
||||
/**
|
||||
* nsIFormControlFrame is the common interface for frames of form controls. It
|
||||
|
@ -82,23 +82,6 @@ public:
|
|||
|
||||
NS_IMETHOD SetSuggestedSize(nscoord aWidth, nscoord aHeight) = 0;
|
||||
|
||||
/**
|
||||
* Determine if the control uses a native widget for rendering
|
||||
* @param aRequiresWidget is set to PR_TRUE if it has a native widget, PR_FALSE otherwise.
|
||||
* @returns NS_OK
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Determine if the control uses a native widget for rendering
|
||||
* @param aRequiresWidget is set to PR_TRUE if it has a native widget, PR_FALSE otherwise.
|
||||
* @returns NS_OK
|
||||
*/
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget) = 0;
|
||||
|
||||
|
||||
|
||||
NS_IMETHOD GetFont(nsIPresContext* aPresContext,
|
||||
const nsFont*& aFont) = 0;
|
||||
/**
|
||||
|
|
|
@ -1975,14 +1975,6 @@ nsComboboxControlFrame::HandleEvent(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsComboboxControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsComboboxControlFrame::SetProperty(nsIPresContext* aPresContext, nsIAtom* aName, const nsAString& aValue)
|
||||
{
|
||||
|
|
|
@ -161,7 +161,6 @@ public:
|
|||
float aPixToTwip,
|
||||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
// nsIFormMouseListener
|
||||
virtual void MouseClicked(nsIPresContext* aPresContext);
|
||||
|
|
|
@ -590,13 +590,6 @@ nsFileControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
|
|||
return 0;
|
||||
}
|
||||
|
||||
nsresult nsFileControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsFileControlFrame::SetProperty(nsIPresContext* aPresContext,
|
||||
nsIAtom* aName,
|
||||
const nsAString& aValue)
|
||||
|
|
|
@ -118,9 +118,6 @@ public:
|
|||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
// from nsIAnonymousContentCreator
|
||||
NS_IMETHOD CreateAnonymousContent(nsIPresContext* aPresContext,
|
||||
nsISupportsArray& aChildList);
|
||||
|
|
|
@ -843,14 +843,6 @@ nsFormControlFrame::GetProperty(nsIAtom* aName, nsAString& aValue)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsFormControlFrame::RequiresWidget(PRBool & aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsFormControlFrame::SetSuggestedSize(nscoord aWidth, nscoord aHeight)
|
||||
{
|
||||
|
|
|
@ -252,17 +252,7 @@ protected:
|
|||
|
||||
virtual ~nsFormControlFrame();
|
||||
|
||||
|
||||
/**
|
||||
* Determine if the control uses a native widget for rendering
|
||||
* @param aRequiresWidget is set to PR_TRUE if it has a native widget, PR_FALSE otherwise.
|
||||
* @returns NS_OK
|
||||
*/
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* Get the size that this frame would occupy without any constraints
|
||||
* @param aPresContext the presentation context
|
||||
* @param aDesiredSize the size desired by this frame, to be set by this method
|
||||
|
|
|
@ -601,13 +601,6 @@ nsHTMLButtonControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContex
|
|||
return 0;
|
||||
}
|
||||
|
||||
nsresult nsHTMLButtonControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsHTMLButtonControlFrame::SetProperty(nsIPresContext* aPresContext,
|
||||
nsIAtom* aName, const nsAString& aValue)
|
||||
{
|
||||
|
|
|
@ -141,9 +141,6 @@ public:
|
|||
}
|
||||
#endif
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
NS_IMETHOD_(PRInt32) GetFormControlType() const;
|
||||
NS_IMETHOD GetName(nsAString* aName);
|
||||
NS_IMETHOD GetValue(nsAString* aName);
|
||||
|
|
|
@ -119,8 +119,6 @@ public:
|
|||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
|
||||
// nsIFormControlFrame
|
||||
NS_IMETHOD SetProperty(nsIPresContext* aPresContext, nsIAtom* aName, const nsAString& aValue);
|
||||
|
@ -355,13 +353,6 @@ nsImageControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
|
|||
return 0;
|
||||
}
|
||||
|
||||
nsresult nsImageControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsImageControlFrame::SetProperty(nsIPresContext* aPresContext,
|
||||
nsIAtom* aName,
|
||||
const nsAString& aValue)
|
||||
|
|
|
@ -2226,14 +2226,6 @@ nsListControlFrame::IsInDropDownMode() const
|
|||
return((nsnull == mComboboxFrame) ? PR_FALSE : PR_TRUE);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
nsresult
|
||||
nsListControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
NS_IMETHODIMP
|
||||
nsListControlFrame::GetNumberOfOptions(PRInt32* aNumOptions)
|
||||
|
|
|
@ -152,7 +152,6 @@ public:
|
|||
float aPixToTwip,
|
||||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
|
||||
virtual ScrollbarStyles GetScrollbarStyles() const;
|
||||
|
||||
|
|
|
@ -2126,13 +2126,6 @@ nsTextControlFrame::SetSuggestedSize(nscoord aWidth, nscoord aHeight)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTextControlFrame::RequiresWidget(PRBool& aRequiresWidget)
|
||||
{
|
||||
aRequiresWidget = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTextControlFrame::GetFont(nsIPresContext* aPresContext,
|
||||
const nsFont*& aFont)
|
||||
|
|
|
@ -147,7 +147,6 @@ public:
|
|||
nscoord aInnerWidth,
|
||||
nscoord aCharWidth) const;/**/
|
||||
NS_IMETHOD SetSuggestedSize(nscoord aWidth, nscoord aHeight);
|
||||
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
||||
NS_IMETHOD GetFont(nsIPresContext* aPresContext,
|
||||
const nsFont*& aFont);
|
||||
NS_IMETHOD GetFormContent(nsIContent*& aContent) const;
|
||||
|
|
Загрузка…
Ссылка в новой задаче