758 Commits

Author SHA1 Message Date
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
bzbarsky%mit.edu
9ad95bdc3a Add an IsFloatContainingBlock() method on nsIFrame, use this in the frame
constructor.  Make sure the div inside an <object> when we do our "we need a
plugin" thing has the space manager bit set.  Bug 283385, bug 285165, bug
286111.  r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@170874 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-18 04:13:05 +00:00
roc+%cs.cmu.edu
ba55bbdc33 Bug 281267. Force reflow of lines during absolute incremental reflow if the block is not a space manager, because we need to push our floats (or our descendants') into the space manager. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@170315 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 20:48:12 +00:00
roc+%cs.cmu.edu
5ef4f18208 Bug 276892. Cancel selection if the mouse button is released in some subdocument. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@170254 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 00:34:44 +00:00
roc+%cs.cmu.edu
e0d871feb8 Bug 277420. Use ConstructBlock when creating scrolled and absolutely positioned blocks. Removes copied code and makes columns work in such situations. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168959 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-08 02:15:26 +00:00
bzbarsky%mit.edu
807f289552 Move reflow command construction into nsPresShell::AppendReflowCommand, remove
some members, switch some callers to the non-COM-ish apis.  Bug 267085, r+sr=rbs


git-svn-id: svn://10.0.0.236/trunk@168953 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-08 00:59:52 +00:00
bzbarsky%mit.edu
2bea98552c Remove prescontext args for some nsIFrame methods
(Append/Insert/Remove/ReplaceFrames) and for some methods in table land.  Patch
by Vidar Braut Haarr <bugmail@q1n.org>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@168894 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 01:58:25 +00:00
roc+%cs.cmu.edu
5c926511eb Bug 263099. Fix coordinate translation in event handling when finding the relevant line of nested blocks. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168891 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 01:09:58 +00:00
roc+%cs.cmu.edu
1984f9a568 Bug 274249. Stop double-counting the top margin of collapsed-through empty blocks, by moving the line bounds back up above its empty block by the top margin amount (while leaving the empty block in the same (correct) place). r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@168685 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 01:33:20 +00:00
emaijala%kolumbus.fi
a85772433d Fix for bug 212034: Page break before huge table row inconsistent in print, preview, XP, Linux
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168447 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-28 16:24:09 +00:00
roc+%cs.cmu.edu
f29d6c1b55 Bug 273946. We actually don't need to correct the y-position of empty blocks; it's already correct for both the collapsing-with-parent and not-collapsing-with-parent cases. Also, clearance on an empty line should force subsequent lines to apply their top margins. Also, clearance on an empty line should *not* prevent its top and bottom margins from collapsing. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@168416 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-27 20:54:27 +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
bzbarsky%mit.edu
e412607690 Fix percentage heights on auto-width floats. Bug 216303, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@168267 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-24 23:38:11 +00:00
bzbarsky%mit.edu
aea50874fc Make incremental reflow of abs pos elements less eager to actually reflow
them.  Bug 277760, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168209 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-23 21:44:46 +00:00
mats.palmgren%bredband.net
19ab527ce1 Translate events to child frame's closest view before delegating them. b=180015 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@167830 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-16 18:10:05 +00:00
bmlk%gmx.de
3aaa480127 if a non percent min width is specified it should be the lower bound of the MEW bug 273361 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@167825 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-16 16:17:31 +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
bmlk%gmx.de
adcb976e59 remove unused prescontext from PlaceFrameView, PlaceChildsView, ConsiderChildOverflow bug 276092 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@167045 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-27 15:05:18 +00:00
bmlk%gmx.de
e547c59f49 remove unused prescontext argument from GetOffsetFromView bug 276015 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@167037 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-26 19:48:54 +00:00
mats.palmgren%bredband.net
789b6ede07 Fix a crash when the next-in-flow is on the same line (::first-letter). b=268119 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@166630 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-12 18:15:53 +00:00
bzbarsky%mit.edu
9d9fbba5d2 Fixing build bustage. Bug 263581.
git-svn-id: svn://10.0.0.236/trunk@165909 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-29 22:29:06 +00:00
bzbarsky%mit.edu
18b7766c94 Final fix for bug 263581 -- pre-dirty wrapped lines with dirty continuations,
if needed, before entering the loop over lines.  r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@165906 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-29 22:02:11 +00:00
dbaron%dbaron.org
c3a4ca29a1 Comment why resize reflow optimization is broken.
git-svn-id: svn://10.0.0.236/trunk@165796 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-26 02:31:58 +00:00
roc+%cs.cmu.edu
474bdee350 Bug 270804. Lines that we skipped reflowing during shrink-wrap-width block reflow may need to be reflowed if the shrink-wrap-width changes. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165795 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-26 02:03:24 +00:00
roc+%cs.cmu.edu
d4a6c32e7b Bug 209694. Major rework of margin-collapsing and clearance to match CSS 2.1 rules. Also includes major incremental reflow fixes for those situations. See the bug for details. rubber-stamp r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165781 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 14:51:00 +00:00
bzbarsky%mit.edu
563abfec2c First cut at not having a O(N^2) algorithm for WrappedLinesAreDirty(). Bug
263581, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@165767 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 02:54:58 +00:00
bzbarsky%mit.edu
4c07e20fbe Add a utility method for finding the containing block to nsHTMLReflowState, and
make use of it in fixing the text-decoration drawing on blocks to deal with
negative text-indent.  Bug 263374, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@165766 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 02:43:28 +00:00
roc+%cs.cmu.edu
0ce7145190 Bug 269905. Remember emptiness state on line boxes, but be selective about to to minimize the invalidation burden. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165713 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 13:22:10 +00:00
roc+%cs.cmu.edu
05b0dbe26a Changing IsFrameEmpty to IsSelfEmpty as dbaron requested and I forgot to do before checking in.
git-svn-id: svn://10.0.0.236/trunk@165364 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-15 05:01:11 +00:00
roc+%cs.cmu.edu
7f490d3aac Bug 261064. Compute static absolute positions more accurately. Also, ensure that static absolutely positioned frames are moved when their placeholders move. Also, ensure that absolutely positioned frames positioned relative to the left or bottom edge of their container move when the container size changes. r+sr=dbaron (rubberstamp)
git-svn-id: svn://10.0.0.236/trunk@165349 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-14 20:22:58 +00:00
smontagu%smontagu.org
d4954c0fc8 Make layout debugger show pseudo-styles. Bug 268235, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@165260 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-11 17:48:09 +00:00
dbaron%dbaron.org
897a892fa0 Don't push lines when height is unconstrained, even if current height is bigger than NS_UNCONSTRAINEDSIZE. b=265027 r+sr=roc a=mkaply
git-svn-id: svn://10.0.0.236/trunk@164194 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-22 17:33:52 +00:00
roc+%cs.cmu.edu
2bb7f4c340 Bug 263586. Fix regression in incremental line reflow by being more conservative in detecting when a line has just been reflowed for the first time. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163491 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-10 01:56:00 +00:00
roc+%cs.cmu.edu
22e0ff6cb8 Bug 251162. Landing experimental implementation of CSS3 columns. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163416 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-08 12:17:10 +00:00
roc+%cs.cmu.edu
22c664a250 Bug 260896. When a floating first-letter frame reports FRAME_IS_NOT_COMPLETE after reflow, (then unlike blocks) that does NOT mean that it needs to continue on the next page! It just means it has an inline continuation. So correct its reflow status early in ReflowFloat so that we don't confuse the heck out of block reflow. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162931 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 02:18:25 +00:00
bryner%brianryner.com
d80f327086 Unify box and frame trees by moving nsIBox methods onto nsIFrame. XUL-box frames can call the superclass nsBox implementation, all other frames get the nsFrame implementation of the box methods, which acts like nsBoxToBlockAdaptor used to. Bug 258513, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@162876 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-28 18:37:50 +00:00
roc+%cs.cmu.edu
e328b8648c Bug 260515. Fix obviously broken code in CombineBreakType. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162593 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 13:56:06 +00:00
roc+%cs.cmu.edu
0c4ce3d86f Bug 257612. Fix dynamic margin changes by 1) Propagate IsPreviousMarginDirty through empty lines 2) Reflow any line whose previous margin is dirty. 3) If a reflowed line could have been tested in a subsequent line's ShouldApplyTopMargin both before and after reflow, and might have been empty before or after reflow, then make the next line's previous margin dirty. 4) If reflowing a block changes its carried-out margin, then mark the next line's previous margin dirty. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162521 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-18 14:39:07 +00:00
roc+%cs.cmu.edu
6f45d28987 Bug 248825. Correctly push overflowing float placeholders to the start of the overflow lines in the case where the first overflow line is a block. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162479 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 00:02:56 +00:00
roc+%cs.cmu.edu
ab88d1e1ac Bug 259032. DeCOMtaminate nsIFrame::GetNext/PrevInFlow. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@162269 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 02:28:03 +00:00