308 Commits

Author SHA1 Message Date
bryner%brianryner.com
b5347dd60c Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +00:00
bzbarsky%mit.edu
0976c7a3b9 Don't clear previous selection when range is extended using shift-ctrl-click.
Bug 112281, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@149339 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 04:23:53 +00:00
uid502
e56ed2443c Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 20:19:18 +00:00
roc+%cs.cmu.edu
d6f51ea339 Bug 212753. Make sure mouse capture is released when combobox popup is hidden. r+sr=bryner,a=mkaply
git-svn-id: svn://10.0.0.236/trunk@146514 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-02 15:21:13 +00:00
roc+%cs.cmu.edu
5dc0998c4e Bug 207637. Don't fire onchange for MouseUp events where we didn't see a mousedown. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@145922 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-12 16:00:20 +00:00
dbaron%dbaron.org
9c8f3a09cc Remove workaround for timer bug, since the timer bug is fixed and the workaround now causes a crash. b=215250 r+sr=brendan a=asa
git-svn-id: svn://10.0.0.236/trunk@145680 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-07 00:00:13 +00:00
bzbarsky%mit.edu
82c14d79dd DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@145289 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:25:13 +00:00
jaggernaut%netscape.com
36ab3d76a9 Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:37:39 +00:00
aaronl%netscape.com
42c64b76d5 Bug 211846. alt+down not working consistently for dropdowns. Also fixes bug 110801 and bug 205942, dropdown from alt+down not showing in the right place. r=jkieser, sr=bz
git-svn-id: svn://10.0.0.236/trunk@144635 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 06:36:33 +00:00
roc+%cs.cmu.edu
fe484e9b29 Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@144466 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-04 13:36:03 +00:00
roc+%cs.cmu.edu
ca3b83ccdf Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144465 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-04 12:50:32 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
jkeiser%netscape.com
6353249b1a Remove unused variables, r+sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@143376 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-06 01:11:57 +00:00
dwitte%stanford.edu
dc7e857400 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
roc+%cs.cmu.edu
dad14022d0 Bug 202681. Do not recreate frames during reflow via -moz-binding change for lazy scrollbars. Instead of lazy scrollbars, completely remove the anonymous scrollbar element for scrollbars which are disabled by CSS. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@142738 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 01:46:13 +00:00
dbaron%dbaron.org
69da9d4a19 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
roc+%cs.cmu.edu
128348933b Bug 204531. Remove bogus RTL listbox reflow hack. Fix border computation for desired size of combobox dropdowns.
git-svn-id: svn://10.0.0.236/trunk@142482 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 01:42:53 +00:00
roc+%cs.cmu.edu
58361a0999 Bug 201797. Do an extra reflow of the scrollframe if we adjusted the width or height after reflowing it the first time. Also, don't include border/padding when calculating the visible width in the unconstrained case
git-svn-id: svn://10.0.0.236/trunk@142108 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-04 19:00:21 +00:00
roc+%cs.cmu.edu
d4ac9a5795 Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140858 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:50:57 +00:00
jst%netscape.com
47743d5ece Fixing bug 192837. Freezing the rest of the DOM HTML interfaces. r=fabian@imajes.info, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@139440 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 07:00:53 +00:00
kyle.yuan%sun.com
60eb04f289 Bug 188199 incremental search in <select> fails if item starts with repeats of a letter
r=jkeiser, sr=henry.jia


git-svn-id: svn://10.0.0.236/trunk@138250 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 01:19:17 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
neil%parkwaycc.co.uk
66a63fa2b0 Fix regression to bug 150759 caused by bug 147148 r=jkeiser sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@136154 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-10 09:24:30 +00:00
dbaron%dbaron.org
c2b73f96e3 Fix sizing regression for selects with optgroups. b=188426 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136104 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-10 00:30:50 +00:00
dbaron%dbaron.org
a569c670f5 Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136064 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 14:26:32 +00:00
dbaron%dbaron.org
c278517282 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136010 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:19:10 +00:00
jkeiser%netscape.com
60ed955d58 Make shift+click work the first time you click in a select (bug 167142), r=peterl@netscape.com, sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@135509 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-20 05:32:27 +00:00
jkeiser%netscape.com
ac42e42ba8 Make GetType() return int instead of nsresult (bug 167762), r=peterl@netscape.com, sr=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@135468 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-18 23:38:09 +00:00
jkeiser%netscape.com
0b701faeb3 Make empty dropdowns handle key events (bug 147148), r=peterl@netscape.com, sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@135373 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 00:56:01 +00:00
kyle.yuan%sun.com
0be0d7608a Bug 159947 no way to multiselect using keyboard in list box
r=akkana, sr=bryner
Use charCode instead of keyCode to check whether a key typing is SPACE


