92 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
d9d0d2a935 Don't do XUL collapsing stuff with HTML text inputs or HTML scrollframes. Bug
335628, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@218737 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-22 04:27:31 +00:00
bzbarsky%mit.edu
9e56e89a01 deCOMtaminate nsIFrame::GetMinSize/GetPrefSize/GetMaxSize. Bug 243370, patch
by Andreas Lange <anlan@lange.cx>, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@217973 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-08 02:57:59 +00:00
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
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
bzbarsky%mit.edu
4fe7e728a5 When setting the textfield value via the filepicker, tell it that it's not
focused so that onchange will fire as it should.  Bug 355362, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@213672 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-15 15:39:35 +00:00
bzbarsky%mit.edu
b869f56794 Reinstate reflow count painting when it's needed. Bug 352851, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@211969 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 04:26:20 +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
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
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
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
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
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
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
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
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
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
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
cvshook%sicking.cc
12f074b44e Bug 236476: Change GetHTMLAttribute to GetParsedAttr. Also fixes bug 232706 by removing final uses of nsHTMLValue.
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@168269 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 00:02:58 +00:00
bryner%brianryner.com
2474296ae5 Remove nsIHTMLContent interface (bug 276959). r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@167619 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-12 19:45:38 +00:00
neil%parkwaycc.co.uk
b6cfbdda85 Bug 276100 GetOriginToView has unused PresContext argument p=bugmail@q1n.org r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@167161 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 17:26:29 +00:00
bugzilla%arlen.demon.co.uk
e4daffa10a Bug 270708 remove nsPresContext variable from AttributeChanged and cleaned up comment in nsIFrame.h
p=bugmail@q1n.org r=pkwarren sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@167124 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-31 01:13:27 +00:00
smontagu%smontagu.org
6649ff6b3d Bug 167001: Anything below the baseline goes out of input field. Patch by Hideo Saito <saito@densan.co.jp>, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163502 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-10 18:30:28 +00:00
bryner%brianryner.com
6bab9e3329 Add support for native keybindings for input and textarea for gtk2. This allows us to respect the GTK keybinding preferences. Bug 257405, r=blizzard, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@161878 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-07 21:21:48 +00:00
roc+%cs.cmu.edu
25c92b6a90 Bug 254039. deCOMtaminate nsIScrollableFrame. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@161806 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-06 02:44:43 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
rbs%maths.uq.edu.au
a41b8a61ef Cleanup font usage in form input controls, b=251637, r=jshin, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@159562 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 01:05:44 +00:00
peterv%propagandism.org
0a98e68e54 Fix for bug 236408 (deCOMtaminate nsINodeInfoManager). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@158468 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-25 12:26:02 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
gerv%gerv.net
2ac510b678 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
roc+%cs.cmu.edu
80b27683f0 Bug 227838. Remove unused RequiresWidget method from nsIFormControlFrame. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@154764 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 03:11:05 +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
uid502
8080dd532b Bug 217201. Make nsTextControlFrame::InitEditor() happen outside of reflow, to prevent content notification flushes and reentrancy. r+rs=dbaron
git-svn-id: svn://10.0.0.236/trunk@147060 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-19 15:20:00 +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
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
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
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
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
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