125 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
d109a56eb2 Bug 411870. nsBidiPresUtils needs to track the current line across block continuation boundaries. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@244408 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 23:39:39 +00:00
roc+%cs.cmu.edu
483e3cd22a Bug 411870 backout again
git-svn-id: svn://10.0.0.236/trunk@244232 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 19:10:27 +00:00
roc+%cs.cmu.edu
04c1c0e95b Bug 411870. Bidi resolution needs to scan through block continuations when tracking the current line for frames. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@244221 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 18:16:22 +00:00
roc+%cs.cmu.edu
f073d362e1 backing out 411870
git-svn-id: svn://10.0.0.236/trunk@244186 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 06:28:31 +00:00
roc+%cs.cmu.edu
80cdf2108f Bug 411870. Make bidi resolution track lines across block continuation boundaries. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@244179 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 05:07:14 +00:00
mats.palmgren%bredband.net
5813249029 [DEBUG-only] Print a warning if we find a null float in the float cache. b=387651 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@230585 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-22 13:37:36 +00:00
mrbkap%gmail.com
e4e63f137a Fix printf format-specifier and args mismatch to prevent potential DEBUG-only crashes. bug 388358, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@230066 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-16 22:26:53 +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
roc+%cs.cmu.edu
e5b5169706 Bug 383551. Clean up IsInlineFrame, nsStyleDisplay::IsBlockLevel and related methods. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@228806 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 02:31:35 +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
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
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
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
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
uriber%gmail.com
3bea28d295 Handle returning nulls from CheckLineOrder correctly. bug=345616 r=smotagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@206546 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 05:40:57 +00:00
gavin%gavinsharp.com
139628c2d8 Bug 342479: fix compiler warning @ nsFloatCacheList::RemoveAndReturnPrev in nsLineBox.cpp, patch by Ryan VanderMeulen <ryanvm@gmail.com>, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@203532 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-24 18:57:42 +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
roc+%cs.cmu.edu
ba9ced449a Bug 342322. It's OK for mNext to be non-null when we remove an element. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@202001 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 08:15:31 +00:00
uriber%gmail.com
928f0ccda5 Always use the visual iterator when moving visually in a bidi page, even if the current line or adjacent lines are LTR. bug=309432 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@201927 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 11:22:18 +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
uriber%gmail.com
8b9a1f9460 Allow searching a line for a frame starting from a given point, to improve performance of forward-moving searches. Used in bidi resolution. bug=339935, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@199496 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 08:41:51 +00:00
mats.palmgren%bredband.net
50b31580f5 Bustage fix (bug 337883)
git-svn-id: svn://10.0.0.236/trunk@198363 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-25 01:48:00 +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
bzbarsky%mit.edu
c0fedf14ea Don't mess with empty float cache lists. Bug 334105, r+sr+branch181=dbaron
git-svn-id: svn://10.0.0.236/trunk@194490 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 01:47:41 +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
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +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
uriber%gmail.com
5cbb166257 Bug 330881: Crash when double-clicking in empty area inside isindex with position:absolute;direction:rtl;. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192624 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-20 09:20:49 +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
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
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
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
smontagu%smontagu.org
a38b2c61f4 Caret skips blank line using down-arrow key in preformatted text (e.g. View Source). Bug 298690, patch by Uri Bernstein <uriber@gmail.com>, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@183253 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-30 13:05:45 +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
906863a0f9 Bug 280987. Remove aPresContext from nsIFrameDebug::List. r+sr=roc, patch by Vidar Braut Harr.
git-svn-id: svn://10.0.0.236/trunk@179728 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-06 21:34:50 +00:00
timeless%mozdev.org
c2fcb662c5 Bug 277553 clicking on Textarea with a RTL direction doesnt work
patch by uriber@gmail.com r=bz sr=bz a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@177023 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 21:55:55 +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
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
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
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
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
gerv%gerv.net
2ac510b678 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
bryner%brianryner.com
2359d2f7c4 More nsIPresContext deCOMtamination (bug 229371). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@154743 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 00:28:44 +00:00