171 Commits

Author SHA1 Message Date
kmcclusk%netscape.com
7972adcafd bug #5993. Removed references to nsIWidget in form HTML content elements. the form elements
now go through the nsFormControlFrame interface instead. This removes the dependency between
form element content and nsIWidget.


git-svn-id: svn://10.0.0.236/trunk@31518 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 23:45:40 +00:00
evaughan%netscape.com
af52352a73 Fixed form submission.
git-svn-id: svn://10.0.0.236/trunk@31457 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 21:29:57 +00:00
evaughan%netscape.com
6073e2aa13 Fixed pseudoclass hack to actually use active, hover, focus pseudoclasses.
git-svn-id: svn://10.0.0.236/trunk@31365 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 01:35:16 +00:00
evaughan%netscape.com
e56eb59472 Fixed xul boxes to implement nsIBox interface.
git-svn-id: svn://10.0.0.236/trunk@30900 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-09 21:46:24 +00:00
karnaze%netscape.com
b15a37405e bug 4143; bug 2467; removed frame caching in nsFormFrame.
git-svn-id: svn://10.0.0.236/trunk@29306 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 00:06:03 +00:00
karnaze%netscape.com
f7e55661da bug 4141 - space activating a button
git-svn-id: svn://10.0.0.236/trunk@25678 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 06:02:12 +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
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
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
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
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
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
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
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
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
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
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
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
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
pollmann%netscape.com
1e53362e49 Bug 2279: Don't create widgets for hidden form elements.
git-svn-id: svn://10.0.0.236/trunk@18649 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 22:11:59 +00:00
rpotts%netscape.com
8f0d397a2d The AttributeChanged(...) method of all form controls now call their base class AttributeChanged() method. Also implemented the disabled attribute in the base class...
git-svn-id: svn://10.0.0.236/trunk@18597 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 07:57:54 +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
rpotts%netscape.com
f149440910 Added support for setting the DISABLED attrivute via the DOM...
git-svn-id: svn://10.0.0.236/trunk@18163 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 09:51:28 +00:00
pollmann%netscape.com
98d9fcade3 Bug 2279: Don't create widgets for hidden form elements.
git-svn-id: svn://10.0.0.236/trunk@18135 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-21 04:02:37 +00:00
troy%netscape.com
8a00831853 Fix for bug #1998. Now we render the background image over the padding area and not over the border area
git-svn-id: svn://10.0.0.236/trunk@17854 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 18:25:58 +00:00
pollmann%netscape.com
73e3b8a43c Bug 2234: Crash on JS Submit().
git-svn-id: svn://10.0.0.236/trunk@17622 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-12 23:11:26 +00:00
kmcclusk%netscape.com
2a00ad3de1 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.)


git-svn-id: svn://10.0.0.236/trunk@17202 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-06 00:02:27 +00:00
troy%netscape.com
c22f41cbf9 Changed width/height constraints in nsHTMLReflowState struct
git-svn-id: svn://10.0.0.236/trunk@16998 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-30 17:50:00 +00:00
peterl%netscape.com
52a0043631 sync to new attribute api
git-svn-id: svn://10.0.0.236/trunk@16723 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-20 01:21:23 +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
kipp%netscape.com
396fe5cf50 Partial whack at supporting more accurate max-element-size computations
git-svn-id: svn://10.0.0.236/trunk@16589 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 18:55:42 +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
kmcclusk%netscape.com
7c89b4af6b Removed temporary ReflowWithNoWidget method from nsFormControlFrame.
Reflow without a widget is now handled by the standard Reflow method.


git-svn-id: svn://10.0.0.236/trunk@16169 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 18:47:02 +00:00
kmcclusk%netscape.com
4f4f08da7c Changes to actually print checkbox's and radiobuttons under Windows.
No longer need special offset's during printing. nsFormControlFrame now detects
when to gfx render the widgets.


git-svn-id: svn://10.0.0.236/trunk@16153 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:29:13 +00:00
kmcclusk%netscape.com
26d8496fe2 Added Windows printing code for radio buttons.
git-svn-id: svn://10.0.0.236/trunk@15810 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 22:53:45 +00:00
kmcclusk%netscape.com
7f340e3206 Added code to GFX-render checkbox's under Windows when printing.
git-svn-id: svn://10.0.0.236/trunk@15792 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 18:33:34 +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
kipp%netscape.com
c98e60be06 Port to revised pres-context API
git-svn-id: svn://10.0.0.236/trunk@15372 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:14:41 +00:00
joki%netscape.com
765dbfd39b Add click event support for every element and initial keypress event support
git-svn-id: svn://10.0.0.236/trunk@15233 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 07:46:58 +00:00
troy%netscape.com
5b79c87173 Added missing NS_RELEASE() to GetWidget() function
git-svn-id: svn://10.0.0.236/trunk@15156 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 04:41:51 +00:00
joki%netscape.com
f1462f4d55 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)


git-svn-id: svn://10.0.0.236/trunk@14864 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:25:26 +00:00
michaelp%netscape.com
25149e78ea changes for pixel scaling/printing.
git-svn-id: svn://10.0.0.236/trunk@14647 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:52:27 +00:00
karnaze%netscape.com
d94c8fd321 bug 1226 for form control with native widgets. Other controls are still not working.
git-svn-id: svn://10.0.0.236/trunk@14634 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 23:13:42 +00:00
troy%netscape.com
1c0da71da3 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list


git-svn-id: svn://10.0.0.236/trunk@14333 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 06:05:32 +00:00
karnaze%netscape.com
c723661f91 form control content attribute changes (not all) reflected in layout; fixed scrolling on <iframe>, <frame>;
added nsImageControlFrame to handle <input type=image>.


git-svn-id: svn://10.0.0.236/trunk@14312 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 23:30:16 +00:00