Bug 1401706: Remove unused macro. r?bholley
MozReview-Commit-ID: EsvdnJkapgP
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
--- a/layout/forms/nsTextControlFrame.h
+++ b/layout/forms/nsTextControlFrame.h
@@ -198,38 +198,31 @@ public: //for methods who access nsTextC
mozilla::dom::Element* GetPreviewNode() const {
return mPreviewDiv;
}
// called by the focus listener
nsresult MaybeBeginSecureKeyboardInput();
void MaybeEndSecureKeyboardInput();
-#define DEFINE_TEXTCTRL_FORWARDER(type, name) \
- type name() { \
- nsCOMPtr<nsITextControlElement> txtCtrl = do_QueryInterface(GetContent()); \
- NS_ASSERTION(txtCtrl, "Content not a text control element"); \
- return txtCtrl->name(); \
- }
#define DEFINE_TEXTCTRL_CONST_FORWARDER(type, name) \
type name() const { \
nsCOMPtr<nsITextControlElement> txtCtrl = do_QueryInterface(GetContent()); \
NS_ASSERTION(txtCtrl, "Content not a text control element"); \
return txtCtrl->name(); \
}
DEFINE_TEXTCTRL_CONST_FORWARDER(bool, IsSingleLineTextControl)
DEFINE_TEXTCTRL_CONST_FORWARDER(bool, IsTextArea)
DEFINE_TEXTCTRL_CONST_FORWARDER(bool, IsPasswordTextControl)
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
protected:
class EditorInitializer;
friend class EditorInitializer;
friend class nsTextEditorState; // needs access to UpdateValueDisplay
// Temp reference to scriptrunner
NS_DECLARE_FRAME_PROPERTY_WITH_DTOR(TextControlInitializer,