Commit Graph

749 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
1c0ec946ec Bug 359371. Handle reflows where we switch from constrained height to unconstrained, without losing frames. r+sr=dbaron,a=jay
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@217315 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-21 21:50:09 +00:00
roc+%cs.cmu.edu
a2c37dc7d3 Fixing bustage
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@216018 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-28 22:23:11 +00:00
roc+%cs.cmu.edu
3bafed58d3 Bug 312963. Honor aTryPull when reflowing inline frames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@216015 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-28 22:12:57 +00:00
roc+%cs.cmu.edu
c362499727 Bug 312963. Don't put new frames on the same line as continuation placeholders. r+sr=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@216012 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-28 21:55:06 +00:00
mats.palmgren%bredband.net
cf4262764a Don't steal floats from descendant float containing blocks. b=348887 (patch B) r+sr=roc a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@209809 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 00:46:38 +00:00
mats.palmgren%bredband.net
7f95191a6c Don't iterate past the beginning line (crash fix). b=350370 r+sr=bzbarsky a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@208908 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-31 16:57:49 +00:00
mats.palmgren%bredband.net
e07aab8bbf Don't steal floats from descendant float containing blocks. b=348887 (Patch A) r+sr=roc a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@208464 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 21:47:08 +00:00
mats.palmgren%bredband.net
2cc5037c44 Leave the placeholder's pointer to the out-of-flow intact because the float cache depends on it later on. b=348688 r=bzbarsky sr=roc a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@208282 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-24 04:16:01 +00:00
mats.palmgren%bredband.net
76b3994b2d Don't make a frame on the overflow line list a sibling to a frame on the principal line list. b=344557 r+sr=roc a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@206659 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-06 04:18:56 +00:00
mats.palmgren%bredband.net
4cff40bd22 Clear the float cache from placeholders that are descendants of the frame we remove. b=337883 r+sr=roc a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@205064 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-28 18:20:55 +00:00
roc+%cs.cmu.edu
be469f1a3b Bug 282173. Remove BuildFloatList. r+sr=dbaron,a=mtschrep
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@202107 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-14 01:16:18 +00:00
dbaron%dbaron.org
502c65c2da Make conditions that cause additional pass for shrink wrap case less restrictive so that we do the additional pass inside a shrink-wrap scrollframe. b=325680 r+sr+a181=roc
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@200430 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 15:36:52 +00:00
aaronleventhal%moonset.net
fcc22ab6ae Bug 326090. <hr> not being exposed as ROLE_SEPARATOR. Patch by Mike (Ming) Gao. r=aaronlev, sr=roc
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@195571 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 17:01:20 +00:00
mats.palmgren%bredband.net
6b99299a45 Look for the next-in-flow in the overflow-list when the next normal line did not contain it. b=310638 r+sr+a=roc
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@190209 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-16 09:24:50 +00:00
uriber%gmail.com
5ee3ee3d2c Bug 312550: Incorrect wrapping in RTL textarea with horizontal scrollbar. r=smontagu sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@187011 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-05 20:48:14 +00:00
roc+%cs.cmu.edu
48a7e4dc1c Bug 307158. Half-heartedly account for vertical scrollbar presence when positioning absolute children relative to the right edge of a scrollable container. r+sr=dbaron with regrets,a=asa.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@182445 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 05:17:51 +00:00
dbaron%dbaron.org
ab673f134e Back out 307158 to fix 310736. GetActualScrollbarSizes is not meaningful on a frame in the middle of reflow. a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181536 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 02:15:30 +00:00
roc+%cs.cmu.edu
a0230a3fb3 Bug 307158. Account for scrollbar sizes when computing geometry of absolutely-positioned children of scrolled elements. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181365 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-30 23:46:22 +00:00
roc+%cs.cmu.edu
9929436403 Bug 295815. Don't worry about the float's band-height when computing its height constraint, just look at the available content area for the containing block. r+sr=dbaron,a=mscott
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@181348 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-30 22:26:45 +00:00
masayuki%d-toybox.com
b2e9da311e Bug 92217 [reflow] text doesn't rewrap after becoming small enough to wrap patch by <saito@densan.co.jp> r+sr=dbaron, a=benjamin
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@180951 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-26 10:40:09 +00:00
mats.palmgren%bredband.net
d6a00c7634 Avoid trying to make an inside bullet frame its own sibling. b=217903 r+sr=bzbarsky a=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179450 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-01 00:39:06 +00:00
roc+%cs.cmu.edu
644a811840 Bug 295767. Simplify and fully analyze all the cases for inferring previous-margin changes. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@178866 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 21:45:02 +00:00
bzbarsky%mit.edu
edb46c15b4 Insert child frames that belong at the front of our list after mBullet if we
have an inside bullet.  Bug 295947, r+sr=dbaron, a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176973 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 14:38:16 +00:00
bzbarsky%mit.edu
a76c585865 Don't carry out the bottom margins of kids if the block's height is affected by
min-height or max-height.  Bug 295309, r+sr=roc, a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176971 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 14:32:46 +00:00
roc+%cs.cmu.edu
33cee32ff7 Bug 291757. Propagate inline clearance status for lines we reflowed as well as lines we didn't. This ensures that during incremental reflow, we'll reflow lines which have a <br clear=> above them if their clearance is changing. r+sr=dbaron,a=benjamin
git-svn-id: svn://10.0.0.236/trunk@176800 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-28 19:50:04 +00:00
roc+%cs.cmu.edu
69dc3ea41b Bug 299742. Blocks that contain lines with clearance need not reflow those lines if there are no floats in the space manager yet and no lines need to be reflowed otherwise.
git-svn-id: svn://10.0.0.236/trunk@176640 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 21:35:59 +00:00
roc+%cs.cmu.edu
62fdbc435c Bug 223737. Lines that were pushed below a float should be treated as impacted by the float. r+sr=dbaron,a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176638 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 21:33:28 +00:00
bzbarsky%mit.edu
78f1691411 Backing out fix for bug 223737, since it causes severe performance problems
when typing at the beginning of long text in a textarea (and in general can
cause us to reflow a lot more lines than we should have to).  a=roc


