Bug 1317168 part 1 - nsTextControlFrame::CalcIntrinsicSize is infallible so make it return the size result rather than NS_OK. Also, make it const. r=dholbert
This commit is contained in:
@@ -188,9 +188,9 @@ public: //for methods who access nsTextControlFrame directly
|
||||
DEFINE_TEXTCTRL_CONST_FORWARDER(bool, IsTextArea)
|
||||
DEFINE_TEXTCTRL_CONST_FORWARDER(bool, IsPlainTextControl)
|
||||
DEFINE_TEXTCTRL_CONST_FORWARDER(bool, IsPasswordTextControl)
|
||||
DEFINE_TEXTCTRL_FORWARDER(int32_t, GetCols)
|
||||
DEFINE_TEXTCTRL_FORWARDER(int32_t, GetWrapCols)
|
||||
DEFINE_TEXTCTRL_FORWARDER(int32_t, GetRows)
|
||||
DEFINE_TEXTCTRL_CONST_FORWARDER(int32_t, GetCols)
|
||||
DEFINE_TEXTCTRL_CONST_FORWARDER(int32_t, GetWrapCols)
|
||||
DEFINE_TEXTCTRL_CONST_FORWARDER(int32_t, GetRows)
|
||||
|
||||
#undef DEFINE_TEXTCTRL_CONST_FORWARDER
|
||||
#undef DEFINE_TEXTCTRL_FORWARDER
|
||||
@@ -274,10 +274,9 @@ protected:
|
||||
// Compute our intrinsic size. This does not include any borders, paddings,
|
||||
// etc. Just the size of our actual area for the text (and the scrollbars,
|
||||
// for <textarea>).
|
||||
nsresult CalcIntrinsicSize(nsRenderingContext* aRenderingContext,
|
||||
mozilla::WritingMode aWM,
|
||||
mozilla::LogicalSize& aIntrinsicSize,
|
||||
float aFontSizeInflation);
|
||||
mozilla::LogicalSize CalcIntrinsicSize(nsRenderingContext* aRenderingContext,
|
||||
mozilla::WritingMode aWM,
|
||||
float aFontSizeInflation) const;
|
||||
|
||||
nsresult ScrollSelectionIntoView() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user