987 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
b993aac32b Make sure all caller have to pass in the "ignore 'print backgrounds'
preference" boolean.  Make block/inline _not_ ignore that pref.  Bug 191574,
r+sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@137266 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-01 23:54:32 +00:00
kin%netscape.com
dd9ec493c4 Fix for bug 190382 (selectionEnd off by one when user selects text via CMD/CTRL-A)
- Prevent DOMPointToOffset() from counting a br as a newline, if it is the last child of the anonymous div.

- Fixed 3 compiler warnings in DOMPointToOffset().

r=jkeiser@netscape.com  sr=sfraser@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@136979 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-27 15:25:38 +00:00
bryner%netscape.com
73ac5f125a fix frame name for nsTextControlFrame (debug-only code). r/sr/a=roc.
git-svn-id: svn://10.0.0.236/trunk@136947 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-25 01:47:20 +00:00
kin%netscape.com
bf1214f351 Fix for bug 188440 (textfields clobber selection when they should not.)
mozilla/layout/html/forms/src/nsTextControlFrame.cpp
  mozilla/layout/html/forms/src/nsTextControlFrame.h

Revert back to using a private method (SelectAllContents()) which implements a select all of the text widget contents by manually creating a range and adding it to the selection. This avoids triggering the autocomplete selection listener, which listens for a selection reason of SELECTALL_REASON. This change should be undone once the autocomplete listener is modified to distinguish between a programatic select all and one generated by a user gesture.

r=brade  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@136731 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-21 15:17:32 +00:00
dbaron%dbaron.org
9a4fc1be02 Make the area frame containing the options of a select always have NS_BLOCK_SPACE_MGR so that outside floats don't mess up the inside of a select. b=48237 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136642 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 20:02:38 +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
bryner%netscape.com
6278746fdf Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
kin%netscape.com
4c2a2376d9 Fix for bug #88049: Support .selectionStart & friends for textareas
Patch by petejc@optonline.net and kin@netscape.com

  mozilla/content/html/content/src/nsHTMLInputElement.cpp
  mozilla/content/html/content/src/nsHTMLTextAreaElement.cpp
  mozilla/dom/public/idl/html/nsIDOMNSHTMLTextAreaElement.idl
  mozilla/layout/html/forms/src/nsTextControlFrame.cpp
  mozilla/layout/html/forms/src/nsTextControlFrame.h

Re-implemented selectionStart, selectionEnd, setSelectionRange() and various

utility methods in nsTextControlFrame to support multi-line text widgets.


r=jkeiser@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@136054 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:06:17 +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
kairo%kairo.at
e6ced14fde change all localeVersion strings, as well as brand.dtd/region.dtd to 1.3b; bug 185698, r=tao, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@135834 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-03 19:57:47 +00:00
jkeiser%netscape.com
4b221167d7 Make input type=file work with display: none (bug 152844), r=sicking@bigfoot.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@135510 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-20 05:40:37 +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
nhotta%netscape.com
3a03e1c043 Adding a new interface to retrieve phonetic of input text,
bug 175937, r=brade, sr=kin.


git-svn-id: svn://10.0.0.236/trunk@135438 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 23:38:04 +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
jkeiser%netscape.com
12458accbb Crasher on changing input type with JS (bug 175670), patch by Rick.Ju@sun.com, r=jkeiser@netscape.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@135365 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-16 23:49:16 +00:00
dbaron%fas.harvard.edu
10a7236c6a Correctly implement text-decoration in standards mode by drawing the underline on the element with the text-decoration property set. Refactor painting code a bit to avoid code duplication. Patch by Esben Mose Hansen <esben@oek.dk>, with paint refactoring and some other changes by dbaron. r=dbaron sr=bzbarsky b=1777
git-svn-id: svn://10.0.0.236/trunk@135099 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 04:00:18 +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
jkeiser%netscape.com
10e27ad14e Oog. Green and open not enough. jkeiser back self out, keep drivers from hitting with big rock.
git-svn-id: svn://10.0.0.236/trunk@134970 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-09 06:15:33 +00:00
jkeiser%netscape.com
4749233be8 fix behavior (and crasher) when changing type during event handler (bug 175670), patch by Rick.Ju@sun.com, r=jkeiser@netscape.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@134968 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-09 05:56:58 +00:00
karnaze%netscape.com
ca5804764b bug 180805 - Added GetAdjustedParentFrame to handle fieldsets. Moved inner/outer table logic there. Added fieldset logic to IsValidSibling. sr=bzbarsky, r=jkeiser.
git-svn-id: svn://10.0.0.236/trunk@134696 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 16:02:42 +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
jkeiser%netscape.com
61c84d1fa9 Make textareas and inputs restore again (bug 179330), r=bryner@netscape.com, sr=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@134217 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 23:19:45 +00:00
bzbarsky%mit.edu
f6b3b3afb9 Make nsILinkHandler take uris instead of strings. Bug 176904, r=darin, sr=jst
git-svn-id: svn://10.0.0.236/trunk@134133 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 00:44:26 +00:00
dbaron%fas.harvard.edu
7bfdf9ceaf Remove static nsCOMPtr from nsTextControlFrame. b=179228 r=jkeiser sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@134104 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-19 15:21:57 +00:00
bzbarsky%mit.edu
d4ea0fd2db <button> should be a containing block. Bug 180301, r=jkeiser, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@134072 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-19 03:39:44 +00:00
dbaron%fas.harvard.edu
307f43b5a1 Consolidate all CSS pseudos and split them into three atom lists to distinguish between pseudo-classes, pseudo-elements, and fake-pseudo-elements used for anonymous boxes. b=147887 r,sr=roc,bz
git-svn-id: svn://10.0.0.236/trunk@134006 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 15:37:56 +00:00
bzbarsky%mit.edu
263a259da7 Fix regression in rendering buttons that people manually size to less
than desired size.  Bug 180085, r=jkeiser, sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@133980 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 19:32:49 +00:00
bzbarsky%mit.edu
b8bbf7470c Fix regression bug 179896; need to use the cached ascent in this case
too.  r=jkeiser, sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@133779 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 22:34:09 +00:00
bzbarsky%mit.edu
f76cceac51 Not sure why this didn't get properly checked in with the rest... Bug
167236, r=jkeiser, sr=roc+moz, moa=rods


