237 Commits

Author SHA1 Message Date
mats.palmgren%bredband.net
394b6ebb90 OnChange is sometimes triggered for scripted changes. b=265047 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@217827 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-05 16:31:07 +00:00
timeless%mozdev.org
c778d21502 Bug 355300 There should be only one nsGkAtoms creature
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
bzbarsky%mit.edu
78cfdd7ca8 Remove the consumers of GetScrollBarDimensions so that we can work on removing
the API too.  Bug 364301, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@217200 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-19 15:08:34 +00:00
dbaron%dbaron.org
1ca9f3f372 Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
git-svn-id: svn://10.0.0.236/trunk@216738 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-08 05:38:33 +00:00
mats.palmgren%bredband.net
428dc5e234 Make sure text input onchange handler is called before onblur. b=357684 r=Olli.Pettay sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@215968 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-28 13:08:23 +00:00
bzbarsky%mit.edu
8945cce7f6 Remove the business about not knowing our collapsed state at first. We do know
it, and we're collapsed.  Bug 352394, r=mats, sr=roc


git-svn-id: svn://10.0.0.236/trunk@210092 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-14 00:54:44 +00:00
timeless%mozdev.org
46444dd782 Bug 106386 Correct misspellings in source code
r=bernd rs=brendan


git-svn-id: svn://10.0.0.236/trunk@208659 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-28 20:12:37 +00:00
bzbarsky%mit.edu
57d2fa8d15 Don't convert non-breaking spaces to spaces in text controls. Bug 218277,
patch by jst and jpl24 <jlurz24@gmail.com>, r=bryner, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@206701 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 03:27:49 +00:00
pkasting%google.com
0f0eee34d2 Bug 339127: Add "spellcheck" attribute to control spellchecking.
r=brettw
sr=sicking


git-svn-id: svn://10.0.0.236/trunk@205107 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-29 00:04:40 +00:00
Olli.Pettay%helsinki.fi
3c7e9a9c0c Bug 345600, Crash [@ nsTextInputListener::UpdateTextInputCommands] using onselect and removing textarea, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@203722 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-26 07:58:18 +00:00
cvshook%sicking.cc
365266c686 Bug 344050: Kill nsITextContent and move the methods to nsIContent. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@203078 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 04:36:36 +00:00
uriber%gmail.com
635bd815f7 Fix bidi behavior of ctrl+backspace and ctrl+del. bug=344226 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@202304 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 07:28:38 +00:00
mats.palmgren%bredband.net
14e56648c0 Remove the special painting code for a 165-twips checkbox. Move the remaining parts of nsFormControlHelper to its consumers and remove nsFormControlHelper.{cpp,h} from the tree. b=343495 r+sr=roc (r=me on roc's part)
git-svn-id: svn://10.0.0.236/trunk@201677 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 10:43:51 +00:00
jst%mozilla.jstenback.com
e2f9b9dd68 Fixing bug 313337. Make input control onchange events only fire when the change is made by the user, not by script. r=bzbarsky@mit.edu, sr=bugmail@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@201614 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-05 22:15:01 +00:00
Olli.Pettay%helsinki.fi
e68ad696a2 Bug 336381, Crash [@ nsRange::InsertNode] involving ranges in detached nodes, r=sicking,glazman,sr=bz
git-svn-id: svn://10.0.0.236/trunk@196563 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-15 19:35:12 +00:00
mrbkap%gmail.com
e747e9d893 Only call GetCharCode for KeyPress events to avoid triggering a warning in nsDOMKeyEvent.cpp. bug 309316, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@195703 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-29 00:39:03 +00:00
roc+%cs.cmu.edu
02b50c231a Bug 330305. Rename nsSelection to nsFrameSelection, and deCOMtaminate it, removing nsIFrameSelection. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@195412 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 02:01:07 +00:00
roc+%cs.cmu.edu
b6ebd9961d Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 00:16:29 +00:00
roc+%cs.cmu.edu
140fbb3377 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:30:36 +00:00
dbaron%dbaron.org
8cfdd67955 Change our scrolling code so that it is capable of scrolling above and to the left of the viewport, and then use that capability for nsHTMLScrollFrames with RTL directionality. This removes the invariant that the child of a scrollframe (::scrolled-canvas canvas or ::scrolled-content block) will be stretched to fill the entire scrollable area and stops enforcing it, a change that's likely to cause some regressions not yet fixed within the patch. This also fixes directionality detection for the scrollframe holding the canvas (changing which side the scrollbar appears on) and fixes an old bug in the code that paints the focus ring around the canvas (so it's now again visible on all sides, even when the canvas is scrollable). b=192767 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192422 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 16:55:19 +00:00
pavlov%pavlov.net
b5c7a440ef backing out roc's patch for bug 328926 due to crash running tests on vc8 machines.
git-svn-id: svn://10.0.0.236/trunk@192407 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 06:43:36 +00:00
roc+%cs.cmu.edu
6e36f2c733 Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192399 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 03:14:02 +00:00
Olli.Pettay%helsinki.fi
b6cdf7cb60 Bug 234455, Centralize event dispatch r=jst, sr=bz
git-svn-id: svn://10.0.0.236/trunk@191900 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-07 17:08:51 +00:00
sharparrow1%yahoo.com
c7989ee277 Bug 327868: nsIFrameSelection cleanup. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@190633 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-21 00:49:04 +00:00
bzbarsky%mit.edu
992aec0bc9 Make it possible to enable spell-check for text inputs too (not just
textareas).  Make the pref controlling the whole thing live.  Bug 151040, patch
by Julian Pellico <jpellico@yahoo.com>, r=bzbarsky, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@189459 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-09 03:50:53 +00:00
roc+%cs.cmu.edu
df8627e29b Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others
git-svn-id: svn://10.0.0.236/trunk@188202 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 02:29:17 +00:00
cvshook%sicking.cc
ceaf7bdebc Bug 323910: Merge atom lists in gklayout
r/sr=jst


