GetDesiredSize, GetWidgetSize, mWidgetSize, GetWidgetInitData, SetClickPoint, mLastClickPoint, GetScrollbarWidth, ControlChanged, and EnterPressed are unused; and probably HandleEvent is unneeded. Also, the class declarations can go, and NS_FORMSIZE_NOTSET, and the includes for nsFormControlHelper.h, nsPresContext.h, nsIWidget.h, nsCOMPtr.h. It seems like this stuff just collects.
The three-argument form of GetDesiredSize is used.
Comment on attachment 211939 [details] [diff] [review] Patch yes, yes it does
Oh, a dream comes true, removing the debug stuff from form controls will probably shrink the files by 1/3. http://lxr.mozilla.org/seamonkey/search?string=REFLOW_DEBUG_MSG most of the reflow messages are anyway covered by the frame reflow debug mechanism (http://www.mozilla.org/newlayout/doc/frame_reflow_debug.html)