545 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
aa0d9d217e Bug 413048. Disable float breaking in columns. r+sr=dbaron,a=ss
git-svn-id: svn://10.0.0.236/trunk@253804 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-25 09:47:08 +00:00
dbaron%dbaron.org
c89087138e Compute widths for replaced block clearing past floats once we're at the correct vertical position. b=430813 r+sr=roc a=schrep
git-svn-id: svn://10.0.0.236/trunk@251144 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-03 23:34:08 +00:00
fantasai.cvs%inkedblade.net
f493b19190 consider relevant overflow when balancing columns (fixes various crashes and hangs) b=404215 r+sr=roc a=beltzner
git-svn-id: svn://10.0.0.236/trunk@250437 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-18 07:40:37 +00:00
dbaron%dbaron.org
d5574dc143 Fix bug 427129 / 377664: When displacing blocks that don't interact with floats around floats, displace the border box rather than the margin box. Fix bug 427782: Simultaneously, only displace when the width actually won't go down to an amount that fits (i.e., if it will go to an amount smaller than the intrinsic minimum width, let it). b=427129 r+sr=roc a=schrep
git-svn-id: svn://10.0.0.236/trunk@250238 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-15 01:06:51 +00:00
mats.palmgren%bredband.net
2af0d1e32c The position of an outside bullet should not be affected by floats inside the principal block (this fixes most cases). b=427370 r+sr=dbaron a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@250155 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-13 17:43:13 +00:00
bmlk%gmx.de
aa6eb68cc2 There is no height greater than unconstrained height, bug 402872, r/sr=roc a=beltzner
git-svn-id: svn://10.0.0.236/trunk@247360 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-08 09:12:30 +00:00
jag%tty.nl
66730e483a Bug 416998: Fix the order of member variable initializers for a few constructors. sr=bz, a=schrep
git-svn-id: svn://10.0.0.236/trunk@245954 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 07:36:52 +00:00
dbaron%dbaron.org
34753d1cd7 Push scrollframes, tables, and other blocks that don't participate in float formatting down when they don't fit next to floats. b=134706,349255 r+sr=roc a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@244318 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 07:41:28 +00:00
fantasai.cvs%inkedblade.net
20fb8dda07 fix border/padding and availableHeight calculations at page/column breaks, b=368079 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@243862 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-24 00:28:43 +00:00
fantasai.cvs%inkedblade.net
5bb95e5d58 backing out patch to bug 368079 to investigate reftest failure
git-svn-id: svn://10.0.0.236/trunk@243181 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-16 04:59:15 +00:00
fantasai.cvs%inkedblade.net
8956db9438 fix border/padding and availableHeight calculations at page/column breaks, b=368079 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@243176 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-16 03:54:47 +00:00
roc+%cs.cmu.edu
fb0f869d56 Bug 363729. Don't allow fixed-pos tables to have abs-pos children. r=dholbert,sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240886 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 01:21:34 +00:00
fantasai.cvs%inkedblade.net
3a00ff8d0e paginate absolutely-positioned elements, b=154892 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@237057 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 05:57:46 +00:00
roc+%cs.cmu.edu
12dd7ea12e Bug 389583. Floats fit if their bottom edge is equal to the available space bottom edge. r=eli,sr=mats,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@233827 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-04 04:04:12 +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
sharparrow1%yahoo.com
4a33b1c9b7 Bug 386900: Topic images rendered in wrong place on slashdot. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@229439 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-06 18:22:56 +00:00
sharparrow1%yahoo.com
ccca0cbd9c Fix warning from Bug 285608. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@229340 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-04 23:38:39 +00:00
sharparrow1%yahoo.com
d859fb8d6f Bug 386147: Don't cut off floats at the bottom of the page (part 1). r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@229130 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 05:26:52 +00:00
sharparrow1%yahoo.com
71d3bb6608 Bug 343595: {inc} overflow:hidden float in overflow:hidden div doesn't get repositioned correctly. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@229127 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 05:19:57 +00:00
sharparrow1%yahoo.com
3e9bf4e918 Bug 285608: hangs when page with float printed. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@228847 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 16:35:31 +00:00
sharparrow1%yahoo.com
b12e3b26ae Bug 381385: get rid of unneeded members of nsFloatCache (saves about 50 bytes footprint per float). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@228176 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-16 20:27:46 +00:00
bzbarsky%mit.edu
1788f844d4 Make computed style handle "normal" for line-height by computing an actual
numeric height.  Bug 371041, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@225943 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 05:30:10 +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
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
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
mats.palmgren%bredband.net
14e7266121 Rename IsSplittable() to GetSplittableType(). b=349973 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@217227 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-20 03:52:34 +00:00
roc+%cs.cmu.edu
08f7e2bd9a Bug 359371. Don't leak overflowing frames if a bug occurs and we still have overflowing frames in an unconstrained reflow situation. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@216866 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-12 01:06:23 +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
f119c67ad5 Don't overlap scroll frame margin box with float (regression). b=350046 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@208474 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 22:55:32 +00:00
mats.palmgren%bredband.net
2b07153d10 1. Make scroll frames non-splittable.
2. Make a placeholder splittable only if the out-of-flow is.
3. If a float placeholder is not splittable then place it immediately
   instead of failing to reflow it because it can't be split.
