152 Commits

Author SHA1 Message Date
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
evaughan%netscape.com
0615e95ff7 1) Implemented regular button and html4 button with a button renderer.
2) Fixed ProgressMeter to update correctly when attributes change
3) Fixed sample8.html so that it does not over ride the borders of the HTML4 button this
   messed up the active, hover, and disabled states.


git-svn-id: svn://10.0.0.236/trunk@23070 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-06 19:43:13 +00:00
troy%netscape.com
5bd0174c47 Eliminated some code that's no longer needed now that the info is in the
HTML reflow state


git-svn-id: svn://10.0.0.236/trunk@23029 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-06 01:48:28 +00:00
kipp%netscape.com
9d77708387 Partial fix to bug #3094
git-svn-id: svn://10.0.0.236/trunk@22901 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 19:23:24 +00:00
kipp%netscape.com
e24dd0c2bf Removed dead include
git-svn-id: svn://10.0.0.236/trunk@22900 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 19:23:09 +00:00
kipp%netscape.com
2095143fa1 Removed ref to dead nsFrameReflowState
git-svn-id: svn://10.0.0.236/trunk@22885 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 15:22:03 +00:00
kipp%netscape.com
b4d19704fd use new nsHTMLReflowState ctors
git-svn-id: svn://10.0.0.236/trunk@22833 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 04:19:09 +00:00
evaughan%netscape.com
c0c44744db Fixed mac event bug.
Fixed alignment bug.


git-svn-id: svn://10.0.0.236/trunk@22689 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 04:04:48 +00:00
pollmann%netscape.com
6385ee828c Handle readonly changes for TextAreas as well as Text Inputs.
git-svn-id: svn://10.0.0.236/trunk@22682 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 03:06:36 +00:00
kmcclusk%netscape.com
4bd141876c 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


git-svn-id: svn://10.0.0.236/trunk@22614 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 22:43:26 +00:00
joki%netscape.com
e62bbe65fe Adding new tab handling and focus support.
git-svn-id: svn://10.0.0.236/trunk@22599 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 19:19:24 +00:00
brade%netscape.com
dc6b22194c add static to LegendHack() to reduce compiler warnings on Macintosh
git-svn-id: svn://10.0.0.236/trunk@22555 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 15:17:35 +00:00
brade%netscape.com
aeb3fcb6d7 add static to reduce compiler warnings on Macintosh
git-svn-id: svn://10.0.0.236/trunk@22554 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 15:17:14 +00:00
brade%netscape.com
90c1429745 reduce Macintosh compiler warnings by making function static
git-svn-id: svn://10.0.0.236/trunk@22553 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 15:15:46 +00:00
evaughan%netscape.com
e361d199bf Made the image accessible from CSS via list-style-image.
git-svn-id: svn://10.0.0.236/trunk@22532 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 05:00:51 +00:00
evaughan%netscape.com
a29ac956d2 Fixed button to respond to the list-style-image property on CSS
git-svn-id: svn://10.0.0.236/trunk@22490 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 01:25:33 +00:00
karnaze%netscape.com
975ac58a63 correctly set max element size on checkbox, radio. Other cleanup.
git-svn-id: svn://10.0.0.236/trunk@22306 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-27 03:59:19 +00:00
pollmann%netscape.com
9c4f03aa39 Enable dynamic changing of the readonly attribute.
Works on Linux now.  Win will come on-line later today.


git-svn-id: svn://10.0.0.236/trunk@22207 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 20:01:48 +00:00
evaughan%netscape.com
a39632b9af Removed state info from button renderer.
git-svn-id: svn://10.0.0.236/trunk@22090 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 08:48:24 +00:00
evaughan%netscape.com
e84b411850 Fixed up titled button so hover, focus, active, states work.
git-svn-id: svn://10.0.0.236/trunk@22073 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 06:41:10 +00:00
troy%netscape.com
f293c578fd Changed nsIFrame::Init() to take an additional parameter
git-svn-id: svn://10.0.0.236/trunk@21843 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 03:27:57 +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
mcafee%netscape.com
069fd4d3db Adding license; added do_QueryInterface() wrappers for nsCOMPtr stuff (Solaris)
git-svn-id: svn://10.0.0.236/trunk@21397 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-20 06:05:15 +00:00
evaughan%netscape.com
9ae8b8c3df Added a new XUL TitledButtonFrame
git-svn-id: svn://10.0.0.236/trunk@21318 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-19 18:23:02 +00:00
brade%netscape.com
6805ba51ec add prototype to reduce warnings on Macintosh compiler
git-svn-id: svn://10.0.0.236/trunk@21310 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-19 16:13:47 +00:00
kmcclusk%netscape.com
92c173e493 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


