Commit Graph

256 Commits

Author SHA1 Message Date
rods@netscape.com
a04891cf4a nsITextContent needed to be included not forwarded. 2000-03-07 16:45:21 +00:00
rods@netscape.com
bf847f8b1b Fixed Combobox and ListBox frame to be more effecient in processing reflows
added Block and text frame for displaying the selected option for the combobox
Fixes Bugs 30463, 28835, 29544
r=buster,kmcclusk a=jar
2000-03-07 15:54:31 +00:00
rods@netscape.com
b9bdc47c8d Backout plan, this check only fixes bug 28628
a=jar
2000-03-03 07:14:58 +00:00
rods@netscape.com
75846e66d1 added include instead of the class decl.
r=waterson
2000-03-03 05:06:03 +00:00
rods@netscape.com
4f3b0027fb modified the reflow method for better handling incremental and for optimization
b=28593, r=buster,kmclusk a=jar
2000-03-03 04:28:59 +00:00
rods@netscape.com
226e0b0cb2 removing unneeded native frames and unneeded frame classes that these derived from
fixing checkbox and radiobutton state restore
fixing right btn click on dropdown
adding in initial work for accesskey
bug 17027,26296,27063,7559; carpool a=leaf; r=kmcclusk
2000-02-09 19:34:39 +00:00
rods@netscape.com
eccb408be9 added the caching of the restore state until the list frame gets reset
removed the positioning of the dropdown at the bottom of reflow
r kmcclusk b=21945,25059
2000-01-31 23:59:55 +00:00
rods@netscape.com
fabeb5c57f using correct usesage pattern for getting and seeting the FrameState
Added in my new reflow code with an ifdef so I can work on it and fix other bugs
fixed the checking of return codes for getHTMLAttr
removed ShouldScrollFrameIntoView, the presshell can now do this.
also commented out the call to Position the Dropdown
r=dcone b=24292
2000-01-28 15:24:49 +00:00
rods@netscape.com
1000cea994 changed signature of GetFont b=905 r=dcone 2000-01-25 15:25:46 +00:00
troy@netscape.com
67f034175a b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
hyatt@netscape.com
4445e32213 Fixes for bugs 17460 and 21656. r=travis 2000-01-14 09:28:54 +00:00
rods@netscape.com
dead74d9d4 The combobox would be scrolled into view if some portion of it is visible.
b 23068 r=attintasi
2000-01-13 23:52:53 +00:00
rods@netscape.com
419fe8e39e Added unconstrainted reflow optimizations
r=kmcclusk,dcone bug=12653
2000-01-09 01:52:17 +00:00
rods@netscape.com
1e161590c3 backed out all changes from today (1/5/2000) 2000-01-05 16:42:47 +00:00
rods@netscape.com
fccf0e4853 Added unconstrainted reflow optimizations
reworked reflow to more accurately calculate its size
r=kmcclusk,dcone bug=12653
2000-01-05 15:46:29 +00:00
rods@netscape.com
bb9b8457e2 Added experimental ifdef;ed but turned for reducing the number of resize reflows,
basically we ignore them and pass back our most recently reflowed size
r=karnaze bug=22063
1999-12-22 19:46:28 +00:00
rods@netscape.com
d76055f1ca temprary fix for combobox dropdowns that jump all around.
changed the way a temp nsSize was being created.
removed all the dom listener interfaces and code (they weren't being used)
r=beard,self a=chofmann bug 19416, 20957, 19300, 20250
1999-12-14 22:22:00 +00:00
rods@netscape.com
042d7bd8ee Added a "flags" variable for combobox creation
also fixed a a small problem with border padding being added in for fixed size comboboxes
r=self,  bug 19382
1999-12-05 20:43:18 +00:00
tbogard@aol.net
617bb737a6 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
rods@netscape.com
170d263512 added bool parm to is DoneAddinContent r=dcone bug 18241 1999-11-19 15:46:20 +00:00
rods@netscape.com
0282f2530c Added MakeSureSomethingIsSelected to the combobox so the ListBox can
call it after it is initialized.
1999-11-16 22:47:23 +00:00
rods@netscape.com
abdc90fba8 Added new method "DoneAddingContent" so the select frame can be told that all the content has been added
Reworked the select code to keep the state as to whether all the content and/or all the frames
have been created and then whether it is initialized
r=self&kmcclusk, bug 17965
1999-11-11 22:13:33 +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
pollmann@netscape.com
38fe763ce7 Removing null code. No bug number. r=nisheeth 1999-11-02 01:50:15 +00:00
troy@netscape.com
bf2283fba6 Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +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
pollmann@netscape.com
39f25e6b1a Bug 15841: Don't default to selecting item 0 of a listbox
Bug 15769: Default select item 0 when adding or removing opt to combo
r=harishd
1999-10-12 08:47:29 +00:00
pollmann@netscape.com
f8fe982e47 Bug 15170: Implement onchange notification for list boxes 1999-10-05 23:43:06 +00:00
rods@netscape.com
912b85ca64 Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
Removed focus listener and ForcedRedraws
1999-09-30 11:36:32 +00:00
rods@netscape.com
db893ab76b Added nsIRollupListener for rolling up the dropdown 1999-09-21 21:20:50 +00:00
pollmann@netscape.com
f191f05069 Bug 13058: (Fixed Solaris bustage by removing Inherited typedef) 1999-09-15 05:31:31 +00:00
pollmann@netscape.com
da0b974d1a Backing things out until I can get Solaris bustage figured out. 1999-09-14 20:42:26 +00:00
pollmann@netscape.com
b44758713a Bug 13058: Implement nsIStatefulFrame for selects. Some memory leak fixes. Plus the usual plethora of bugfixes for native selects 1999-09-14 19:37:45 +00:00
rods@netscape.com
649c81916a cleaned up some code
add method to get the absolute rect of the combobox frame for hit detectio
now drop downs drop down under the select
1999-09-13 23:20:50 +00:00
peterl@netscape.com
d254ccd300 added accessors for additional style contexts 1999-09-03 23:36:32 +00:00
rods@netscape.com
e7394d816e removing dom listeners on descruction
exposed absolutely positioning of the dropdown
now tries to SyncFrameWithView
1999-08-31 13:22:40 +00:00
pollmann@netscape.com
4a0343f03e Cleanup, and bugfixes for bug 12475 and 12350 1999-08-27 03:58:13 +00:00
rods@netscape.com
8e80181e08 Completely reworked the select GFX object - List and Combobox, it now does all event processing
via DOM listeners instead of through the frames
1999-08-26 14:54:07 +00:00
rods@netscape.com
c5d2a2a5ad Added GetDropDown method to return the nsListControlframe 1999-08-23 14:05:37 +00:00
pollmann@netscape.com
9e36fdb2c2 Bug 3256: Add ScrollIntoView() method to form frame objects. 1999-08-21 00:09:24 +00:00
rods@netscape.com
e9c50c63a3 Now uses the button for the display area and uses the new selected index methods from the ListControlFrame 1999-08-19 14:11:59 +00:00
rods@netscape.com
a1bae1d25d Add GetFrameForPoint to return the combobox when it is disabled. Added disabled code. 1999-08-10 19:25:22 +00:00
rods@netscape.com
0660d021db Made the Combobox a nsIDOMFocusListener, so it can set the focus on the "display"
content when focus goes to the button or the combobox itself
1999-08-06 14:13:20 +00:00
rods@netscape.com
b4681eab62 Made many changes to fix several bugs 1999-07-28 21:38:08 +00:00
troy@netscape.com
d6f5216441 Renamed DeleteFrame() to Destroy() 1999-07-22 02:24:52 +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
kmcclusk@netscape.com
fd0c89e7b0 Modified gfx-rendered widget styles to more closely match styles
in http://www.mozilla.org/xpfe/nsGFXWidgets.html.
Added check for null mHitFrame in nsListControlFrame::MultipleSelection and
nsListControlFrame::SingleSelection.
1999-06-23 21:50:56 +00:00
kmcclusk@netscape.com
7d9f1cf8e0 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.
1999-05-13 23:45:40 +00:00
kmcclusk@netscape.com
80e52903d4 bug #3547- Modified nsFileControlFrame.cpp to call nsFormFrame::AddFormControlFrame.
bug #5589. Selection area is now calculated using the inherited Reflow rather
than using the calculations used for the native listbox control.
Fixed varous other rendering bugs related to frame-based listboxes.
bug #2797. GetSize is no longer needed in nsListControlFrame and it has been removed.
Fixed frame-based combobox nsComboboxFrame so that will set it's label to the
first option in the drop-down list if a default value has not been specified.
Added optgroup style rules to ua.css. Opt groups now render, but there are remaining
problems with selection.
Modified nsButtonControlFrame::Reflow to call nsFormFrame::AddFormControlFrame.
This fixes a bug where Gfx-rendered submit button's were not working.
Refactored code in nsListControlFrame in preparation for supporting option groups.
Refactored selection code into SingleSelect and MultiSelect paths.
Removed unused code in nsListControlFrame.
Removed mSelectedFrame member variable. It is no longer needed.
Fixed nsListControlFrame::SetProperty so that it will toggle the selection in a
single select listbox.
1999-05-07 20:30:16 +00:00
troy@netscape.com
edb3feeda6 Removed some code that wasn't needed and would cause any child frames
passed in to be leaked
1999-04-27 20:26:14 +00:00