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
df747d0621
Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@145205 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-25 19:06:59 +00:00
brade%netscape.com
a6ecc06d75
patch from mjudge to maintainselection; r/sr=dbaron, bug=56401
...
git-svn-id: svn://10.0.0.236/trunk@145030 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-21 19:51:34 +00:00
dbaron%dbaron.org
593f58592d
Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:16:12 +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
rbs%maths.uq.edu.au
a6c97c6fb0
Helper patch for bug 15364. Expose an API to allow scripts to show the caret even in selections (a la Emacs). Users can also set the pref ui.caretVisibleWithSelection to 1, which gives a nice combination with caret browsing (hit F7). r=sfraser, sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144128 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 01:14:25 +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
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
sfraser%netscape.com
4a0df27c9c
Fix bug 201257 -- clean up use of nsIControllerCommandManager by editor:
...
Renaming nsIControllerCommandManager to nsIControllerCommandTable to reduce confusion.
Moving the immutability flag from the nsBaseCommandController to the nsControllerCommandTable.
Renaming the 'refcon' on nsIControllerContext to 'context', and giving nsIControllerContext an Init() method that optionally takes a command table.
Fixing the editor and composer module code to create pre-filled nsIControllerCommandTables as services, and the controller constructors to create singleton command tables with do_GetService.
r=brade, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@140988 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 18:44:03 +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
roc+%cs.cmu.edu
071d5592f4
Bug 183905. Allow horizontal scrolling with mouse sticks. Patch by Dainis_Jonitis, r+sr=roc+moz
...
git-svn-id: svn://10.0.0.236/trunk@139310 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 03:22:11 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
jkeiser%netscape.com
b6c4cce5ef
Make input type=text width bigger (Rick.Ju@sun.com's patch, bug 92980), r=jkeiser@netscape.com, sr=kin@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@130274 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-23 19:43:48 +00:00
jkeiser%netscape.com
664fc74eb6
Make default wrap soft again, fix up text reflow, remove cruft from button reflow (bug 164641), r=rods@netscape.com, sr=kin@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@129682 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-16 06:23:52 +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
mjudge%netscape.com
24b6c23cc2
23784 r=akk sr=dbaron fix for stopping immediate drag after double clicking of the mouse
...
git-svn-id: svn://10.0.0.236/trunk@128516 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 01:32:11 +00:00
seawood%netscape.com
059352bad6
Not all c++ compilers support true. Use PR_TRUE instead.
...
Fixing OS/2 tinderbox bustage.
git-svn-id: svn://10.0.0.236/trunk@128238 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 07:34:41 +00:00
mjudge%netscape.com
2f5c006a1d
4302 r=jfrancis sr=kin. pageup/down bug with navigation.
...
git-svn-id: svn://10.0.0.236/trunk@128157 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 20:55:30 +00:00
bzbarsky%mit.edu
c3a70b358f
back out accidental part of last checkin; fixing bustage
...
git-svn-id: svn://10.0.0.236/trunk@126567 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 00:37:04 +00:00
mjudge%netscape.com
a678fcf7ab
141888 sr=kin r=brade patch to fix too agressive caret disabling from readonly textareas/input areas.
...
git-svn-id: svn://10.0.0.236/trunk@126556 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 00:01:11 +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
cbiesinger%web.de
c1146da488
bug 50633 patch by riceman+bmo@mail.rit.edu r=jkeiser sr=kin a=asa
...
textarea always does a soft wrap, even with wrap="off" or white-space:nowrap or white-space:pre
git-svn-id: svn://10.0.0.236/trunk@126007 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-29 20:13:09 +00:00
jkeiser%netscape.com
325bff7164
Change ns(I)GfxTextControlFrame(2) -> ns(I)TextControlFrame (bug 129909), r=rods
...
@netscape.com, sr=bzbarsky@mit.edu , a=asa
git-svn-id: svn://10.0.0.236/trunk@125891 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:57:24 +00:00
leaf%mozilla.org
f068dae85c
adding new files from nsGfxTextControlFrame2.*; part of renaming in bug 129909
...
git-svn-id: svn://10.0.0.236/trunk@125861 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 17:17:00 +00:00
kmcclusk%netscape.com
622694d09f
Removing these unneeded files from from cvs, they have been in the build in years
...
r=kmcclusk,buster
git-svn-id: svn://10.0.0.236/trunk@82697 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-16 21:41:14 +00:00
rods%netscape.com
cffeb53a49
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
git-svn-id: svn://10.0.0.236/trunk@60248 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 19:34:39 +00:00
pp%ludusdesign.com
a2927ce43e
Converting ::GetIID() into NS_GET_IID(). Bug #20232 . r=scc, r=mozbot
...
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
hyatt%netscape.com
8f6502ffb7
Fixes for bugs 17460 and 21656. r=travis
...
git-svn-id: svn://10.0.0.236/trunk@57811 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-14 09:28:54 +00:00
sfraser%netscape.com
d809f93363
Fix for another part of for 19954 -- convert textarea data to LF termination before saving frame state. r=pollman
...
git-svn-id: svn://10.0.0.236/trunk@55011 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 03:12:51 +00:00
tbogard%aol.net
ae5a81e394
Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
...
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +00:00