337 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
f86284ab1a Backing out 413027 again.
git-svn-id: svn://10.0.0.236/trunk@247721 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 09:14:17 +00:00
roc+%cs.cmu.edu
87c7eadcee Bug 413027. The XUL pref and min height for a CSS block should be its height when reflowed at its preferred width, NOT the height of the tallest line. r+sr=dbaron. Relanding with additional XUL box layout fix to increase the frame size to the minimum size required by children even if they don't change size during layout, and a fix to scrollframes so they don't depend on being able to set a size for scrollbars less than their minimum size. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@247719 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 08:40:44 +00:00
roc+%cs.cmu.edu
9467183c9f Bug 405952. Add scrollbar width to pref and min widths for overflow:scroll elements but for no other overflow values. r+sr=bzbarsky,dbaron,dholbert, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@246753 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-28 20:37:06 +00:00
roc+%cs.cmu.edu
bcd6b5373f Bug 416168. Ensure that the overflow rect for a frame always includes (0,0) even if the frame rect is empty. Also ensures that if the frame rect is empty but has non-zero dimension on one axis, the overflow rect includes that size. A scrolled view for such a frame also includes that size to ensure width:0,height:Npx and width:Npx,height:0 frames are scrollable by that amount. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@246659 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 09:46:23 +00:00
dougt%meer.net
a89c64d0d4 use of max(a,b) is confusing windows mobile compiler. b=419653, r=dbaron, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@246599 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 01:51:57 +00:00
roc+%cs.cmu.edu
0838e693a1 Bug 416752. Use the scrollbar min-height/min-width to establish the minimum scrollport size, not the pref-height/pref-width. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@246424 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-25 01:21:08 +00:00
reed%reedloden.com
5245ccb22e Bug 383267 - "When fontHeight is very large, pagescroll height(pageincrement value) is too small" [p=masa141421356@gmail.com (Masahiro Yamada) r+sr=roc a1.9=beltzner]
git-svn-id: svn://10.0.0.236/trunk@246397 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-24 07:35:08 +00:00
roc+%cs.cmu.edu
78603720e9 Bug 407095. Reflow in more situations where horizontal scrollbar appears or disappears. May hurt Tp, let's watch. r+sr=dbaron,a=damon
git-svn-id: svn://10.0.0.236/trunk@246355 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-23 10:16:00 +00:00
dbaron%dbaron.org
a9c7cec63e Expose GetBodyContent and use it to avoid performance hit of nsIDOMHTMLDocument::GetBody. b=331530 r+sr=sicking a=schrep
git-svn-id: svn://10.0.0.236/trunk@245996 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 18:47:35 +00:00
dbaron%dbaron.org
991e9997f2 Treat backgrounds on body the same in XHTML as for HTML. b=379461 r+sr=bzbarsky a=schrep
git-svn-id: svn://10.0.0.236/trunk@245994 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 18:46:21 +00:00
dbaron%dbaron.org
90cff3a274 Back out for now, until I have a chance to fix reftests depending on old behavior.
git-svn-id: svn://10.0.0.236/trunk@245983 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 17:28:00 +00:00
dbaron%dbaron.org
d26fe6695b Expose GetBodyContent and use it to avoid performance hit of nsIDOMHTMLDocument::GetBody. b=331530 r+sr=sicking a=schrep
git-svn-id: svn://10.0.0.236/trunk@245980 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 16:48:09 +00:00
dbaron%dbaron.org
408f7c7143 Treat backgrounds on body the same in XHTML as for HTML. b=379461 r+sr=bzbarsky a=schrep
git-svn-id: svn://10.0.0.236/trunk@245979 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 16:47:12 +00:00
Olli.Pettay%helsinki.fi
3b68db91c5 Bug 392698, ASSERTION: can't mark frame dirty during reflow, r+sr=roc, a=blocking1.9
git-svn-id: svn://10.0.0.236/trunk@241872 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-20 23:49:46 +00:00
roc+%cs.cmu.edu
ca8c1bc4b0 Bug 407009. In the last-ditch reflow of a scrollframe, only show the scrollbars which are not styled 'hidden'. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240895 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 02:28:50 +00:00
roc+%cs.cmu.edu
82bba27062 Bug 407015. Dropdown listboxes should not propagate computed height from the scrollframe to its scrolled content. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240595 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-07 00:10:32 +00:00
roc+%cs.cmu.edu
a497169ebc Bug 375304. Make nsHTMLScrollFrame handle situations where the child content height depends on our height. patch by Eli Friedman, r+sr=roc,dbaron
git-svn-id: svn://10.0.0.236/trunk@240490 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 03:05:57 +00:00
dholbert%cs.stanford.edu
41dba10844 Bug 402567: make scrollframe GetMinWidth return the scrolled frame's min-width.
r+sr=dbaron a=blocking1.9


