302 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
ffd384d773 Bug 472950. Only do the lazy-set-parent-pointer optimization if we have no children and no next-in-flow. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@257473 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 03:06:13 +00:00
mats.palmgren%bredband.net
54d926e636 Fix the parent pointer for ::first-letter child frame next-in-flows. b=401042 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255577 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 09:09:10 +00:00
masayuki%d-toybox.com
2b55622b55 Bug 417014 Need blacklist system for underline offset adjusting of CJK fonts which have wrong underline offset r=roc+stuart, sr=roc, b1.9=stuart
git-svn-id: svn://10.0.0.236/trunk@247704 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 02:37:00 +00:00
dbaron%dbaron.org
365d3bef72 Fix the weird Get* API on nsStyleSides in favor of returning structs by value, to avoid further occurrences of bug 420069. b=420069 r+sr=roc a=beltzner
git-svn-id: svn://10.0.0.236/trunk@247146 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 00:05:29 +00:00
masayuki%d-toybox.com
d5d7f20c6e Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc b1.9=dbaron
git-svn-id: svn://10.0.0.236/trunk@245831 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-16 15:31:33 +00:00
dbaron%dbaron.org
1dd488f200 Remove unused height output from nsLineLayout::EndSpan. b=407086 r+sr=roc a=dsicore
git-svn-id: svn://10.0.0.236/trunk@240947 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 21:51:18 +00:00
dbaron%dbaron.org
ca599b55f9 Remove some code that handles unconstrained widths (and fix nsFirstLetterFrame not to pass them). b=407086 r+sr=roc a=dsicore
git-svn-id: svn://10.0.0.236/trunk@240946 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 21:51:00 +00:00
roc+%cs.cmu.edu
fd3ca70efc Bug 405577. Allow available width to go negative for inlines/text, so we can tell whether zero-width content fits or not. Also allow textframes to honour a forced break at the end of the text. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240555 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-06 01:24:04 +00:00
dmose%mozilla.org
0714b46c51 Backing out fix for bug 392785 as per roc + mconnor.
git-svn-id: svn://10.0.0.236/trunk@240455 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-04 23:32:09 +00:00
masayuki%d-toybox.com
425bca40e0 Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc, b1.9=dbaron
git-svn-id: svn://10.0.0.236/trunk@240281 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 06:51:59 +00:00
roc+%cs.cmu.edu
151722d42f Bug 397518. Wrap inline non-MathML children of MathML frames in anonymous blocks. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@237645 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-12 08:30:55 +00:00
fantasai.cvs%inkedblade.net
77c12e0239 fix use of DEBUG-only data member, bug=154892 r+sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@237065 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 08:29:23 +00:00
fantasai.cvs%inkedblade.net
3a00ff8d0e paginate absolutely-positioned elements, b=154892 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@237057 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 05:57:46 +00:00
masayuki%d-toybox.com
4a791f4b57 Bug 392252 need new APIs for converting AppUnits to gfx usable pixels r=sharparrow1, sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@232841 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-22 11:13:55 +00:00
masayuki%d-toybox.com
89c1b72449 Bug 365414 overflowed decoration lines are not erased/painted r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@232046 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-14 16:39:55 +00:00
jwalden%mit.edu
ca9d80062e Bug 386801 - nsAbsoluteContainingBlock doesn't need to store a child list name; this shaves four bytes off nsViewportFrame, nsBlockFrame, and nsPositionedInlineFrame. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@231374 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 22:44:36 +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
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
roc+%cs.cmu.edu
d595c6b405 Bug 346405. Handle reparenting of empty float lists. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@230270 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-19 04:32:08 +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
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
dbaron%dbaron.org
33e9dec8c9 Remove special handling of empty continuations, which should no longer be needed. b=238473 Based on patch by Hideo Saito <saito@densan.co.jp>. r=dbaron sr=roc
git-svn-id: svn://10.0.0.236/trunk@225964 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 17:06:04 +00:00
bzbarsky%mit.edu
33b3f60e43 Make computed style handle eStyleUnit_Chars. Bug 371043, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225946 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 06:09:50 +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
bzbarsky%mit.edu
a61fdafc14 Make sure to handle creation of a new continuation of the first-letter frame
even if we pulled the first-letter frame from our next-in-flow.  Bug 372553,
r+sr=roc.


git-svn-id: svn://10.0.0.236/trunk@221292 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-05 00:15:46 +00:00
dbaron%dbaron.org
32d54152c9 Clean up IsFrameOfType methods to call their base class IsFrameOfType methods reliably. b=341326 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@220874 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 18:33:33 +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
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
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
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
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
uriber%gmail.com
c0d1269952 Pull InsertFrames, AppendFrames, and RemoveFrames up from nsInlineFrame to nsContainerFrame. bug=198928 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217411 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-25 18:53:52 +00:00
roc+%cs.cmu.edu
75b2611119 Bug 363813. Always reset parent pointers when pulling an inline frame's overflow back into its main child list. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217302 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-21 19:59:30 +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
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
uriber%gmail.com
78cfa593e6 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, plus some more related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209768 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 20:43:01 +00:00
uriber%gmail.com
fcf4d1b5af Backing out bug 300131 until I figure out how to deal with the bustage.
git-svn-id: svn://10.0.0.236/trunk@209689 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 08:03:28 +00:00
uriber%gmail.com
09e8c4f558 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, and some related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209685 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 06:39:56 +00:00
uriber%gmail.com
a84d95cf24 Create bidi embedding only around inline containers (with a specified direction), not around inline replaced elements. bug=169139 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@206709 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 07:40:28 +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
uriber%gmail.com
816ab1e15e Bug 328168: Horizontal paddings, borders and margins on multi-frame bidi inlines appear in the wrong places. Patch by Haamed Gheibi <gheibi@gmail.com>. r=roc+uriber, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@199957 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 08:16:23 +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