git-svn-id: svn://10.0.0.236/trunk@135095 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 03:24:27 +00:00
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
bzbarsky%mit.edu
87e0051c3e Align text inputs, buttons, comboboxes to baseline with respect to the
text around them (bug 167236).  Fix width sizing issues for <input
type="button/reset/submit"> (bugs 79927, 36364).  Fix nonuniform heights
of form controls (bug 70251).  Patch is on bug 167236, r=jkeiser,
sr=roc+moz, moa=rods


git-svn-id: svn://10.0.0.236/trunk@133674 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 19:17:51 +00:00
kyle.yuan%sun.com
f90ff1380c Bug 177965 Wrong option selected in select field when pressing first key
r=jkeiser, sr=bzbarsky
Use a static member function ComboboxFocusSet() to clear the gLastKeyTime, and have gLastKeyTime be a static member


git-svn-id: svn://10.0.0.236/trunk@133285 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 10:25:03 +00:00
kyle.yuan%sun.com
5854d119ea Bug 119696 Many keyboard shortcuts don't work when focus is on a <select> (listbox or drop-down)
r=jkeiser, sr=bzbarsky, a=roc+moz
Thanks for Simford.Dong@sun.com's fix


git-svn-id: svn://10.0.0.236/trunk@132670 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 01:05:43 +00:00
aaronl%netscape.com
abe8120f48 Bug 175827. Accessibility APIs: XUL and HTML comboboxes - when pulled down, should have initial MSAA focus event on first focused option. r=kyle, sr=alecf, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@132498 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-25 02:53:45 +00:00
kyle.yuan%sun.com
d743efbefd Bug 161449 Non-ASCII shortcuts for select elements in html forms
r=aaronl, sr=alecf
fix nsCRT::ToLower/ToUpper bugs and use |ToLowerCase()| instead of |nsCRT::ToLower()| in nsListControlFrame


git-svn-id: svn://10.0.0.236/trunk@130701 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-29 01:42:07 +00:00
hyatt%netscape.com
231ada71e5 Fix for 169373, make HTML form controls fully support native look on Windows XP. r/sr=hewitt/blake
git-svn-id: svn://10.0.0.236/trunk@130192 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-21 01:03:38 +00:00
kyle.yuan%sun.com
624d265c11 Bug 150590 should be able to type words into <select> - incremental search for item
r=jkeiser, sr=bryner
Support incremental typing navigation for <select>


git-svn-id: svn://10.0.0.236/trunk@130099 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 02:12:12 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
dougt%netscape.com
db8cc9c7ec Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129037 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 05:38:16 +00:00
dougt%netscape.com
1ebc6538fb Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
git-svn-id: svn://10.0.0.236/trunk@128770 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 23:36:13 +00:00
bzbarsky%mit.edu
8d3edf56a0 Fix crash when clicking empty space in <select>. Bug 161499, r=jkeiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@126810 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 22:27:57 +00:00
bzbarsky%mit.edu
281d89498a clean up some form control stuff (use common helpers and superclasses
for shared functionality where possible).  r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@126548 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 23:50:08 +00:00
jkeiser%netscape.com
5894ef9407 Get rid of dirt and sludge from the select interface, and add comments (bug 159242), r=rods@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@126438 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 04:59:15 +00:00
jkeiser%netscape.com
0c2a8f4e96 Remove nsFormFrame forever. bug 125578, r=alexsavulov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122617 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 00:44:04 +00:00
karnaze%netscape.com
49e0a9f4cb bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122236 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:50:43 +00:00
rods%netscape.com
42e0661834 temporary patch to the forms controls to ignore mouse events when in
printpreview until Bug 124990 gets fixed (radio and checkbox doesn't need the fix)
this code will be removed via bug 146399
Bug 129002 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@122071 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 11:25:58 +00:00
jst%netscape.com
0e34136ef1 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
waterson%netscape.com
5bae3657e6 Bug 129115. Change the reflow path from a list structure to a tree structure to amortize state recovery and damage propagation costs. Eliminate table timeout reflows. r=kin,karnaze,rods,rbs; sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@121265 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-10 18:22:41 +00:00