git-svn-id: svn://10.0.0.236/trunk@240446 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-04 22:03:17 +00:00
roc+%cs.cmu.edu
1d260b234d Backing out bug 375304 to fix reftest failures.
git-svn-id: svn://10.0.0.236/trunk@240221 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-01 11:49:14 +00:00
roc+%cs.cmu.edu
b3bb8ffcc4 Bug 375304. Fix absolute positioning where the abs-pos container is scrollable and has a height constrained by min-height etc. Patch by Eli Friedman, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@240216 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-01 10:38:09 +00:00
reed%reedloden.com
ffb383f98a Bug 395628 - ""ASSERTION: post-reflow queues not empty" with feed in <frame>" [p=mats.palmgren@bredband.net (Mats Palmgren) r=smaug r+sr=dbaron a=blocking1.9+]
git-svn-id: svn://10.0.0.236/trunk@240204 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-01 07:22:45 +00:00
roc+%cs.cmu.edu
fba1c21e90 Bug 364801. nsHTMLScrollFrame::RemoveFrame needs to destroy the frame it removes. r+sr=mats
git-svn-id: svn://10.0.0.236/trunk@239617 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-18 22:24:21 +00:00
roc+%cs.cmu.edu
2976f217bc Backing out bug 375304 because of reftest failure
git-svn-id: svn://10.0.0.236/trunk@239180 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-12 03:40:28 +00:00
roc+%cs.cmu.edu
b995968e7a Bug 375304. Fix absolute positioning for scrolled abs-pos containers with weird height constraints. patch by Eli Friedman, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@239179 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-12 02:20:13 +00:00
Olli.Pettay%helsinki.fi
0e4ff6afd5 Bug 397641, AsyncScrollPortEvent posted even if overflow/underflow event won't be dispatched r=mats+roc, sr=mats, a=roc
git-svn-id: svn://10.0.0.236/trunk@237398 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-08 08:42:43 +00:00
dholbert%cs.stanford.edu
3916f84409 Bug 397852: ASSERTION: Doing nscoord addition with values > nscoord_MAX
r=roc sr=roc a=roc


git-svn-id: svn://10.0.0.236/trunk@237000 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 16:43:02 +00:00
roc+%cs.cmu.edu
8847af4e48 Bug 139843. Back out width adjustment patch that breaks other things and may no longer be needed. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@236188 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-18 02:54:48 +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
bzbarsky%mit.edu
115c3ca516 Don't add a dirty bit that shouldn't be needed. Bug 387209, r+sr=roc, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@231847 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-10 20:08:10 +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
sharparrow1%yahoo.com
10d92b371f Bug 384876: Padding gets added at both sides when overflow is used.
git-svn-id: svn://10.0.0.236/trunk@230371 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-20 18:35:20 +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
sharparrow1%yahoo.com
7645b7424a Bug 381645: Remove nsBoxFrame::GetContentOf. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@226846 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 03:48:43 +00:00
sharparrow1%yahoo.com
d387c5a846 Bug 381621: Get rid of nsBoxFrame::AddRef/Release, plus a few misc cleanups. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@226807 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-22 20:34:00 +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
708c53b956 Make InitialReflow just post a reflow event instead of doing a synchronous
reflow.  Bug 378975, r=dbaron and Eli Friedman, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@225391 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-01 17:15:08 +00:00
bzbarsky%mit.edu
4d238d61d2 Fix the vertical scrollbar guessing in nsHTMLScrollFrame to do better for an
initial reflow if we're doing that initial reflow a ways into the document
load.  Bug 378480, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@225067 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-26 02:29:21 +00:00
Olli.Pettay%helsinki.fi
4bdc84ba5d Bug 374090, Crash [@ nsGfxScrollFrameInner::GetScrollPortSize] with noframes and setting binding on root element, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@224486 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-13 14:07:40 +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
sharparrow1%yahoo.com
0f8c1f9784 Bug 373474: Scrollbar buttons don't get invalidated (i.e. for notification box or resizing). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@222530 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-28 06:24:40 +00:00
Olli.Pettay%helsinki.fi
a845d206e6 Bug 373564, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@221838 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-13 22:11:14 +00:00
roc+%cs.cmu.edu
f6ae161325 Bug 363253. Move scrollframe attribute-setting out of reflow to a post-reflow callback. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@221296 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-05 01:39:53 +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
sharparrow1%yahoo.com
ac106dc516 Bug 370379: Create views less frequently. Stops creating views for -moz-hidden-unscrollable, opacity, fixed backgrounds, and scrollbars, plus removes some unneeded methods from views and view managers. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@220852 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 00:23:42 +00:00
bzbarsky%mit.edu
dfad41fa5a deCOMtaminate SetBounds(), GetChildBox(), GetNextBox(), GetParentBox(),
GetVAlign(), GetHAlign().  Remove GetInset().  Bug 243370, patch by Andreas
Lange <anlan@lange.cx>, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@220744 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-22 18:05:14 +00:00
bzbarsky%mit.edu
ad76b76ce9 Set the used padding on the scrolled frame, since we're munging its padding.
Bug 370794, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@220588 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-20 18:54:16 +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
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
6e5369ff05 Update scrollframes to the new GetCollapsed() API too. Bug 369127, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@219432 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-03 00:08:19 +00:00
Olli.Pettay%helsinki.fi
ba610d02ec Bug 243370, deCOMtaminate parts of nsIFrame that come from nsIBox, part 2, p=anlan@lange.cx, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219259 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-31 16:02:42 +00:00