git-svn-id: svn://10.0.0.236/trunk@133736 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 07:50:34 +00:00
cmanske%netscape.com
d6cc98279b Command Controller refactoring and cleanup, mostly by mjudge with help by cmanske, b=170353, r=brade, sr=sfraser. EditingSession cleanup and new commands in \editor, b=174439, r=mjudge, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@133703 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 23:03:27 +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
bryner%netscape.com
b345c67a0c Add a second pass of event processing for system events, using DOM3 event group functionality. Bug 124990. Patch by joki, r=saari and bryner, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@133439 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 00:25:25 +00:00
alecf%netscape.com
b548b7bdf9 prep for fixing bug 176559 - use getService rather than createInstance so we stop creating element factories
sr=peterv/jst, r=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@133318 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 21:23:09 +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
kairo%kairo.at
3e1e257124 Bug 175853, Update localeVersion strings for 1.2 final - and do it correctly, r=jbetak, sr=bzbarsky, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@132698 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 12:41:38 +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
kin%netscape.com
651d3a02d6 Temporarily disable attachment 87307 (Async reflow, painting, and scrolling for text widgets) which landed as part of bug 141900. Will re-enable it after bugs 158782, 151882, and 165130 are addressed.
The patch simply prevents the eEditorUseAsyncUpdatesMask bit from being set on the editor.

r=brade@netscape.com  sr=sfraser@netscape.com  a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@132088 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 19:02:05 +00:00
leaf%mozilla.org
e19463c6db update localeVersion for 1.2b, a=asa
git-svn-id: svn://10.0.0.236/trunk@132087 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 17:51:38 +00:00
caillon%returnzero.com
0f7366d6d0 Correcting our background painting code per the latest CSS specs. By default, backgrounds should be painted to the border
area, and not the padding area as per the CSS 2 Errata, CSS2.1 and CSS3.  Also, implementing the CSS3 'background-clip'
and 'background-origin' properties (currently with -moz- prefixes) to control this behavior.
Bug 162252, r=dbaron sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@131419 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 10:24:53 +00:00
jkeiser%netscape.com
eeef82662c Backing out bug 107291 due to OS/2 having a crappy compiler.
git-svn-id: svn://10.0.0.236/trunk@131418 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 09:30:40 +00:00
jkeiser%netscape.com
f2519f9d84 Make forward declarations work with nsCOMPtr (bug 107291), r=sicking@bigfoot.com, sr=dbaron@fas.harvard.edu
git-svn-id: svn://10.0.0.236/trunk@131406 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 06:19:10 +00:00
rods%netscape.com
ea176b505c no longer cache the scrollbar width that is used to also calculate the btn width.
Bug 167032 r=jkeiser sr=alecf


git-svn-id: svn://10.0.0.236/trunk@130883 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 14:24:15 +00:00
roc+%cs.cmu.edu
e25496d35f Bug 113083. Concentrate view setup code into a few shared functions in nsContainerFrame. Only change style-dependent view properties after style change, not during reflow, in response to nsChangeHint_SyncFrameView. Change 'clip' to only do SyncFrameView, not reflow. r=dbaron,sr=kin
git-svn-id: svn://10.0.0.236/trunk@130792 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 11:56:37 +00:00
jkeiser%netscape.com
f2d14853a0 Back out bug 167236 due to regressions 171214 and 171465
git-svn-id: svn://10.0.0.236/trunk@130791 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 10:22:06 +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
jkeiser%netscape.com
d59bc1b4f8 Align input type=text/radio/checkbox/button so that text is on baseline (bzbarsky's patch, bug 167236), r=jkeiser@netscape.com, sr=dbaron@fas.harvard.edu
git-svn-id: svn://10.0.0.236/trunk@130554 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 00:04:22 +00:00