54 Commits

Author SHA1 Message Date
rods%netscape.com
7ff8fc122b Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
and it now uses the cached L&F obj


git-svn-id: svn://10.0.0.236/trunk@49424 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:33:33 +00:00
pollmann%netscape.com
931f5fdc23 Bug 9847: Check for null returned from new.
git-svn-id: svn://10.0.0.236/trunk@39343 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 19:32:22 +00:00
pollmann%netscape.com
2737748d7f Bug 8227 and warning cleanups.
git-svn-id: svn://10.0.0.236/trunk@37482 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 22:01:55 +00:00
pollmann%netscape.com
96795774f2 Bug 3322: nsSelectControlFrames's ControlChanged does what MouseClicked used to - checks for selection changes and sends out onChange DOM events.
git-svn-id: svn://10.0.0.236/trunk@33072 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 01:06:42 +00:00
pollmann%netscape.com
a6b8074078 Bug 2999: Option values of "" handled correctly now R=vidur A=chofmann
git-svn-id: svn://10.0.0.236/trunk@32431 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 23:25:34 +00:00
vidur%netscape.com
ea99b5ffb8 Fix for bug 6843. Option.selected returns the correct value for non-multi-selects.
git-svn-id: svn://10.0.0.236/trunk@32430 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 23:24:06 +00:00
pollmann%netscape.com
3573f16191 Bug 3187: Add widget update on option creation and destruction. (3 of 3)
git-svn-id: svn://10.0.0.236/trunk@32276 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 04:37:41 +00:00
pollmann%netscape.com
816fa2970a Bug 3322: onChange won't be sent when the combo box is first clicked now. (2 of x)
git-svn-id: svn://10.0.0.236/trunk@32247 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:37:23 +00:00
kipp%netscape.com
de60169b67 Reworked frame factory methods; fixed bug 4519
git-svn-id: svn://10.0.0.236/trunk@31154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:03:29 +00:00
hyatt%netscape.com
8f52fb367c Fix for bug #5937.
git-svn-id: svn://10.0.0.236/trunk@30399 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-05 07:26:03 +00:00
pierre%netscape.com
f825a81a8c #3928 "cosmetic problems with popups and lists"
git-svn-id: svn://10.0.0.236/trunk@29398 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 05:33:36 +00:00
kmcclusk%netscape.com
73c719c037 fix for bug #3162, Removed #ifndef MAC in the nsSelectControlFrame::GetProperty.
The Mac now supports native combo box widgets so it no longer will crash in GetProperty
with a null mWidget field.
Modified nsComboboxControlFrame::HandleEvents. MouseExit from the combox rect now
initiates mouse capture on the drop-down list.
Modified nsCSSFrameConstructor::ConstructSelectFrame to initialize the drop-down list
for frame-based comboboxes as hidden.
Added a nsIListControlFrame::CaptureMouseEvents method.
Implemented nsListControlFrame::CaptureMouseEvents.


git-svn-id: svn://10.0.0.236/trunk@27879 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 19:28:12 +00:00
pollmann%netscape.com
0562064d12 Bugs 4714 4533 4387. A: Chofmann R: Harishd
git-svn-id: svn://10.0.0.236/trunk@26846 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-08 23:47:49 +00:00
joki%netscape.com
58d63da788 Updating internal implementations to new DOM2 api syntax, capture/bubble functionality, new EventStateManager stuff (focus improvements)
git-svn-id: svn://10.0.0.236/trunk@25418 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-28 22:22:54 +00:00
kipp%netscape.com
9e4c4cb1e3 Whacked paint methods to use new constants
git-svn-id: svn://10.0.0.236/trunk@25154 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 00:39:35 +00:00
troy%netscape.com
25220f507f Patch from Bruce Mitchener that fixes an incorrect use of delete
git-svn-id: svn://10.0.0.236/trunk@23735 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 20:27:54 +00:00
warren%netscape.com
0b33372d99 nsRepository -> nsIComponentManager changes.
git-svn-id: svn://10.0.0.236/trunk@23300 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 09:44:27 +00:00
pollmann%netscape.com
4b77b70cb2 Fix change notifications for combo boxes.
git-svn-id: svn://10.0.0.236/trunk@22514 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 03:19:25 +00:00
karnaze%netscape.com
3955f8e7f3 better sizing of form controls, especially percentage based sizes and max element sizes
git-svn-id: svn://10.0.0.236/trunk@21570 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 03:48:01 +00:00
kmcclusk%netscape.com
e999bd483b 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.


git-svn-id: svn://10.0.0.236/trunk@21055 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 00:13:39 +00:00
kmcclusk%netscape.com
b932514d5e added #ifdef XP_PC in nsSelectControlFrame::GetProperty to fix MAC crash
on www.city.net


git-svn-id: svn://10.0.0.236/trunk@20840 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:24:16 +00:00
kmcclusk%netscape.com
6782e965de Added code to get the selected item from the content model during Paint.
Factored code to paint option elements. Listboxes, single+multiselect and
combo boxes now print their state correctly.


