184 Commits

Author SHA1 Message Date
bryner%brianryner.com
b5347dd60c Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +00:00
dbaron%dbaron.org
a8191642ef Do inheritance without layout-dependent computations, per CSS2.1. Remove eStyleUnit_Inherit and nsStyleCoord::SetInheritValue. b=205790 r+sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@149687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:46:25 +00:00
jst%mozilla.jstenback.com
2affc5b4f0 Fixing bug 225837. DeCOMtaminating nsIContent more, making GetTag() return a weak raw pointer, and renaming GetTag() to Tag(), and making GetRangeList() return an const nsVoidArray*, and changing GetContentID() to return the id, and renaming it to ContentID(). r=jonas@sicking.cc, sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@149527 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:20:56 +00:00
dbaron%dbaron.org
95ad7ff8b9 Turn DetermineFrameType into InitFrameType. b=225911 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@149414 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 00:35:17 +00:00
dbaron%dbaron.org
c53d72392a Clean up nsIFrame::IsEmpty signature and move towards making 'white-space' work on inlines. b=191699 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@149126 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-10 23:36:06 +00:00
uid502
e56ed2443c Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 20:19:18 +00:00
bzbarsky%mit.edu
a8b4c204ea Fix regression bug 223394 -- percent-height replaced inlines that only have
auto-height ancestors should get intrinsic height instead of 0, even in quirks
mode.  r+sr=roc, a=asa


git-svn-id: svn://10.0.0.236/trunk@148346 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-24 07:31:50 +00:00
bzbarsky%mit.edu
b668306972 Fix crash bug 223064. Patch by mats.palmgren@bredband.net (Mats Palmgren), r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148265 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 07:01:35 +00:00
bzbarsky%mit.edu
7aac0db4a8 Remove limiting of the quirk containing block search to only one level. Bug
222730, also fixes bug 88035, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@148110 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-18 20:22:22 +00:00
bzbarsky%mit.edu
169f5d5f1e Line up the hypothetical box for positioned frames with the _top_ of the line
box if there is nothing in the line before the positioned frame's placeholder.
When that happens, it means that the positioned frame's content actually came
before whatever content lives in the line box and thus the frame should not be
lined up with the line box's bottom.  Bug 94468, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@148100 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-18 08:04:37 +00:00
bzbarsky%mit.edu
b4923e2730 Undoing last change now that I have perf data.
git-svn-id: svn://10.0.0.236/trunk@148099 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-18 07:13:30 +00:00
bzbarsky%mit.edu
0b57ccb01f Test performance impact of not limiting to the first level now that bug 222730
is fixed.  r=dbaron


git-svn-id: svn://10.0.0.236/trunk@148097 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-18 06:08:39 +00:00
bzbarsky%mit.edu
9998455a57 Only calc a quirk containing block if we have a percentage height. Bug 222730,
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@148096 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-18 05:09:42 +00:00
bzbarsky%mit.edu
9d5216503f Stop walking up the tree looking for something to size against if we hit a
positioned frame.  Bug 221784, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@148090 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-18 00:24:28 +00:00
uid502
f97b0819f2 Bug 165149. More cleanup. Make nsStyleContext::GetPseudoType return a weak pointer. Also remove unnecessary arguments to nsHTMLContainerFrame::CreateViewForFrame. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148055 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-17 02:38:37 +00:00
bzbarsky%mit.edu
b9d414668f Relanding fix for bug Bug 219693, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@147622 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 13:13:37 +00:00
bzbarsky%mit.edu
1833145a2b Backing out for now, till fallout from tree redness settles.
git-svn-id: svn://10.0.0.236/trunk@147612 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 04:23:56 +00:00
bzbarsky%mit.edu
9fbcdde0d4 Make quirks %-heights on kids of scrolling parents work the same way as for
non-scrolling parents.  Bug 219693, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@147608 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 02:58:19 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
timeless%mozdev.org
64ddc42d96 Bug 219908 Remove some layout warnings
r=bz sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@147118 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-22 21:40:12 +00:00
dbaron%dbaron.org
cc04f1fff3 Let ComputeHorizontalValue handle unconstrained width, since unconstrained width only means the vertical margin is unknown in some cases. Patch by Mats Palmgren <mats.palmgren@bredband.net>. r+sr=dbaron a=asa b=209066
git-svn-id: svn://10.0.0.236/trunk@146591 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-06 04:01:33 +00:00
bzbarsky%mit.edu
82c14d79dd DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@145289 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:25:13 +00:00
roc+%cs.cmu.edu
7895bff657 Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144251 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-29 03:43:05 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
dbaron%dbaron.org
69da9d4a19 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
seawood%netscape.com
5921049139 Purge XP_PC.
Bug #56767 r=mkaply sr=alecf


