847 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
3524c6eee1 Introduce a setter for nsHTMLReflowState::mComputedHeight so that we're sure to
update the resize flags properly.  Bug 388084, r+sr+a=dbaron


git-svn-id: svn://10.0.0.236/trunk@231323 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 18:08:07 +00:00
sharparrow1%yahoo.com
d320fcdfc7 Backout bug 320378 due to regression bug 389398
git-svn-id: svn://10.0.0.236/trunk@231075 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 22:03:57 +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
bzbarsky%mit.edu
525f3e0e01 Add assertion. Bug 382199, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@230718 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 01:42:23 +00:00
sharparrow1%yahoo.com
76b2a6cc11 Bug 320378: Fix rendering preformance for heavily nested pages with clearance.
git-svn-id: svn://10.0.0.236/trunk@230701 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 00:40:42 +00:00
asqueella%gmail.com
e3a8e85fdf fix bug 388709 - "ASSERTION: Please remove this from the document properly: '!IsInDoc()'" with :after, floating :first-letter
Store the generated content as a nsCOMArray<nsIContent>* property on frames to make its clean-up on frame destruction less fragile.

r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@230686 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-23 23:31:12 +00:00
sharparrow1%yahoo.com
061b53d1a6 Bug 386147: Don't cut off floats at the bottom of the page, part 2: make sure continuations have the right preferred width. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@230668 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-23 21:40:10 +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
mats.palmgren%bredband.net
fd18364353 Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@229301 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-04 02:15:35 +00:00
sharparrow1%yahoo.com
1fefb19635 Bug 386142: fantasai's li'l Need More Comments bug. Patch by fantasai, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@229291 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-03 22:49:01 +00:00
sharparrow1%yahoo.com
4d74a755f2 Bug 377204: Clearing multi-page floated elements works on screen but not when printing (fix for fixed-height case). r+sr=rpc.
git-svn-id: svn://10.0.0.236/trunk@229187 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 21:00:31 +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
dbaron%dbaron.org
cd6e9c2d37 Make text-indent contribute to intrinsic widths, and handle negative text-indent and negative margin properly by distinguishing forced and optional breaks when accumulating minimum widths. b=368155 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@228548 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 22:33:10 +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
smontagu%smontagu.org
9e8d8775fc Do bidi resolution during GetPrefWidth() and GetMinWidth() as well as Reflow(). Bug 365130, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@227109 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-28 14:40:56 +00:00
sharparrow1%yahoo.com
1e238506ce Bug 377391: Parts of a rectangle with CSS outline remains, when changing rectangle size. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@226705 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-21 10:06:08 +00:00
sharparrow1%yahoo.com
66ceed1300 Bug 45631: text-indent: n% doesn't incrementally reflow correctly. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@226704 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-21 09:55:27 +00:00
dbaron%dbaron.org
68aab90fcd Remove now-unneeded checks for eStyleUnit_Null. b=379741 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@226290 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-11 06:02:31 +00:00
bzbarsky%mit.edu
ba5badedcb Change the FrameNeedsReflow API to pass the dirty flags to be added directly to
the method, instead of setting them before calling the method.  That way we can
avoid reflowing the ancestor of a reflow root which is not itself dirty but has
dirty children.  This also makes it harder to set dirty bits inconsistently
with the FrameNeedsReflow call.  Bug 378784, r+sr=dbaron, pending rbs' review
on the mathml parts.