git-svn-id: svn://10.0.0.236/trunk@20803 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:57:44 +00:00
troy%netscape.com
176116b148 Fixed some errors related to switch to using nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20585 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:41:26 +00:00
kipp%netscape.com
9b917419dc COMized nsIPresShell and nsIPresContext
git-svn-id: svn://10.0.0.236/trunk@20570 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:45:58 +00:00
peterl%netscape.com
38427deaa9 changed all html atoms to lower case
git-svn-id: svn://10.0.0.236/trunk@20542 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 06:19:07 +00:00
troy%netscape.com
fcbf19b87f API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor
git-svn-id: svn://10.0.0.236/trunk@20413 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:56:23 +00:00
kmcclusk%netscape.com
4f668b7081 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.


git-svn-id: svn://10.0.0.236/trunk@20325 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:13:28 +00:00
kmcclusk%netscape.com
703c2a790c 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.


git-svn-id: svn://10.0.0.236/trunk@19878 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:15:35 +00:00
pollmann%netscape.com
1b75d96c5b Bug 1190: Typo.
git-svn-id: svn://10.0.0.236/trunk@19717 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:37:03 +00:00
kmcclusk%netscape.com
48eb596de2 Renamed GetSize(PRInt32* aSize) to GetSizeFromContent to remove conflict with
nsFrame GetSize(nsSize& aSize).
Added check for null mWidget in nsFormControlFrame::HandleEvent


git-svn-id: svn://10.0.0.236/trunk@19590 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:56:50 +00:00
pollmann%netscape.com
59abb71e8d Bug 2716, 2792, 1190, 1750: Wired up selected, defaultSelected, and selectedIndex.
git-svn-id: svn://10.0.0.236/trunk@19063 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:02:28 +00:00
michaelp%netscape.com
2b18562cef modified for new DrawString()/GetWidth() APIs.
git-svn-id: svn://10.0.0.236/trunk@18902 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:03:58 +00:00
kmcclusk%netscape.com
509a2f333f Added SetProperty/GetProperty methods to nsIFormControlFrame. Added stub
implementations for all classes that derive from nsIFormControlFrame


git-svn-id: svn://10.0.0.236/trunk@18509 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 22:16:27 +00:00
harishd%netscape.com
d04bba5e7b StyleContext passed onto PaintBorder()/PaintArrow()
git-svn-id: svn://10.0.0.236/trunk@18360 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 22:35:12 +00:00
rods%netscape.com
9b13d22d70 Factored out code for helper functions for determining size and for rendering
git-svn-id: svn://10.0.0.236/trunk@18302 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 15:32:57 +00:00
pollmann%netscape.com
27cc3295b1 Implemented onChange and selectedIndex for the HTMLSelectElement
git-svn-id: svn://10.0.0.236/trunk@16830 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-23 03:02:57 +00:00
rods%netscape.com
7acb8d2cbf Changed constants to use LookAndFeel values.
git-svn-id: svn://10.0.0.236/trunk@16754 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-21 16:52:57 +00:00
pierre%netscape.com
e7b77e958f Fix forms: XP_MAC code was missing in GetHorizontalInsidePadding and GetVerticalInsidePadding
git-svn-id: svn://10.0.0.236/trunk@16732 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-20 13:18:10 +00:00
kipp%netscape.com
eaee82d4b3 Revised frame Paint API
git-svn-id: svn://10.0.0.236/trunk@16666 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-18 15:54:23 +00:00
kmcclusk%netscape.com
538ee8b859 Moved most of the printer paint code to nsFormControlFrame. Added
autodoc compatible comments.


git-svn-id: svn://10.0.0.236/trunk@16522 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:12:55 +00:00
rods%netscape.com
ea9f077c63 Added painting methods for printing
git-svn-id: svn://10.0.0.236/trunk@16450 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 19:03:36 +00:00
troy%netscape.com
01f27b2a31 Added Init() member function to nsIFrame
git-svn-id: svn://10.0.0.236/trunk@15682 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:31:43 +00:00
karnaze%netscape.com
dbdc6ce081 fixed bug 1504 (memory leak of select elements)
git-svn-id: svn://10.0.0.236/trunk@15254 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 18:54:26 +00:00
kipp%netscape.com
b527c7f026 Added DumpRegressionData; revised ListTag; added GetFrameName
git-svn-id: svn://10.0.0.236/trunk@14946 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:22:29 +00:00
karnaze%netscape.com
081ed90d75 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;


git-svn-id: svn://10.0.0.236/trunk@13727 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 18:05:29 +00:00
karnaze%netscape.com
8c2e3a9e4e fixed combo box PostCreateWidget to size properly
git-svn-id: svn://10.0.0.236/trunk@12890 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-15 15:51:31 +00:00
karnaze%netscape.com
712e26cd47 generalized PostCreateWidget; better combo box rendering
git-svn-id: svn://10.0.0.236/trunk@12841 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-14 23:01:44 +00:00
karnaze%netscape.com
fd96ba4fea fixed bug 958, checkboxes wrong background when not checked, select always multiple, text & texarea not reset. html 4 button work in progress.
git-svn-id: svn://10.0.0.236/trunk@12735 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-13 21:31:26 +00:00
karnaze%netscape.com
fbe88e6504 fieldset, legend support. fixed bug #987
git-svn-id: svn://10.0.0.236/trunk@12266 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-08 04:38:41 +00:00
troy%netscape.com
e191c422d9 Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure


git-svn-id: svn://10.0.0.236/trunk@11749 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-02 04:10:00 +00:00