git-svn-id: svn://10.0.0.236/trunk@140602 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 22:45:08 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
jst%netscape.com
1cc2deba63 Removing a redeclaration of a variable that sould've been removed with the last change to this file. Bug 181644, r=bzbarsky@mit.edu, sr=dbaron@dbaron.org, a=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@137507 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-06 23:10:20 +00:00
bzbarsky%mit.edu
4c6540337b Fix abs pos positioning regression. Bug 181644 redux, patch by
Rick.Ju@sun.com, r=bzbarsky, sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@137078 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-29 11:35:10 +00:00
bernd.mielke%snafu.de
8dc8a39e8b set the quirk height default to NS_AUTOHEIGHT if we are in a unconstrained container bug 189840 r/sr=roc+moz a=asa
git-svn-id: svn://10.0.0.236/trunk@137020 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-28 05:19:20 +00:00
karnaze%netscape.com
4d0ce76270 bug 175455 - Added mTableDerivedComputedWidth to the reflow state to detect computed widths which exist only because of table cells. Limit percent width of descendants whose percentage base has such a computed width. sr=roc, r=bernd
git-svn-id: svn://10.0.0.236/trunk@136643 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 20:07:39 +00:00
jerry.tan%sun.com
98d4d3661b bug 181644, patch by rick.ju@sun.com, r=bz, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@135580 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 06:01:14 +00:00
caillon%returnzero.com
d751688cb9 Backing out these changes since they appear to have caused a Txul regression on some tinderboxes (not all... weird...)
git-svn-id: svn://10.0.0.236/trunk@135111 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 05:11:02 +00:00
caillon%returnzero.com
6b60a8affb Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
r/sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@135068 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 23:41:12 +00:00
karnaze%netscape.com
b70e7f9f22 bug 169620 - don't pass in negative avail widths, don't add/subtract from NS_UNCONSTRAINEDSIZE, make HR's desired width at least as big as its me width. sr=kin, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@130371 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 21:02:20 +00:00
shanjian%netscape.com
983c3cb962 #130091 should we get rid of "NEW_FONT_HEIGHT_APIS"
r=Roland.Mainz@informatik.med.uni-giessen.de, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@129934 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 19:37:31 +00:00
karnaze%netscape.com
17f5d7a861 bug 137388 - Jery Tan's patch to restrict applying CalcQuirkContainingBlockHeight to a frame inside a table cell. sr=bzbarsky, r=karnaze.
git-svn-id: svn://10.0.0.236/trunk@128803 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 04:00:41 +00:00
timeless%mac.com
9ea8d4c86b Bug 161945 clean up simple mac build warnings
r=dbradley sr=bz


git-svn-id: svn://10.0.0.236/trunk@128679 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-02 21:26:11 +00:00
bzbarsky%mit.edu
8df67b73a5 Fix placement of positioned elements with auto "top". Bug 44508, patch
by Mats Palmgren (mats.palmgren@bredband.net), r=dbaron, sr=bzbarsky.


git-svn-id: svn://10.0.0.236/trunk@127417 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-15 23:00:23 +00:00
smontagu%netscape.com
b1d789fcb1 Fix regression with form controls on visual bidi pages. Bug 142233, r=jkeiser, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124915 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:52:17 +00:00
jkeiser%netscape.com
54975d102e Rest of patch (partial commit before). Remove nsFormFrame forever. bug 125578, r=alexsavulov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122621 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:00:34 +00:00
shanjian%netscape.com
a9c700ad59 #142562 problem with <td align=right or align=center
We are observing langGroup in some place while ignor it in others. This patch
make all font metrics call consistent. nsIRenderingContext API is change to
make things neat.
r=rbs, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@122131 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:11:14 +00:00
waterson%netscape.com
d6944c48fa Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@121568 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 22:21:15 +00:00
dbaron%fas.harvard.edu
4a66bff07d Give nsHTMLReflowState an explicit copy-constructor and assignment operator to fix up mCBReflowState and fix regressions from previous patch. b=143706 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@121541 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 19:58:20 +00:00
dbaron%fas.harvard.edu
5d19a6a9e8 Store containing block reflow state so we don't have to walk up the tree to find it every time. b=143706 r=attinasi sr=waterson
git-svn-id: svn://10.0.0.236/trunk@121465 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 12:59:55 +00:00
waterson%netscape.com
5bae3657e6 Bug 129115. Change the reflow path from a list structure to a tree structure to amortize state recovery and damage propagation costs. Eliminate table timeout reflows. r=kin,karnaze,rods,rbs; sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@121265 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-10 18:22:41 +00:00
tingley%sundell.net
2b6c6bc17b Fix regression of bug 89065 to make text-decoration: blink work again.
r=dbaron, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@121015 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 23:26:02 +00:00
rbs%maths.uq.edu.au
d21c5c6672 Added yet another defense to make Mozilla really robust when font resources run out, the patch makes font metrics to be fail safe or at least very hard to break -- to the point that failure means that the system is barely working (testing showed that Mozilla stayed alive while other applications were dying). Per request of super-reviewer & driver, also removed wallpaper null-checks sprinkled in the past for the problem. b=136248, r=shanjian, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@120592 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 22:24:59 +00:00
waterson%netscape.com
fc93436b44 Bug 138057. Eliminate nsBlockFrame::RememberFloaterDamage, instead recording the damage when we reflow the floater. This allows us to catch several cases that we weren't catching before, so we no longer need to dirty all the line boxes when an incremental reflow targeted at a float arrives. r=dbaron, sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@119984 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-26 19:19:39 +00:00
attinasi%netscape.com
d71e5f8c22 Check for null FontMetrics to prevent crash. r=shanjian sr=kin
git-svn-id: svn://10.0.0.236/trunk@119883 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 22:00:22 +00:00