git-svn-id: svn://10.0.0.236/trunk@187798 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 00:58:12 +00:00
bzbarsky%mit.edu
6c370bdcdf Make sure to return in the error condition, not just pop the JSContext stack
and continue.  Bug 321494, r=sicking, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@187107 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-06 23:32:21 +00:00
roc+%cs.cmu.edu
74858f37ce Bug 254755. deCOMtaminate nsIFormControlFrame. patch by jpl24, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@185977 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-12 23:53:06 +00:00
bzbarsky%mit.edu
510247e8b6 Remove no longer needed event hack. Bug 146399, patch by Vidar Haarr
<vhaarr+bmo@gmail.com>, r=dbaron, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@185782 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-08 01:44:30 +00:00
roc+%cs.cmu.edu
66e8f6e1aa Bug 316281. Rework GetContentAndOffsetsFromPoint. r=uriber,sr=roc,patch by Eli Friedman
git-svn-id: svn://10.0.0.236/trunk@185773 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-07 23:08:39 +00:00
brettw%gmail.com
6f8da34eb9 Bug 302050: inline spellchecking for textboxes backend. r=bryner sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@185706 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-05 18:07:33 +00:00
jst%mozilla.jstenback.com
895df6e6ca Fixing bug 316794. Moving HandleDOMEvent() and Get/SetDocShell from nsIScriptGlobalObject to nsPIDOMWindow. r=mrbkap@gmail.com, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@185351 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 23:56:44 +00:00
timeless%mozdev.org
a05383ef1b Bug 106386 Correct misspellings in source code
patch by mats.palmgren@bredband.net r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@185018 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 22:05:24 +00:00
roc+%cs.cmu.edu
35affbc82e Bug 313817. DeCOMtaminate more NS_New*Frame functions. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@183357 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-01 20:40:54 +00:00
cvshook%sicking.cc
b26f9f52fb Bug 311827: Make GetAttr return a bool rather then an nsresult.
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@183185 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 11:25:24 +00:00
bzbarsky%mit.edu
8ff3bd2db3 Fix bug 309467. r=jst, sr=neil
git-svn-id: svn://10.0.0.236/trunk@182569 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-20 02:10:31 +00:00
roc+%cs.cmu.edu
aeacb4d477 Bug 108310. Make GetFrameForPoint take frame-relative coordinates, not bogus relative-to-some-view-or-other, and simplify the signature. r+sr=roc, patch by Eli Friedman.
git-svn-id: svn://10.0.0.236/trunk@180551 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-19 02:15:54 +00:00
bzbarsky%mit.edu
c3d2c5e7a2 Remove the pointless nsIContent arg of nsIFrame::AttributeChanged. Bug 281390,
patch by Vidar Braut Haarr <vhaarr+bmo@gmail.com>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@179800 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-07 16:49:21 +00:00
bryner%brianryner.com
f8a877926f In the XUL autocomplete widget, make user-initiated autocomplete dispatch an oninput event, just as if the user had typed the text. Also fixing a bug where it was not possible to create an oninput event from script. Bug 287996, r=mconnor sr=jst.
git-svn-id: svn://10.0.0.236/trunk@178617 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 18:34:21 +00:00
bzbarsky%mit.edu
9104cb9303 Make frames know whether they're leaves or not from the frame construction
point of view; use this in the frame constructor.  Bug 265367, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@177914 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 22:52:48 +00:00
jst%mozilla.jstenback.com
ebed1ee784 Fixing bug 289940. Make chrome event handlers only receive trusted events by default. r=jonas@sicking.cc, sr=peterv@propagandism.org, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@172848 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 23:48:28 +00:00
bzbarsky%mit.edu
dad862ec1c Make text control state restoration work right even in subframes loaded from a
different website.  Bug 287446, r+sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@172725 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-26 03:31:29 +00:00
roc+%cs.cmu.edu
242a80aa53 Bug 289179. Fix regression by having nsTextControlFrame find its scrollable view again. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@171822 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 20:50:58 +00:00
bmlk%gmx.de
e6648c930b fix for build warnings (shadow & strange null pointer treatment) bug 287102 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171160 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-24 18:41:39 +00:00
bryner%brianryner.com
0e2b73e3fb Fix autocomplete in message compose by making oninput start off enabled, and just disabling it within SetValue. Bug 282645, r= (and lots of ideas from) neil, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@170069 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-02 01:19:19 +00:00
bryner%brianryner.com
15e54a9461 Don't dispatch oninput events when the value of an input is changed programatically. This prevents unwanted opening of the autocomplete popup when a username is prefilled. Bug 272002, r+sr=bzbarsky, a=caillon.
git-svn-id: svn://10.0.0.236/trunk@169224 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-15 23:14:42 +00:00
mats.palmgren%bredband.net
a0cf4a2fbd If text is scrolled out-of-view to the left and there is room for it to be visible then scroll it in to view. b=268352 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168816 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-04 21:56:07 +00:00
dbaron%dbaron.org
16f4991e84 Put the null-check *before* the crash it's supposed to prevent (which timeless saw, somehow).
git-svn-id: svn://10.0.0.236/trunk@168616 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-01 07:35:20 +00:00
bryner%brianryner.com
3437ee229a Remove nsIPresState (bug 279699). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@168423 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-27 22:52:53 +00:00