зеркало из https://github.com/mozilla/gecko-dev.git
Added the other GetDesiredSize call overriding the base class call, and making it
the existing GetDesiredSize with the last param dummyed out. This makes all the sizing work correctly with the change I put in in nsFormControlFrame
This commit is contained in:
Родитель
833b8c0152
Коммит
22813275bf
|
@ -195,6 +195,14 @@ nsTextControlFrame::GetCID()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsTextControlFrame::GetDesiredSize(nsIPresContext* aPresContext,
|
||||
const nsHTMLReflowState& aReflowState,
|
||||
nsHTMLReflowMetrics& aDesiredLayoutSize)
|
||||
{
|
||||
nsSize widgetSize;
|
||||
GetDesiredSize(aPresContext, aReflowState, aDesiredLayoutSize, widgetSize);
|
||||
}
|
||||
|
||||
#define DEFAULT_PIXEL_WIDTH 20
|
||||
void
|
||||
|
|
|
@ -56,6 +56,10 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
virtual void GetDesiredSize(nsIPresContext* aPresContext,
|
||||
const nsHTMLReflowState& aReflowState,
|
||||
nsHTMLReflowMetrics& aDesiredLayoutSize);
|
||||
|
||||
virtual void GetDesiredSize(nsIPresContext* aPresContext,
|
||||
const nsHTMLReflowState& aReflowState,
|
||||
nsHTMLReflowMetrics& aDesiredLayoutSize,
|
||||
|
|
|
@ -195,6 +195,14 @@ nsTextControlFrame::GetCID()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsTextControlFrame::GetDesiredSize(nsIPresContext* aPresContext,
|
||||
const nsHTMLReflowState& aReflowState,
|
||||
nsHTMLReflowMetrics& aDesiredLayoutSize)
|
||||
{
|
||||
nsSize widgetSize;
|
||||
GetDesiredSize(aPresContext, aReflowState, aDesiredLayoutSize, widgetSize);
|
||||
}
|
||||
|
||||
#define DEFAULT_PIXEL_WIDTH 20
|
||||
void
|
||||
|
|
|
@ -56,6 +56,10 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
virtual void GetDesiredSize(nsIPresContext* aPresContext,
|
||||
const nsHTMLReflowState& aReflowState,
|
||||
nsHTMLReflowMetrics& aDesiredLayoutSize);
|
||||
|
||||
virtual void GetDesiredSize(nsIPresContext* aPresContext,
|
||||
const nsHTMLReflowState& aReflowState,
|
||||
nsHTMLReflowMetrics& aDesiredLayoutSize,
|
||||
|
|
Загрузка…
Ссылка в новой задаче