git-svn-id: svn://10.0.0.236/trunk@176413 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 22:17:34 +00:00
roc+%cs.cmu.edu
fb44056174 Bug 294934. Absolute positioning should be relative to the padding edge, so we need to set the absolute containing block size to the size of the padding-box of any wrapper frame. r+sr=dbaron,a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176287 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 22:06:39 +00:00
roc+%cs.cmu.edu
d8db9bacdf Bug 295690. Force reflow of *all* lines in the same space manager as a float that's removed. r+sr=dbaron,a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176285 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 21:58:41 +00:00
roc+%cs.cmu.edu
b448928e1f Bug 295690. When a float is removed, reflow all lines associated with the space manager, to ensure any lines that used to be impacted are reflowed. r+sr=dbaron,a=benjamin
git-svn-id: svn://10.0.0.236/trunk@175281 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 03:40:35 +00:00
roc+%cs.cmu.edu
ce1b9ce1d3 Bug 186485. The nsLineBox maximum-width includes the block's left border-padding but not the right. r+sr=roc,a=asa,patch by Hideo Saito
git-svn-id: svn://10.0.0.236/trunk@174836 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-20 03:42:19 +00:00
roc+%cs.cmu.edu
81c2c6644b Bug 223737. Always reflow the next line after splitting a frame, even if it's complete. r+sr=roc,a=asa,patch by Hideo Saito
git-svn-id: svn://10.0.0.236/trunk@174835 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-20 03:38:45 +00:00
roc+%cs.cmu.edu
bbe47c39fb Bug 292295. Blocks with clearance are not actually top-margin-roots. Their top margin is still managed by the parent block if there is one. Fixes an Acid2 issue. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@174665 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 02:54:57 +00:00
bzbarsky%mit.edu
db61e09837 Fix list renumbering regression. Bug 293070, r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@173502 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 03:15:14 +00:00
roc+%cs.cmu.edu
92fc005e2b Bug 292690. Don't expand block width to MEW, that makes no sense. r+sr=dbaron,a=shaver
git-svn-id: svn://10.0.0.236/trunk@173473 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-16 19:49:41 +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
131435cb9a Bug 240276. Make nsHTMLScrollFrame be a regular HTML frame, not a box frame, so we don't have to go through box layout. It gets its own reflow implementation that handles min-max and lots of other good stuff. rs+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172836 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 21:57:22 +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
13f630b1b6 Bug 215760. Don't crash when we have a float continuation whose first-in-flow placeholder is inside an inline; make sure we find a preferred container that's an actual block. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172718 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-26 02:24:20 +00:00
roc+%cs.cmu.edu
257fddd81f Bug 290297. Reconstruct previous margin after propagating float damage, in case that dirties the line. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172510 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-20 21:45:24 +00:00
roc+%cs.cmu.edu
3b48266d9a Bug 290469. Don't trust the offset returned by GetOffsetFromView. r+sr=bzbarsky,a=asa
git-svn-id: svn://10.0.0.236/trunk@172459 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-19 23:06:47 +00:00
bzbarsky%mit.edu
42816d03e0 Make splitters use the right coord system for events, and fix up the review
comment from bug 289792.  Fixes bug 290464 and bug 290469 respectively.
r+sr=roc, a=brendan


git-svn-id: svn://10.0.0.236/trunk@172386 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-18 05:18:34 +00:00
roc+%cs.cmu.edu
3d63df3114 Bug 289792. Make sure to use the correct (but stupid) reference view when translating event coordinates. Also, bulletproof nsViewManager to not rely on frames undoing event coordinate translations, in case we ever screw that up. r+sr=bzbarsky,a=asa
git-svn-id: svn://10.0.0.236/trunk@172244 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-14 22:41:52 +00:00
bzbarsky%mit.edu
46d9cf3192 Don't copy/paste code to cast to placeholder frames all over the place; use a
utility method instead.  Bug 276954, r+sr=roc, a=brendan


git-svn-id: svn://10.0.0.236/trunk@172225 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-14 15:30:35 +00:00
dbaron%dbaron.org
72020748e5 Implement CSS2 counters. b=3247 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171473 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-01 23:07:00 +00:00
roc+%cs.cmu.edu
1985d5ca0b Bug 272547. Search through wrapped frames when looking for blocks to renumber. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171280 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-28 21:05:04 +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
29bff429e9 Bug 282754. When laying out absolute children, use the computed width/height of the primary frame as the container metrics if they're available. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@170957 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-21 21:43:01 +00:00