796 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
23b002054c Bug 359371. Calculate correct available content-height when a float has border or padding. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217000 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-15 01:52:53 +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
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
roc+%cs.cmu.edu
f06ba26d9e Bug 343445. Change inline reflow strategy to avoid looking ahead through words while measuring text. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@213836 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-19 01:47:47 +00:00
roc+%cs.cmu.edu
5082d0a3b4 Bug 350137. Don't forget to apply BR-clearance when the BR is on the last line of a block. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@212138 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-22 01:53:13 +00:00
bzbarsky%mit.edu
44797a0245 If we have to do a second pass because we found clearance on the first pass,
invalidate the entire area we're being moved to.  Otherwise invalidates from
the first pass will be lost.  Bug 352417, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@211967 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 00:15:15 +00:00
mats.palmgren%bredband.net
b414463fe9 Don't iterate past the beginning line (crash fix). b=350370 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@208611 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-28 07:30:01 +00:00
mats.palmgren%bredband.net
381021cc6b Don't steal floats from descendant float containing blocks. b=348887 (patch B) r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@208388 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 04:17:41 +00:00
mats.palmgren%bredband.net
338bf14650 Don't steal floats from descendant float containing blocks. b=348887 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@208086 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-22 03:04:18 +00:00
mats.palmgren%bredband.net
3f20c69ea2 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
git-svn-id: svn://10.0.0.236/trunk@207728 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-17 13:15:26 +00:00
mats.palmgren%bredband.net
2912296601 Don't propagate the NS_BLOCK_FRAME_HAS_OUTSIDE_BULLET flag from a prev-in-flow. b=337412 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@206658 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-06 03:27:00 +00:00
mats.palmgren%bredband.net
1860854e4c 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
git-svn-id: svn://10.0.0.236/trunk@206043 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-29 09:38:35 +00:00
cvshook%sicking.cc
365266c686 Bug 344050: Kill nsITextContent and move the methods to nsIContent. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@203078 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 04:36:36 +00:00
aaronleventhal%moonset.net
dd08577b50 Bug 342035. Create accessibles for all block level elements so that ATs can determine line spacing. r=ginn.chen, sr=neil, sr=roc
git-svn-id: svn://10.0.0.236/trunk@201907 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 22:14:09 +00:00
mats.palmgren%bredband.net
1bbaeed419 Fix crash when recreating <caption> frames. Add ASSERTIONs to detect similar frame construction errors in the future. b=341382 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@201187 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-29 02:32:36 +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
dbaron%dbaron.org
de473d5f34 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=roc
git-svn-id: svn://10.0.0.236/trunk@200385 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 00:46:32 +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
roc+%cs.cmu.edu
e71eeec88a Bug 339889. Propagate invalidation through the frame hierarchy to topmost widgets. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199477 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 01:11:43 +00:00
mats.palmgren%bredband.net
eac60be8ef Make the frame dump in CheckFloats() DEBUG_roc only. b=322436 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@199175 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-07 01:39:48 +00:00
mats.palmgren%bredband.net
416c8f1e7b Clear the float cache from placeholders that are descendants of the frame we remove. b=337883 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@198362 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-25 01:30:34 +00:00
cvshook%sicking.cc
cec9ea1123 Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
aaronleventhal%moonset.net
79b63d8013 Bug 326090. Expose <hr> as ROLE_SEPARATOR. Patch by Ming (Mike) Gao. r=aaronlev, sr=roc
git-svn-id: svn://10.0.0.236/trunk@195569 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 16:23:09 +00:00
roc+%cs.cmu.edu
1f8c8f9667 Bug 335140. Set 'force descend into' bit on frames and then leave it set until we're done with the display list ... then we can be sure of descending to frames whose container is not an ancestor of the placeholder. r=mrbkap
git-svn-id: svn://10.0.0.236/trunk@195507 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 02:45:03 +00:00
roc+%cs.cmu.edu
02b50c231a Bug 330305. Rename nsSelection to nsFrameSelection, and deCOMtaminate it, removing nsIFrameSelection. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@195412 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 02:01:07 +00:00
bzbarsky%mit.edu
9241b52e99 Treat terminal newlines in preformatted text like we treat <br> when inserting
frames into a block.  Bug 310087, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@194984 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 19:00:33 +00:00
roc+%cs.cmu.edu
b6ebd9961d Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 00:16:29 +00:00
roc+%cs.cmu.edu
cbc5855a71 Bug 282173. Remove BuildFloatList. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@193974 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-09 22:56:27 +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
roc+%cs.cmu.edu
140fbb3377 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:30:36 +00:00
bryner%brianryner.com
1de3fc0366 Clean up header includes (bug 331050). This round of changes deals with some of the public content headers, and factors nsDOMClassInfoID out of nsIDOMClassInfo.h so that nsContentUtils.h doesn't have to bring in XPConnect. r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@192794 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-22 18:36:36 +00:00
uriber%gmail.com
83e152722a Mark lines for which bidi continuations were created or removed dirty, instead of marking everything dirty when continuations removed. bug=330373 r=roc sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@192444 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 20:52:02 +00:00
pavlov%pavlov.net
b5c7a440ef backing out roc's patch for bug 328926 due to crash running tests on vc8 machines.
git-svn-id: svn://10.0.0.236/trunk@192407 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 06:43:36 +00:00
roc+%cs.cmu.edu
6e36f2c733 Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192399 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 03:14:02 +00:00
masayuki%d-toybox.com
6455cbdf33 Bug 330268 RTL characters typed into a textarea after a long unbreakable string don't appear on screen until scrolled r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@192298 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-14 06:10:43 +00:00
uriber%gmail.com
3db5a70f41 Do away with geometry in nsFrameList::GetPrev[Next]VisualFor() and nsLineIterator::CheckLineOrder(). Instead use new helper methods in nsBidiPresUtils for determining visual order of the top level of frames in a line. bug=303884 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@192220 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-12 09:49:48 +00:00
roc+%cs.cmu.edu
38a9722e9f Bug 328926. Remove aPresContext from nsIFrame::Init and nsIFrame::DidSetStyleContext. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@192085 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 18:55:21 +00:00
roc+%cs.cmu.edu
fe7bb3975b Bug 256311. Improve block reflow performance in the presence of many empty lines, by being more aggressive about caching block and line emptiness state, and by stashing a reference to a line that we know has nothing but empty lines above it. Relanding because I accidentally backed it out. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@191298 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-27 04:15:05 +00:00
roc+%cs.cmu.edu
b280811155 Backing out changes for bug 326944.
git-svn-id: svn://10.0.0.236/trunk@191296 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-27 03:22:03 +00:00
roc+%cs.cmu.edu
ede1364b21 Bug 256311. Improve block reflow performance in the presence of many empty lines, by being more aggressive about caching block and line emptiness state, and by stashing a reference to a line that we know has nothing but empty lines above it. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@191294 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-27 02:51:57 +00:00
uriber%gmail.com
9abc8fa432 Bug 299065: Bidi resolution needs to split inlines in addition to text frames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@190744 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-21 21:33:47 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
roc+%cs.cmu.edu
df8627e29b Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others
git-svn-id: svn://10.0.0.236/trunk@188202 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 02:29:17 +00:00
mats.palmgren%bredband.net
3d238ccf89 Look for the next-in-flow in the overflow-list when the next normal line did not contain it. b=310638 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@187962 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-21 10:33:48 +00:00
uriber%gmail.com
9c25e1e830 Bug 312550: Incorrect wrapping in RTL textarea with horizontal scrollbar. r=smontagu, sr=roc
git-svn-id: svn://10.0.0.236/trunk@186040 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-14 14:33:17 +00:00