422 Commits

Author SHA1 Message Date
enndeakin%sympatico.ca
4909ea089c Bug 401627, better way of handling click to close menu so that it doesn't reopen the menu again, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@240313 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 16:33:45 +00:00
bzbarsky%mit.edu
103775a0c5 Don't do arithmetic with unconstrained widths when reflowing comboboxes. Bug
363858, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@240280 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 06:41:39 +00:00
reed%reedloden.com
ae0b8dd43e Bug 402198 - Use async version of Invalidate() to avoid flushing pending notifications [p=mats.palmgren@bredband.net (Mats Palmgren) r+sr=roc a1.9=schrep]
git-svn-id: svn://10.0.0.236/trunk@239332 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-13 16:44:48 +00:00
mats.palmgren%bredband.net
b899634d68 Backing out relevant part of bug 402198 to see if it fixes Orange on Windows Tinderbox...
git-svn-id: svn://10.0.0.236/trunk@239122 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-10 04:23:27 +00:00
mats.palmgren%bredband.net
cc5e9a94a8 Use async version of Invalidate() to avoid flushing pending notifications. Also, document this aspect of the Invalidate() API. b=402198 r+sr=roc a=mtschrep
git-svn-id: svn://10.0.0.236/trunk@239115 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-10 00:51:03 +00:00
bzbarsky%mit.edu
7cba85f20d When selectedIndex is set, make sure to display the corresponding text in the
display area.  Bug 330554, r+sr=mats, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@232493 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-22 03:25:42 +00:00
bzbarsky%mit.edu
762a211f7d Make sure to process style updates before reflow, and both before painting.
Bug 375436, r+sr=roc, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@232489 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-22 02:57:08 +00:00
enndeakin%sympatico.ca
2d50789155 Bug 390420, select dropdowns appearing in the wrong place in some cases, r+bz,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@231791 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-10 12:42:11 +00:00
bzbarsky%mit.edu
3524c6eee1 Introduce a setter for nsHTMLReflowState::mComputedHeight so that we're sure to
update the resize flags properly.  Bug 388084, r+sr+a=dbaron


git-svn-id: svn://10.0.0.236/trunk@231323 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 18:08:07 +00:00
roc+%cs.cmu.edu
cb8c6e3a11 Bug 379349. Add support for 'overflow containers' --- special frame continuations that do not map any content of their own, but serve only as containers for laying out children that overflowed their parents' content height. patch by fantasai, r+sr=eli,roc
git-svn-id: svn://10.0.0.236/trunk@231012 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 04:03:31 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
mats.palmgren%bredband.net
fd18364353 Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@229301 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-04 02:15:35 +00:00
bzbarsky%mit.edu
120bd0f922 Fix parent style context warnings by being consistent about parent contexts.
Bug 380116, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@228164 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-16 05:11:20 +00:00
joshmoz%gmail.com
a0823a7996 don't let comboboxes render their labels over the native combobox button on Mac OS X. b=382043 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@227136 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-29 05:31:05 +00:00
joshmoz%gmail.com
2d8394f491 don't add scrollbar width to getPrefWidth in nsComboboxControlFrame if the themed widget has set the internal button width to 0. b=381669 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@226897 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 19:16:27 +00:00
joshmoz%gmail.com
c36c8cb71d Don't paint the background for the text frame in comboboxes if the combobox is themed. b=381268 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@226797 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-22 19:42:01 +00:00
joshmoz%gmail.com
1ecbf501ec don't put a dropmarker in comboboxes if nsITheme says not to. b=370282 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@226601 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-18 03:04:05 +00:00
mats.palmgren%bredband.net
e14885ac03 Protect against frame destruction during event handling and document when that can occur. b=378670 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@226572 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-17 11:12:31 +00:00
Olli.Pettay%helsinki.fi
7a1f7182a1 Bug 363089, Remove nsIDOMEventReceiver (this time passes mochitest), r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@226373 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-14 09:13:09 +00:00
Olli.Pettay%helsinki.fi
74bedad7b0 backout Bug 363089
git-svn-id: svn://10.0.0.236/trunk@226300 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-11 13:34:12 +00:00
Olli.Pettay%helsinki.fi
174896a945 Bug 363089, Remove nsIDOMEventReceiver, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@226293 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-11 11:15:20 +00:00
bzbarsky%mit.edu
ba5badedcb Change the FrameNeedsReflow API to pass the dirty flags to be added directly to
the method, instead of setting them before calling the method.  That way we can
avoid reflowing the ancestor of a reflow root which is not itself dirty but has
dirty children.  This also makes it harder to set dirty bits inconsistently
with the FrameNeedsReflow call.  Bug 378784, r+sr=dbaron, pending rbs' review
on the mathml parts.