git-svn-id: svn://10.0.0.236/trunk@21195 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 22:07:23 +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
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
evaughan%netscape.com
e0f9f5f8e2 Made the HTML input button gfx rendered and in the netscape look and feel. Minus rounded borders
that CSS doesn't currently support.


git-svn-id: svn://10.0.0.236/trunk@20521 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:20:55 +00:00
rods%netscape.com
616d38e01a Commented out the rollover code that sets the class to a pseudo-class
git-svn-id: svn://10.0.0.236/trunk@20432 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:36:40 +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
troy%netscape.com
bd78450e96 Changed GetNextSibling() to use a pointer argument instead of a reference
git-svn-id: svn://10.0.0.236/trunk@20223 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 06:13:38 +00:00
troy%netscape.com
339afcce8a Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references


git-svn-id: svn://10.0.0.236/trunk@20222 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 05:38:18 +00:00
troy%netscape.com
dbedf1803d Changed GetFrameState() and GetFrameType() to use pointer arguments instead of
references


git-svn-id: svn://10.0.0.236/trunk@20215 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:17:06 +00:00
troy%netscape.com
3635a7c72c Changed GetAdditionalChildListName() and FirstChild() to use ** instead
of *&


git-svn-id: svn://10.0.0.236/trunk@20212 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 02:25:01 +00:00
troy%netscape.com
8934624982 Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters


git-svn-id: svn://10.0.0.236/trunk@20199 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:42:56 +00:00
kmcclusk%netscape.com
35f21942b9 Undef'ed NS_GFX_RENDER_FORM_ELEMENTS
git-svn-id: svn://10.0.0.236/trunk@20148 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:31:41 +00:00
kmcclusk%netscape.com
c5a5921a54 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.


git-svn-id: svn://10.0.0.236/trunk@20146 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:25:40 +00:00
kmcclusk%netscape.com
cb1e2e6d1b undefined NS_GFX_RENDER_FORM_ELEMENTS
git-svn-id: svn://10.0.0.236/trunk@19880 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:22:40 +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
kmcclusk%netscape.com
0a666c164e Disabled gfx-rendering of form controls.
git-svn-id: svn://10.0.0.236/trunk@19867 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 19:51:27 +00:00
kmcclusk%netscape.com
6a11fc957f Added code to gfx-render checkboxes using CSS style.
Removed commented out code in nsFormControlFrame and nsFormControlHelper


git-svn-id: svn://10.0.0.236/trunk@19866 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 19:48:18 +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
kmcclusk%netscape.com
15091c910a Moved ForceDrawFrame from nsComboboxControlFrame to nsFormControlHelper
Removed commented out code in nsFormControlHelper.h.
Modified nsCheckboxControlFrame and nsRadioControlFrame to use ForceDrawFrame
when gfx-rendered.


git-svn-id: svn://10.0.0.236/trunk@19519 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:55:37 +00:00
kmcclusk%netscape.com
8614dc57ef 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.


git-svn-id: svn://10.0.0.236/trunk@19465 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:25:25 +00:00
kmcclusk%netscape.com
ca814679f8 TextAreas now initialize their content area using default text specified in
the HTML File.


git-svn-id: svn://10.0.0.236/trunk@19231 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:49:21 +00:00
kmcclusk%netscape.com
1d86b393e9 Modified nsTextControlFrame::Paint to correctly paint the contents of a
multi-line text area.


git-svn-id: svn://10.0.0.236/trunk@19223 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:09:06 +00:00