Commit Graph

150 Commits

Author SHA1 Message Date
pollmann%netscape.com
47d773f8d9 Bug 18649: non FormControlFrame derived form elements also only scroll when not at all visible r=rods 2000-01-25 22:19:39 +00:00
nisheeth%netscape.com
9c6617b147 r=vidur. Add support for a new pref "layout.reflow.async.afterDocLoad" that enables async reflow in the pres shell only after the document is done loading. Cleaned up ExitReflowLock() so that it uses preferences to decide whether to do async reflow, not a parameter. 2000-01-25 16:00:44 +00:00
rods%netscape.com
364d22bb8c changed signature of GetFont b=905 r=dcone 2000-01-25 15:25:46 +00:00
troy%netscape.com
8a78d916a5 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
rods%netscape.com
dd6bd3d6ca removed warnings
r=kmcclusk
2000-01-18 23:23:52 +00:00
hyatt%netscape.com
e740cdb714 Fixes for bugs 17460 and 21656. r=travis 2000-01-14 09:28:54 +00:00
rods%netscape.com
b01cef4a9a 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
0f8bcdb83c Temporarily turning off optimization 2000-01-09 02:03:23 +00:00
rods%netscape.com
a5b48b3896 Added unconstrainted reflow optimizations
r=kmcclusk,dcone bug=12653
2000-01-09 01:52:17 +00:00
rods%netscape.com
de428bbd80 backed out all changes from today (1/5/2000) 2000-01-05 16:42:47 +00:00
rods%netscape.com
05e6af0c80 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
063e7d3511 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
9da2c4a788 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
3a60daace3 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
hyatt%netscape.com
de2eaede42 Implementing a generalized recycler and arena for all layout frames. Hoping to improve
bug #9489.  Should also definitely fix bug #15916. r=troy
1999-12-04 23:49:50 +00:00
sspitzer%netscape.com
2c52f853c6 simple bullet proofing fix for #20423 1999-12-01 03:08:04 +00:00
tbogard%aol.net
af1ce8d410 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
31776f0714 added bool parm to is DoneAddinContent r=dcone bug 18241 1999-11-19 16:05:16 +00:00
troy%netscape.com
597b5f236b WillReflow/DidReflow changes and changes to the way view positioning
and sizing works
1999-11-19 15:33:29 +00:00
rods%netscape.com
854e72dc25 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
dfebb59b9d 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
nisheeth%netscape.com
ab25264f7b r=vidur. a=chofmann. Post a reflow event instead of doing reflow command processing synchronously. Currently this only happens on content appended and content inserted notificaitions in the pres shell. 1999-11-09 03:23:26 +00:00
dmose%mozilla.org
5312eacf8c 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
1ac4b75dcc Bug 17995: Don't reset selection when adding an option to a combobox, as it caused reframing and a crash. r=harishd a=choffman 1999-11-06 00:54:54 +00:00
pollmann%netscape.com
210784fe9b Bug 17431: Clean house in form and form control destructors to allow reframing r=harishd a=choffman 1999-11-04 23:16:47 +00:00
rods%netscape.com
0848659bb9 Combos now size correctly when the size is specified via style
r=kmcclusk, b=16317
1999-11-03 00:03:32 +00:00
pollmann%netscape.com
fa50777353 Removing null code. No bug number. r=nisheeth 1999-11-02 01:50:15 +00:00
troy%netscape.com
1585a751fb Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +00:00
rods%netscape.com
7670a72df2 At kipp's suggestion I added a EnterReflowLock before and a ExitReflowLock
after my AppendReflowCommand. The reflow command gets "kicked off"
and it is now fixed. r=kipp, b=14771
1999-10-26 23:34:46 +00:00
troy%netscape.com
87afecabc0 Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
rods%netscape.com
ef783cc295 removed the PR_MAX forcing the y offset to be zero or greater. Not sure why it was doing this.
r=kmcclusk Bug #16152
1999-10-21 00:06:23 +00:00
pollmann%netscape.com
f7222cc9f3 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
rods%netscape.com
1d4f67cd4b ifdef'ed out a static counter for debugging. r=kmcclusk b=15637 1999-10-08 12:24:11 +00:00
rods%netscape.com
3f456e3f80 Added the COMPAre macro for comparing sizes with NavQuirks
r=kmcclusk
1999-10-07 21:46:31 +00:00
pollmann%netscape.com
9fff77bf97 Bug 15170: Implement onchange notification for list boxes 1999-10-05 23:43:06 +00:00
rods%netscape.com
e6b0939762 Added new method to tell the listcontrolframe it is about to be rolled up by the combobox
this enables it to unset any temporary selections and restore the actual selection
1999-10-01 14:30:33 +00:00
rods%netscape.com
dffe42e2b3 Added ConsumeEvents parameter to CaptureRollupEvents 1999-09-30 14:36:17 +00:00
rods%netscape.com
40bda71f57 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
peterl%netscape.com
5eb5883901 use style changed reflow instead of content changed when updating button 1999-09-29 03:35:24 +00:00
dcone%netscape.com
ae9532ab74 Took out some Addrefs, causing leaks 1999-09-24 13:48:40 +00:00
rods%netscape.com
256480c581 Added nsIRollupListener for rolling up the dropdown 1999-09-21 21:20:50 +00:00
pollmann%netscape.com
2cf83f397b Remove redundant reset() call. 1999-09-19 09:18:33 +00:00
rods%netscape.com
c00a954c6f It was calculating the absolute position wrong. the frame's x,y was being added in twice. 1999-09-15 21:57:51 +00:00
pollmann%netscape.com
b4451b8526 Bug 13058: (Fixed Solaris bustage by removing Inherited typedef) 1999-09-15 05:31:31 +00:00
pollmann%netscape.com
c6ea67797b Backing things out until I can get Solaris bustage figured out. 1999-09-14 20:42:26 +00:00
pollmann%netscape.com
8dd16c6263 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
fea9cdf36b 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
rods%netscape.com
af296e18b3 Better fix for option elements with no content in them 1999-09-09 19:37:23 +00:00
rods%netscape.com
fa6fb356e7 Temporary fix to for mail compose. 1999-09-09 13:17:35 +00:00
sfraser%netscape.com
69e203f45c #ifdef out a bunch of rods's printfs. 1999-09-09 00:23:40 +00:00
rods%netscape.com
bd89429f51 Added the proper event processing for disabled options
ListBoxes (as dropdowns) are now notified before the are about to be dropped down
1999-09-08 14:27:38 +00:00
pollmann%netscape.com
cb70f00a3a Bug 12849: OnChange event.target is now the select instead of the option. 1999-09-07 02:16:23 +00:00
peterl%netscape.com
25d7829a4e added accessors for additional style contexts 1999-09-03 23:36:32 +00:00
rods%netscape.com
4b2f3e78ca commented out some unused variables to remove warnings 1999-09-02 13:51:12 +00:00
rods%netscape.com
0fd6268956 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
22fef24c59 Cleanup, and bugfixes for bug 12475 and 12350 1999-08-27 03:58:13 +00:00
rods%netscape.com
6cf112a833 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
fb5366bfb6 Added GetDropDown method to return the nsListControlframe 1999-08-23 14:05:37 +00:00
pollmann%netscape.com
5b4a7ad743 Bug 3256: Add ScrollIntoView() method to form frame objects. 1999-08-21 00:09:24 +00:00
rods%netscape.com
0764b680ff 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
0701d68531 Add GetFrameForPoint to return the combobox when it is disabled. Added disabled code. 1999-08-10 19:25:22 +00:00
rods%netscape.com
7f0fa96163 ifdef'ed out the ambigous compiler error for Linux, this code isn't being used at the moment 1999-08-06 14:42:00 +00:00
rods%netscape.com
faa5568c70 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
8d5807e765 Made many changes to fix several bugs 1999-07-28 21:38:08 +00:00
kmcclusk%netscape.com
f9b64e775c bug #7032 Changed nsIWidget::Resize(...), nsIWidget::Move(...) to
use PRInt32 instead of PRUInt32. Modified Mac, and Linux to match.
bug #2010 Applied David Barrons patch for MakeSide ins CSSRendering.
nsIWidget - removed GetAbsoluteBounds - Not needed. Can use WidgetToScreen instead.
1999-07-27 23:26:36 +00:00
troy%netscape.com
7a5e4dbdb5 Renamed some nsFrameList member functions 1999-07-22 04:00:57 +00:00
troy%netscape.com
c551fe3166 Renamed DeleteFrame() to Destroy() 1999-07-22 02:24:52 +00:00
kmcclusk%netscape.com
af9e15b5e3 nsPresContext.cpp,.h - Added eWidgetRendering_PartialGfx as a rendering mode to PresContext.
ua.css - Added select[multiple] rule for multi-select listboxes without a size
Fixed form submission for gfx checkboxes,radiobuttons, and select by rewriting GetNamesValues.
Added nsListControlFrame::GetSizeAttribute and nsListControlFrame::GetNumberOfRows
Added logic to nsCSSFrameConstructor::ConstructSelectFrame and nsListControlFrame::Reflow
to handle the case of a multiselect select without a size specified.
1999-07-20 22:32:41 +00:00
troy%netscape.com
155ed6816a Added 'm' prefix to some of the nsHTMLReflowState data members 1999-07-20 03:41:03 +00:00
kmcclusk%netscape.com
d42e178f95 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
a8794918c8 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
b1ab2535df fixes for bugs #5809, #5852, #6828, #6973.
Added a new test16.html sample to test gfx-rendered widgets to viewer.
Added support for test17.html sample to test printing.
1999-05-27 21:17:10 +00:00
kipp%netscape.com
4846f41f1f Reworked frame factory methods; fixed bug 4519 1999-05-11 22:03:29 +00:00
mjudge%netscape.com
884bb4bb82 massive checkin for selection modifications and removing static state variables for selection in nsFrame.h. 1999-05-07 21:12:59 +00:00
kmcclusk%netscape.com
e18026d96e 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
cyeh%netscape.com
8a1db8783c backout mjudge checkin against closed tree. it also breaks mac as well, so
mjudge will try again when tree reopens
1999-05-05 23:05:41 +00:00
mjudge%netscape.com
93b400fb66 removing useless drag info from ::HandleEvent that was copied from nsFrame implementation 1999-05-05 22:29:45 +00:00
kipp%netscape.com
5c6680e4b7 Use shared IID 1999-04-27 22:14:36 +00:00
troy%netscape.com
28289643e0 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
karnaze%netscape.com
3c422499b4 bug 4143; bug 2467; removed frame caching in nsFormFrame. 1999-04-27 00:06:03 +00:00
kmcclusk%netscape.com
848b49f05b 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.
1999-04-16 19:28:12 +00:00
kmcclusk%netscape.com
a2ffe366a4 Enabled frame-based comboboxes when widget rendering mode is gfx.
Major changes to nsComboboxControlFrame:
Removed commented out code + nsIPluggableEventListener references.
Implemented nsComboboxControlFrame::GetNamesValues
Implemented nsComboboxControlFrame::SetProperty GetProperty methods
Fixed references to previously freed memory in nsComboboxControlFrame::ReResolveStyleContext
Modified ua.css style rules for dropdown-visible, drodown-hidden to have -moz- prefix.
Added -moz-dropdown-btn-out and -moz-dropdown-btn-pressed, -moz-dropdown-list rules.
Modified nsListControlFrame.cpp to calculate the width of the dropdown list for combo boxes correctly
Added nsListControlFrame::GetProperty and SetProperty methods.
Modified nsCSSFrameConstructor::ConstructSelectFrame to setup combobox.
1999-04-12 22:14:31 +00:00
kipp%netscape.com
60f52440cb Whacked paint methods to use new constants 1999-03-26 00:39:35 +00:00
peterl%netscape.com
32d3372e42 augmented ReResolveStyleContext to capture style change information 1999-03-25 06:43:38 +00:00
kmcclusk%netscape.com
ffdb06e4b0 Various modifications/fixes/cleanup for frame-based listboxes.
Set display type to block for option elements in ua.css.
Enable frame-based listboxes when widget render mode is gfx.
1999-03-22 21:32:12 +00:00
warren%netscape.com
4b2d56fbaa nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
evaughan%netscape.com
204a6670eb 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.
1999-03-06 19:43:13 +00:00
kipp%netscape.com
9ddafbd9f8 use new nsHTMLReflowState ctors 1999-03-05 04:19:09 +00:00
karnaze%netscape.com
009c914f35 better sizing of form controls, especially percentage based sizes and max element sizes 1999-02-23 03:48:01 +00:00
kipp%netscape.com
36c243cdc0 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
peterl%netscape.com
7f04fb00e6 changed all html atoms to lower case 1999-02-12 06:19:07 +00:00
troy%netscape.com
902190112d API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor 1999-02-11 15:56:23 +00:00
troy%netscape.com
b974e26cea Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
kmcclusk%netscape.com
b0fc5ee1c9 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
michaelp%netscape.com
0084e8879d modified for new DrawString()/GetWidth() APIs. 1999-01-28 05:03:58 +00:00
kmcclusk%netscape.com
4f72556760 Added SetProperty/GetProperty methods to nsIFormControlFrame. Added stub
implementations for all classes that derive from nsIFormControlFrame
1999-01-25 22:16:27 +00:00
harishd%netscape.com
2d6c909024 styleContext is passed onto PaintBorder()/PaintArrow() 1999-01-22 22:31:15 +00:00
rods%netscape.com
5d1dc74549 Ifdef'ed out the Pluggable event code 1999-01-22 15:56:21 +00:00
rods%netscape.com
64f5a23191 Factored out code for helper functions for determining size and for rendering 1999-01-22 15:32:57 +00:00
rods%netscape.com
99b3af960d Initial checkin 1999-01-18 15:14:00 +00:00