зеркало из https://github.com/mozilla/gecko-dev.git
Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
This commit is contained in:
Родитель
40bda71f57
Коммит
f78ab7229e
|
@ -96,7 +96,8 @@ public:
|
|||
virtual PRBool GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
|
||||
nsString* aValues, nsString* aNames);
|
||||
virtual void SetFormFrame(nsFormFrame* aFrame);
|
||||
virtual nscoord GetVerticalInsidePadding(float aPixToTwip,
|
||||
virtual nscoord GetVerticalInsidePadding(nsIPresContext& aPresContext,
|
||||
float aPixToTwip,
|
||||
nscoord aInnerHeight) const;
|
||||
virtual nscoord GetHorizontalInsidePadding(nsIPresContext& aPresContext,
|
||||
float aPixToTwip,
|
||||
|
@ -145,7 +146,7 @@ public:
|
|||
//nsIDOMKeyListener
|
||||
virtual nsresult KeyDown(nsIDOMEvent* aKeyEvent);
|
||||
virtual nsresult KeyUp(nsIDOMEvent* aKeyEvent) { return NS_OK; }
|
||||
virtual nsresult KeyPress(nsIDOMEvent* aKeyEvent) { return NS_OK; }
|
||||
virtual nsresult KeyPress(nsIDOMEvent* aKeyEvent);
|
||||
|
||||
// Static Methods
|
||||
static nsIDOMHTMLSelectElement* GetSelect(nsIContent * aContent);
|
||||
|
|
|
@ -96,7 +96,8 @@ public:
|
|||
virtual PRBool GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
|
||||
nsString* aValues, nsString* aNames);
|
||||
virtual void SetFormFrame(nsFormFrame* aFrame);
|
||||
virtual nscoord GetVerticalInsidePadding(float aPixToTwip,
|
||||
virtual nscoord GetVerticalInsidePadding(nsIPresContext& aPresContext,
|
||||
float aPixToTwip,
|
||||
nscoord aInnerHeight) const;
|
||||
virtual nscoord GetHorizontalInsidePadding(nsIPresContext& aPresContext,
|
||||
float aPixToTwip,
|
||||
|
@ -145,7 +146,7 @@ public:
|
|||
//nsIDOMKeyListener
|
||||
virtual nsresult KeyDown(nsIDOMEvent* aKeyEvent);
|
||||
virtual nsresult KeyUp(nsIDOMEvent* aKeyEvent) { return NS_OK; }
|
||||
virtual nsresult KeyPress(nsIDOMEvent* aKeyEvent) { return NS_OK; }
|
||||
virtual nsresult KeyPress(nsIDOMEvent* aKeyEvent);
|
||||
|
||||
// Static Methods
|
||||
static nsIDOMHTMLSelectElement* GetSelect(nsIContent * aContent);
|
||||
|
|
Загрузка…
Ссылка в новой задаче