git-svn-id: svn://10.0.0.236/trunk@226007 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-06 19:16:52 +00:00
bzbarsky%mit.edu
9e011d6aac Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@225951 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 06:37:05 +00:00
bzbarsky%mit.edu
c9d1ba7b1a Don't cut off the right-hand side of empty comboboxes. Bug 364510, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225949 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 06:20:10 +00:00
bzbarsky%mit.edu
c3f6f64793 Make assertion reflect reality better. Bug 357044, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@225062 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-26 01:17:05 +00:00
bzbarsky%mit.edu
116d69628c Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch by
Taras Glek <tglek@mozilla.com>, rs=roc.


git-svn-id: svn://10.0.0.236/trunk@222659 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 21:11:47 +00:00
joshmoz%gmail.com
78d4f44ff6 remove app-specific code from tier-9 code. add a pref to handle native popup windows on Mac OS X instead. b=323062 r=smorgan sr=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@222655 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 19:51:52 +00:00
Olli.Pettay%helsinki.fi
6de13cdbca 375196, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@222385 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-26 05:38:22 +00:00
bzbarsky%mit.edu
c6883a6983 Make the display frame resize correctly when the <select>'s width changes. Bug
370422, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@221058 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-28 03:04:38 +00:00
dbaron%dbaron.org
32d54152c9 Clean up IsFrameOfType methods to call their base class IsFrameOfType methods reliably. b=341326 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@220874 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 18:33:33 +00:00
bzbarsky%mit.edu
ee4ee8ea0b Make blocks whose ancestors are not blocks have the NS_BLOCK_MARGIN_ROOT and
NS_BLOCK_SPACE_MGR bits as necessary.  Bug 354600, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@220533 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-18 23:53:25 +00:00
asqueella%gmail.com
11bad405e3 bug 257868 - remove the nsIPresShell::SetAnonymousContentFor() API, make the frames store strong refs to the anonymous content instead. Decomtaminate nsIAnonymousContentCreator.
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@220517 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-18 17:34:09 +00:00
joshmoz%gmail.com
e7da86e63d extend nsITheme to support native focus drawing. b=370549 r=dbaron sr=roc
git-svn-id: svn://10.0.0.236/trunk@220364 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-16 01:53:43 +00:00
sharparrow1%yahoo.com
db1730f015 Bug 370303: Cleanup in layout/forms. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@220186 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-15 10:58:31 +00:00
smontagu%smontagu.org
a2b9c77fed Remove obsolete state bit NS_BLOCK_SHRINK_WRAP. Bug 369243, r=bz, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@220168 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-15 05:07:57 +00:00
sharparrow1%yahoo.com
948ceb9772 Bug 370185: clean up view header includes (trivial). rs=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@219988 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-12 19:31:59 +00:00
sharparrow1%yahoo.com
dd459d0a71 Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-07 07:46:44 +00:00
bzbarsky%mit.edu
78ccec5f86 Remove some no longer needed code. Bug 368273, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@219168 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 05:52:27 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
bzbarsky%mit.edu
343ced44ba Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags.  Bug 367442, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@218933 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-26 00:05:12 +00:00
bzbarsky%mit.edu
271b9a66d3 Fix the width computations for the dropdown to actually account for the border
and padding.  Bug 365837, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@218208 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-11 17:59:41 +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
bzbarsky%mit.edu
ee561228eb Back out bug 354600 to fix regressions.
git-svn-id: svn://10.0.0.236/trunk@215446 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-19 20:23:56 +00:00
bzbarsky%mit.edu
77b17ef48c Make block frames that are not kids of blocks automatically have space managers
(and margin roots, except in the columns case) so we don't have to play
whack-a-framestate-flag.  Bug 354600, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@215356 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-16 17:51:53 +00:00
masayuki%d-toybox.com
f9d0bdd858 Bug 359496 focus outline on combobox <select>s is always drawn in black r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@214721 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-04 17:28:39 +00:00
bzbarsky%mit.edu
da39432a29 Fix combobox outlines. Bug 328340, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@214649 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-03 00:22:31 +00:00
mats.palmgren%bredband.net
b8a8f64bb5 Make sure we fire onchange also after selectedIndex was set to -1 through DOM. Thanks to Pablo Greco for helping fix this. b=317078 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@212915 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-30 05:07:49 +00:00
uriber%gmail.com
82db7c90c5 When the control is RTL, align the drop-down with the right edge of the control. bug=203353 r=smontagu sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@207268 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-13 19:34:58 +00:00