Commit Graph
47 Commits
Author SHA1 Message Date
rods@netscape.com cbc69ed685 removing extra box sizing code that is not needed.
computed border and padding is always added for Standard and only for explicit w/h for NavQuirks.
r=dcone bug=18448
1999-11-18 15:15:07 +00:00
rods@netscape.com 55e309661a temporarily adding box sizing utility methods to help forms calculate their size
appropriately for box sizing.
r=kmcllsuk, bug 18448
1999-11-15 15:16:28 +00:00
dmose@mozilla.org 796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
troy@netscape.com b8ef6465be Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
rods@netscape.com ddf6c35d3d Added macro to help in figuring Nav Quirks default size for all controls r=kmcclusk 1999-10-07 21:04:52 +00:00
rods@netscape.com ec0a428c96 Changed getVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object 1999-09-30 11:30:04 +00:00
pollmann@netscape.com 9e36fdb2c2 Bug 3256: Add ScrollIntoView() method to form frame objects. 1999-08-21 00:09:24 +00:00
pierre@netscape.com 9e5067f4cd breaking up gfx & native widgets 1999-08-06 05:11:39 +00:00
beard@netscape.com 84d2cd153a Fixing bustage 1999-07-14 23:23:47 +00:00
kmcclusk@netscape.com 0bdaefde4e fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-14 22:00:24 +00:00
pollmann@netscape.com 78d1c791e9 Bug 3322: NS_CONTROL_CHANGE events call ControlChanged on the form frame. 1999-05-28 01:05:19 +00:00
kmcclusk@netscape.com 73485522a4 gfx vs native widget rendering can now be specified in the viewer at run-time.
Added methods to GetWidgetRenderingMode and SetWidgetRenderingMode in nsPresContext
Removed NS_GFX_RENDER_FORM_ELEMENTS define, now it uses the GetWidgetRenderingMode
method on the rendering context.
Resurrected Rod's listbox frame-based widget code.
Added -moz-option-selected pseudo attribute to control the appearance of selected items for the listbox frame-based widget.
Added a style rule with attribute selector for -moz-option-selected to the ua.css style sheet.
Modifed nsView::SetVFlags to do a bitwise or instead of bitwise and to set flags.
Modified nsView::HandleEvent to compare mVFlags with NS_VIEW_FLAG_DONT_CHECK_CHILDREN
1999-03-02 22:43:26 +00:00
karnaze@netscape.com 06716b96b2 better sizing of form controls, especially percentage based sizes and max element sizes 1999-02-23 03:48:01 +00:00
kmcclusk@netscape.com 51076c2025 Fixed call to ProbePseudoStyleContext in nsButtonControlFrame so it will compile
when NS_GFX_RENDER_FORM_ELEMENTS is defined.
Added checks to nsFileControlFrame::Reflow to make sure the pseudo styles actually
could be loaded. If they can't be loaded it uses the file upload elements style.
Changed file-buttonstyle to file-button and file-textstyle to file-text in ua.css
1999-02-18 22:07:23 +00:00
kmcclusk@netscape.com d7eefcc655 Fixed border rendering during printing for Select and text, and text areas.
Implemented SetProperty/GetProperty methods for FileControlFrame
Added nsGenericHTMLElement::GetPrimaryFrame check for nsnull for doc return type.
nsHTMLInputElement.cpp replace NS_OK == with  NS_SUCCEEDED in GetValue and SetValue
Added GetName and GetValue utility methods to nsFormControlHelper
modified nsButtonControlFrame::PaintButton to take the label to paint as an extra parameter.
This allows it to be callable from the nsFileControlFrame code to render the button.
1999-02-11 01:13:28 +00:00
kmcclusk@netscape.com 5690940345 Undef'ed NS_GFX_RENDER_FORM_ELEMENTS 1999-02-09 18:31:41 +00:00
kmcclusk@netscape.com 2ce547fada Added support to gfx-render radio buttons. Both checkboxes and radio buttons
now use CSS style to get colors for rendering. Checkboxes also use the CSS border rendering
code. Added New utility methods to nsFormControlFrame to PaintCircular backgrounds and
borders. Set compiler directive to gfx-render radiobuttons and checkboxes both for printing
and on-screen display.
1999-02-09 18:25:40 +00:00
kmcclusk@netscape.com be13823436 undefined NS_GFX_RENDER_FORM_ELEMENTS 1999-02-05 22:22:40 +00:00
kmcclusk@netscape.com 266ae7f3f5 Adjusted checkbox gfx-rendering code to make better looking checkboxes
Created nsFormControlHelper::GetBool and nsFormControlHelper::GetBoolString
utility methods for converting strings into booleans and vice versa.
Modified nsCheckboxControlFrame, nsRadioControlFrame, and nsSelectControlFrame
to use these helpers.
1999-02-05 22:15:35 +00:00
kmcclusk@netscape.com 0ff21f021b Disabled gfx-rendering of form controls. 1999-02-05 19:51:27 +00:00
kmcclusk@netscape.com a8f5dcbf07 Added code to gfx-render checkboxes using CSS style.
Removed commented out code in nsFormControlFrame and nsFormControlHelper
1999-02-05 19:48:18 +00:00
kmcclusk@netscape.com 306d1a62b6 Renamed GetSize(PRInt32* aSize) to GetSizeFromContent to remove conflict with
nsFrame GetSize(nsSize& aSize).
Added check for null mWidget in nsFormControlFrame::HandleEvent
1999-02-03 22:56:50 +00:00
kmcclusk@netscape.com 535e64a9cb Moved ForceDrawFrame from nsComboboxControlFrame to nsFormControlHelper
Removed commented out code in nsFormControlHelper.h.
Modified nsCheckboxControlFrame and nsRadioControlFrame to use ForceDrawFrame
when gfx-rendered.
1999-02-03 18:55:37 +00:00
kmcclusk@netscape.com 6a2362f4f6 Added support to allow form elements to be either GFX-rendered or use widgets.
Work in progress for getting check boxes and radio buttons gfx-rendered.
1999-02-03 17:25:25 +00:00
kmcclusk@netscape.com 29dd95ad3e Added SetProperty/GetProperty methods to nsIFormControlFrame. Added stub
implementations for all classes that derive from nsIFormControlFrame
1999-01-25 22:16:27 +00:00
harishd@netscape.com c5cbe9780d StyleContext passed onto PaintArrow() 1999-01-22 22:34:28 +00:00
rods@netscape.com 8ced71d9bf Factored out code for helper functions for determining size and for rendering 1999-01-22 15:32:57 +00:00
kmcclusk@netscape.com 6ff352794c Defaultchecked attribute is set to match the checked attribute just after
the radio button or checkbox element is created. Checkboxes and Radio buttons
maintain their current state using the checked attribute stored in the
content model. They no longer use the nsIWidget to maintain their current setting.
Checkboxes and Radio buttons now print correctly. (i.e checked/unchecked state matches the
screen.)
1999-01-06 00:02:27 +00:00
kipp@netscape.com 1e10a83138 Revised frame Paint API 1998-12-18 15:54:23 +00:00
kmcclusk@netscape.com 3c1075b74e Moved most of the printer paint code to nsFormControlFrame. Added
autodoc compatible comments.
1998-12-16 18:12:55 +00:00
rods@netscape.com b15b76d34b Added painting methods for printing 1998-12-15 19:03:36 +00:00
kmcclusk@netscape.com dcb505bb06 Removed temporary ReflowWithNoWidget method from nsFormControlFrame.
Reflow without a widget is now handled by the standard Reflow method.
1998-12-10 18:47:02 +00:00
kmcclusk@netscape.com 5c4b046bf4 Added code to GFX-render checkbox's under Windows when printing. 1998-12-04 18:33:34 +00:00
troy@netscape.com e602e25924 Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
joki@netscape.com 249a270b84 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)
1998-11-18 05:25:26 +00:00
troy@netscape.com 7d57a590c9 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list
1998-11-10 06:05:32 +00:00
karnaze@netscape.com 3c901a8811 form control content attribute changes (not all) reflected in layout; fixed scrolling on <iframe>, <frame>;
added nsImageControlFrame to handle <input type=image>.
1998-11-09 23:30:16 +00:00
karnaze@netscape.com 800afa5432 nsIFormControlFrames initiate insertion into nsFormFrame's list;
turned off url encoding of '.' and '_" to match Nav
fixed bug where non clicked buttons submitted data;
fixed bug where <select>s with initial values were not submitting that value;
1998-10-30 18:05:29 +00:00
karnaze@netscape.com fa55ae1d49 implemented <LABEL>; document maintains list of forms as created; form element properly releases form controls. 1998-10-22 23:00:37 +00:00
karnaze@netscape.com b2086931d9 generalized PostCreateWidget; better combo box rendering 1998-10-14 23:01:44 +00:00
karnaze@netscape.com ffb876f867 fieldset, legend support. fixed bug #987 1998-10-08 04:38:41 +00:00
troy@netscape.com ee0a3c543f Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
michaelp@netscape.com 1512e93ea2 modified for new fontmetrics/renderingcontext. 1998-10-02 01:12:39 +00:00
troy@netscape.com 942c471f56 Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface
1998-10-01 04:46:11 +00:00
karnaze@netscape.com bcd6d1bb45 bugs 642, 643; also removed unused files. 1998-09-28 21:32:24 +00:00
kipp@netscape.com 4dc6507c31 Fixed up includes to not depend on old content model classes 1998-09-24 21:37:45 +00:00
karnaze@netscape.com 7b63e3793e Converted forms to use the new content model classes and better separate content from layout. 1998-09-23 17:16:51 +00:00