Commit Graph

2029 Commits

Author SHA1 Message Date
evaughan@netscape.com
b330b22643 Added a new XUL TitledButtonFrame 1999-02-19 18:23:02 +00:00
brade@netscape.com
7b9a9ad3ae add prototype to reduce warnings on Macintosh compiler 1999-02-19 16:13:47 +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
aa254ce0cc Added pseudo styles for file input element buttons and text fields to control their
appearance during printing.
Now returns value of file upload element in nsHTMLInputElement::GetValue.
Added :file-textstyle and :file-buttonstyle pseudo style's to ua.css.
Modified nsButtonControlFrame::PaintButton to accept a rectangle describing the
position and size of the button to paint.
Modified nsFileControlFrame::Paint to resolve :file-buttonstyle and :file-textstyle to
paint the file upload's button and text field using settings in ua.css
Added nsFileControlFrame::HasWidget utility method.
Added nsFormControlHelper::GetInputElementValue to get the current value of an input element
from the DOM.
Modified nsTextControlFrame::GetProperty to use nsFormControlHelper::GetInputElementValue
Modified nsTextControlFrame::PaintTextControl to accept a rectangle describing the position
and size of the text control to paint.
Modified nsTextControl::PaintTextControlBackground to include a rectangle describing the
position and size of the text control background to paint.
1999-02-18 00:13:39 +00:00
troy@netscape.com
602de2f255 Fixed some errors related to switch to using nsCOMPtr 1999-02-12 18:41:26 +00:00
kipp@netscape.com
74b2988510 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
peterl@netscape.com
3f01d94bb1 changed all html atoms to lower case 1999-02-12 06:19:07 +00:00
evaughan@netscape.com
0201442b82 Made the HTML input button gfx rendered and in the netscape look and feel. Minus rounded borders
that CSS doesn't currently support.
1999-02-12 05:20:55 +00:00
rods@netscape.com
1dbd9c8ab9 Commented out the rollover code that sets the class to a pseudo-class 1999-02-11 18:36:40 +00:00
troy@netscape.com
f39b9cee08 API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor 1999-02-11 15:56: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
troy@netscape.com
87805c7a92 Changed GetNextSibling() to use a pointer argument instead of a reference 1999-02-10 06:13:38 +00:00
troy@netscape.com
655e2cab93 Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references
1999-02-10 05:38:18 +00:00
troy@netscape.com
18893d3961 Changed GetFrameState() and GetFrameType() to use pointer arguments instead of
references
1999-02-10 04:17:06 +00:00
troy@netscape.com
c63560927c Changed GetAdditionalChildListName() and FirstChild() to use ** instead
of *&
1999-02-10 02:25:01 +00:00
troy@netscape.com
b4f8c0fbbe Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +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
951bc33488 TextAreas now initialize their content area using default text specified in
the HTML File.
1999-02-01 23:49:21 +00:00
kmcclusk@netscape.com
412f346b3e Modified nsTextControlFrame::Paint to correctly paint the contents of a
multi-line text area.
1999-02-01 23:09:06 +00:00
kmcclusk@netscape.com
5f4f3b6a36 Moved GetPrimaryFrame to nsGenericHTMLElement.
Modifed nsHTMLTextAreaElement to go through it's frame to set and get values
1999-02-01 18:44:59 +00:00
troy@netscape.com
ec34143742 Fixed a couple of memory leaks 1999-01-29 05:05:02 +00:00
kmcclusk@netscape.com
59b31aef90 Modified GetText to take extra paramater to indicate whether it should return
the current text value or the initial text value
1999-01-28 21:58:01 +00:00
kmcclusk@netscape.com
79593c4f72 Modified nsHTMLInputElement text fields to go through nsTextControlFrame
for SetValue and GetValue
1999-01-28 18:58:11 +00:00
michaelp@netscape.com
bd06216ab8 modified for new DrawString()/GetWidth() APIs. 1999-01-28 05:03:58 +00:00
rods@netscape.com
250e0bcc7a Added rollover pseudo-class processing for mouse enter and exit 1999-01-27 04:09:12 +00:00
pollmann@netscape.com
55a08f4d11 Bug 1958: Submit x, y coords for unnamed image elements. Submit coords only once. 1999-01-27 00:25:40 +00:00
pollmann@netscape.com
8af55610ea Bug 2279: Don't create widgets for hidden form elements. 1999-01-26 22:11:59 +00:00
rpotts@netscape.com
1b4772b3ed The AttributeChanged(...) method of all form controls now call their base class AttributeChanged() method. Also implemented the disabled attribute in the base class... 1999-01-26 07:57:54 +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
troy@netscape.com
2cd7cad6ab Fixed ReflowTemp() so it's doing a legal incremental reflow, and changed
Reflow() so it does a minimally acceptable job of handling incremental reflow
commands...
1999-01-22 23:10:02 +00:00
harishd@netscape.com
8658a61cda StyleContext passed onto PaintBorder()/PaintArrow() 1999-01-22 22:35:12 +00:00
harishd@netscape.com
c5cbe9780d StyleContext passed onto PaintArrow() 1999-01-22 22:34:28 +00:00
harishd@netscape.com
01d9239773 styleContext is passed onto PaintBorder()/PaintArrow() 1999-01-22 22:31:15 +00:00
kmcclusk@netscape.com
237cf2e0d2 Added missing methods to nsIFormControlFrame.h 1999-01-22 19:10:10 +00:00
kmcclusk@netscape.com
c6db491f57 Added nsIFormControlFrame to the set of files to export 1999-01-22 18:14:23 +00:00
rods@netscape.com
1307761ea3 Ifdef'ed out the Pluggable event code 1999-01-22 15:56:21 +00:00
rods@netscape.com
096fdb770f Initial checkin factored code from nsFormControlFrame 1999-01-22 15:47:33 +00:00
rods@netscape.com
4dab9dc714 initial checkin 1999-01-22 15:41: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
rpotts@netscape.com
7d417f24d8 Added support for setting the DISABLED attrivute via the DOM... 1999-01-21 09:51:28 +00:00
pollmann@netscape.com
9dce3a5488 Bug 2279: Don't create widgets for hidden form elements. 1999-01-21 04:02:37 +00:00
rods@netscape.com
52e54844a4 Initial checkin 1999-01-18 15:14:00 +00:00