git-svn-id: svn://10.0.0.236/trunk@226007 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-06 19:16:52 +00:00
bzbarsky%mit.edu
ca4af9114f Fix assert to be more correct. Bug 379383, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225490 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-02 20:32:17 +00:00
sayrer%gmail.com
73bfe9d8ca bug 378383. nsReflowStatus not always initialized in nsBlockFrame::ReflowInlineFrame. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@224856 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-22 20:57:54 +00:00
bzbarsky%mit.edu
f10620b9d4 Fix assertion to be more correct. No bug.
git-svn-id: svn://10.0.0.236/trunk@224828 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-21 03:57:40 +00:00
roc+%cs.cmu.edu
469aea8977 Bug 368863. Reparent floats properly when placeholders move between inline continuations. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@224821 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-21 00:42:58 +00:00
sharparrow1%yahoo.com
84d51fb79d Bug 378129: Consistently pass the right frame to InvalidateInternal. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@224818 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-20 23:51:13 +00:00
bzbarsky%mit.edu
298f4922e3 Improve detection of blocks with first-letter style. Bug 372550, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@224563 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-16 00:42:54 +00:00
roc+%cs.cmu.edu
63377a1ac7 Bug 370439 (sort of). GetAbsPosClipRect needs to take the new frame size as a parameter, because the current frame size may be invalid when we are called by FinishAndStoreOverflow. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@224391 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-11 05:04:10 +00:00
bzbarsky%mit.edu
11f5c55fe5 Make sure to update view positions if we move our block around vertically
during reflow.  Bug 365294, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@224240 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-05 22:47:38 +00:00
roc+%cs.cmu.edu
d8bf3ee89e Not part of the build --- update GetPresContext to PresContext in a few not-built places.
git-svn-id: svn://10.0.0.236/trunk@224049 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-03 03:56:55 +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
roc+%cs.cmu.edu
7fa4849a90 No bug. Comment-only change to note a potential optimization opportunity.
git-svn-id: svn://10.0.0.236/trunk@222210 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-22 23:10:10 +00:00
dbaron%dbaron.org
2fc9793b71 Fix bullet position of floating direction:rtl list items. b=332360 Patch by Hideo Saito <saito@densan.co.jp>. r+sr=dbaron (with modifications)
git-svn-id: svn://10.0.0.236/trunk@221494 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-08 00:27:16 +00:00
roc+%cs.cmu.edu
c5bc6fd3ff Bug 369227. Record the first soft break beyond the available width, if there isn't one within the available width. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@220621 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-21 01:52:03 +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
asqueella%gmail.com
11bad405e3 bug 257868 - remove the nsIPresShell::SetAnonymousContentFor() API, make the frames store strong refs to the anonymous content instead. Decomtaminate nsIAnonymousContentCreator.
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@220517 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-18 17:34:09 +00:00
smontagu%smontagu.org
a95c2244b3 Bug 369236: Move IsBidiFormControl from nsHTMLReflowState to nsBlockFrame. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219955 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-11 07:19:09 +00:00
sharparrow1%yahoo.com
dd459d0a71 Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-07 07:46:44 +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
c380d24c54 Combine the code that tests inlines for dependence on the containing block width in order to disable resize reflow optimizations, and add to that code things that shrink wrap (inline-block, inline-table, buttons, fieldsets). Also move the percentage-height tests out, and into InitResizeFlags. b=163504 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@219046 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 18:40:26 +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
dbaron%dbaron.org
103e95ab15 Change the bulk of ascent (baseline) computation to happen on a virtual method on nsIFrame, and remove the redundant descent member from nsHTMLReflowMetrics, primarily to support having both first-line and last-line baselines. b=367332 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@218785 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 04:06:56 +00:00
roc+%cs.cmu.edu
29067fe44b Bug 333659. Relanding nsLineLayout API changes for new text code. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218576 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-18 01:20:09 +00:00
roc+%cs.cmu.edu
08d8b2fc0c Fixing luna bustage, hopefully
git-svn-id: svn://10.0.0.236/trunk@218551 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 22:11:01 +00:00
roc+%cs.cmu.edu
30f5e5c949 Reland conversion of HaveForcedBreakPosition check to assertion. See if this busts luna. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218533 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 20:31:13 +00:00
roc+%cs.cmu.edu
9490c03f81 Relanding changes to replace local helpers with new nsLayoutUtils versions. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218498 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 08:11:32 +00:00
roc+%cs.cmu.edu
09049cfebe Backout of nsLineLayout changes; trying to fix luna orange
git-svn-id: svn://10.0.0.236/trunk@218497 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 06:27:01 +00:00
roc+%cs.cmu.edu
75d52f8575 Bug 333659. Relanding new nsLineLayout API to make in-first-line-frame and current-nsLineBox available; should not affect anything. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218491 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 03:59:32 +00:00
roc+%cs.cmu.edu
4f42d74394 Backing out text landing.
git-svn-id: svn://10.0.0.236/trunk@218456 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-16 22:25:20 +00:00
roc+%cs.cmu.edu
e2373f9a14 Bug 333659. Landing new text interfaces, new gfxPangoTextRun (enabled), new textframe code (disabled). r+sr=dbaron for the part-of-the-build layout parts,r=stuart for the part-of-the-build gfx parts
git-svn-id: svn://10.0.0.236/trunk@218447 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-16 20:51:52 +00:00
bzbarsky%mit.edu
037b31603b Use the right percentage base for figuring out text-indent when drawing the
text-decoration.  Bug 364862, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@217560 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-30 05:56:25 +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