b=337419 (Patch B) r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@208285 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-24 05:22:16 +00:00
mats.palmgren%bredband.net
b87855df49 Block-level replaced element margin box must not overlap any floats. b=342531 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@201547 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-05 03:53:22 +00:00
roc+%cs.cmu.edu
b1ae3cf7e7 relanding fix for bug 317278 :-(
git-svn-id: svn://10.0.0.236/trunk@201179 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-29 01:19:48 +00:00
roc+%cs.cmu.edu
bd9175c940 Bug 237085. Move string subdivision code to gfx so we can efficiently make it metrics-dependent. r=smontagu,sr=rbs
git-svn-id: svn://10.0.0.236/trunk@200963 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-26 22:18:23 +00:00
roc+%cs.cmu.edu
d643001e93 Bug 317278. Reland patch that reflows lines again if we detect some already-placed floats need to move to the next line. This time, with changes to nsSpaceManager's PushState/PopState infrastructure so that dynamic allocations are never required; the saved state is always stack-allocated by callers. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@200367 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 23:06:59 +00:00
roc+%cs.cmu.edu
fd309fa894 Backing out patch for 317278 due to Tp regression
git-svn-id: svn://10.0.0.236/trunk@200257 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 01:29:07 +00:00
roc+%cs.cmu.edu
6d142c7e60 Bug 317278. In some cases we push float placeholders from one line to the next after we have already placed their floats on the line. In such situations, reset the space manager and force the line to reflow again so those floats don't get placed. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@200256 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 00:02:49 +00:00
dbaron%dbaron.org
b258ce85ca Single line comments to describe files (helpful in LXR)
git-svn-id: svn://10.0.0.236/trunk@193203 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-29 18:29:03 +00:00
bzbarsky%mit.edu
e4ee61a82c Fix bug 303039 -- make sure to get the right max-width even if we have no
lines.  r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@188867 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 18:50:41 +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
b4617efcf5 Bug 312777. Don't pass negative-margin-box floats to the space manager; correct them and preserve the right margin-edge on left floats and the left margin-edge on right floats. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@183303 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-01 01:16:45 +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
4e94da951e Fix some nsFloatCache leaks. Bug 302438, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@182747 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 22:23:28 +00:00
roc+%cs.cmu.edu
419aa6d88e Bug 189739. During SHRINKWRAP, lines that skip being reflowed need to add their right margin to their mBounds.XMost for the shrink-wrap width computation. Fixes an incremental reflow regression. r+sr=dbaron,a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@177008 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 20:17:36 +00:00
bzbarsky%mit.edu
3f6088524e Fix border width inheritance by keeping track of both the border width we'd
have if our style were not none/hidden and the actual computed border width.
Bug 290377, r+sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@172872 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-29 15:44:38 +00:00
roc+%cs.cmu.edu
0d1ac7f10f Bug 288560. Set mIsTopOfPage for each column in a column set. Also, make it possible to force floats to fit by relaxing the space manager's height constraint if necessary. r+sr=dbaron,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@172829 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 21:25:11 +00:00
roc+%cs.cmu.edu
5efc210e97 Bug 174688. Don't apply top border-padding to block frames that aren't first in flow. Also, when a block is incomplete, ensure the frame extends to fill the entire available height. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172719 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-26 02:26:12 +00:00
roc+%cs.cmu.edu
7f1a3c9c93 Bug 263825. Make paginated floats work, and other fixes. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171036 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 03:35:08 +00:00
roc+%cs.cmu.edu
2baddd70c5 Bug 276602. The rects added to the space manager are not real rects; they are still significant if empty. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@170257 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 02:30:14 +00:00