205 Commits

Author SHA1 Message Date
dbaron%dbaron.org
2a36650bb6 Back out part of checkin from yesterday due to regressions. b=79315
git-svn-id: svn://10.0.0.236/trunk@145127 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-23 22:46:48 +00:00
dbaron%dbaron.org
75df55b0bf Make sure we include the overflow area in the size of views, for blocks and inlines, at least. b=79315 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@145090 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-23 00:14:16 +00:00
roc+%cs.cmu.edu
0b21d50264 Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144258 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 10:46:59 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +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
dbaron%dbaron.org
d88c07597f Oops, wrong tree. Backing out.
git-svn-id: svn://10.0.0.236/trunk@142487 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:36:05 +00:00
dbaron%dbaron.org
85e28181ee 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@142486 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:32:08 +00:00
smontagu%netscape.com
1a3bb57385 Remove nsITextFrame. Bug 188618, r/sr=roc+moz.
git-svn-id: svn://10.0.0.236/trunk@138398 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 00:44:04 +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
dbaron%dbaron.org
a569c670f5 Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136064 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 14:26:32 +00:00
dbaron%fas.harvard.edu
ffb8d9cca7 Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only.
git-svn-id: svn://10.0.0.236/trunk@135757 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-01 23:53:20 +00:00
roc+%cs.cmu.edu
55be3c1d27 Backing out fix for bug 170330... againr=dbaron
git-svn-id: svn://10.0.0.236/trunk@135565 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 05:40:51 +00:00
roc+%cs.cmu.edu
7683fc0475 Tp experiment... See if the extra view sync is causing the Tp regression. Pardon me.
git-svn-id: svn://10.0.0.236/trunk@135561 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 02:12:13 +00:00
roc+%cs.cmu.edu
b997358c68 Bug 170330. Factor out overflowArea calculations and take into account overflow:hidden. Also improve calculations of clipping for invalidation in the view manager. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@135555 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 23:25:38 +00:00
dbaron%fas.harvard.edu
dba21402ff Remove test assertion that I added two days ago. DEBUG-only, r=me
git-svn-id: svn://10.0.0.236/trunk@135534 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 01:36:58 +00:00
dbaron%fas.harvard.edu
c73090b5b6 Make quirks-mode vertical alignment correctly consider only non-collapsed whitespace. b=155333 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@135477 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-19 00:21:07 +00:00
dbaron%fas.harvard.edu
10a7236c6a Correctly implement text-decoration in standards mode by drawing the underline on the element with the text-decoration property set. Refactor painting code a bit to avoid code duplication. Patch by Esben Mose Hansen <esben@oek.dk>, with paint refactoring and some other changes by dbaron. r=dbaron sr=bzbarsky b=1777
git-svn-id: svn://10.0.0.236/trunk@135099 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 04:00:18 +00:00
dbaron%fas.harvard.edu
0da606ffe7 Clean up twisty maze of IBMBIDI ifdefs related to HorizontalAlignFrames and fix an RTL alignment bug. b=131023 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@135094 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 02:38:33 +00:00
roc+%cs.cmu.edu
4d55566a79 Backing out fix for bug 170330 due to Tp regression
git-svn-id: svn://10.0.0.236/trunk@134882 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-06 04:32:07 +00:00
roc+%cs.cmu.edu
30ffe3fbf2 Bug 170330. Factor out overflow area calculations and make them take account of overflow:hidden and outline properties. r=dbaron,sr=kin
git-svn-id: svn://10.0.0.236/trunk@134861 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-05 22:29:08 +00:00
karnaze%netscape.com
7e2beae782 bug 163614 - Changed DeleteChildsNextInFlow to DeleteNextInFlowChild, params, and callers. sr=kin, r=alexsavulov,dcone
git-svn-id: svn://10.0.0.236/trunk@131456 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 20:35:26 +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
dbaron%fas.harvard.edu
87f1ec1ab2 Back out most of patch for bug 154910 to fix crash, since nsLineLayout need not do all its allocation without other things lower on the stack. b=162516
git-svn-id: svn://10.0.0.236/trunk@127257 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 13:00:16 +00:00
dbaron%fas.harvard.edu
1894434edb Make BR-related parts of the quirky inline box model also quirky in almost-standards mode, to match the rest of the inline box model quirks. b=161691 sr=bzbarsky r=caillon
git-svn-id: svn://10.0.0.236/trunk@127036 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-11 18:00:07 +00:00
dbaron%fas.harvard.edu
07544907b6 Allocate PerFrameData and PerSpanData in pres shell's stack arena. b=154910 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@126515 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 13:51:07 +00:00
dbaron%fas.harvard.edu
b8be429add Hacky fix to make HR's ALIGN attribute work again. b=158197 r=mjudge sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@126503 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 12:59:48 +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
bernd.mielke%snafu.de
c67e5d2a21 bug 154979 - use gNoisyMaxElementSize instead of NOISY_MAX_ELEMENTSIZE r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124405 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 17:43:02 +00:00
dbaron%fas.harvard.edu
7c4652cc16 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124017 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:16:17 +00:00
karnaze%netscape.com
f849232aae bug 151620 - always use quirk line-height inside a td. sr=waterson, r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@123624 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:28:47 +00:00
karnaze%netscape.com
924ea247db bug 148245 - only split floaters when printing if the height is constrained, never split floating first letters. sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123316 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 14:30:33 +00:00
dbaron%fas.harvard.edu
cfc603f54a Fix crashes related to editing of HR elements by wrapping generated content for leaf frames in an extra frame so :before and :after are always the first/last children of the primary frame. Disable generated content for floating and absolutely positioned leaf frames. b=141054 sr=waterson r=kin
git-svn-id: svn://10.0.0.236/trunk@123127 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:27:48 +00:00
bernd.mielke%snafu.de
a42d51bdb9 bug 148240, percent text-indent should not be computed for NS_UNCONSTRAINEDSIZE
parent width. r=dbaron sr=waterson


git-svn-id: svn://10.0.0.236/trunk@122570 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:35:04 +00:00
karnaze%netscape.com
49e0a9f4cb bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122236 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:50:43 +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
jst%netscape.com
0e34136ef1 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
dbaron%fas.harvard.edu
d7e353055e Fix to fix for bug 134580: quirks mode line height must ignore all whitespace at the beginning of the line, not just what happens to be in the first text node. b=134580 sr=waterson r=attinasi
git-svn-id: svn://10.0.0.236/trunk@121668 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 19:44:20 +00:00
dbaron%fas.harvard.edu
98637bcf6e Use text-indent in max-element-size calculation (130116, 91468, 140682). Don't apply text-indent after page break to the same block (45694). b=130116 r=attinasi sr=waterson
git-svn-id: svn://10.0.0.236/trunk@121464 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 12:55: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
dbaron%fas.harvard.edu
8bc0a6579f Consider whitespace in quirks-mode line-height algorithm when it's in the middle of the line. b=134580 r=attinasi sr=waterson
git-svn-id: svn://10.0.0.236/trunk@120375 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 00:42:49 +00:00
karnaze%netscape.com
4cedce858a bug 124637 - when figuring available width for HRs subtract out both margins. a=asa, sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@116999 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:14:27 +00:00
smontagu%netscape.com
395a7140b7 Improve performance by making nsWordFrame in nsLineLayout an nsDeque instead of an nsAutoVoidArray. Bug 121967, r=timeless, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@116883 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 21:57:45 +00:00
rbs%maths.uq.edu.au
77105b9e58 Fix bug 101180 - the minimum line-height wasn't applied at the first reflow, causing the line to flicker at the next reflow, r=dbaron, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@116634 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 08:03:18 +00:00
smontagu%netscape.com
d0afe74092 Converting bidi utilities to non-XPCOM interfaces. Bug 120818; r=mkaply, nhotta; sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@114942 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 20:41:32 +00:00
waterson%netscape.com
ea95cf7620 Bug 46918, 3490. Clean up inline margin handling. r=rbs, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113249 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 23:28:56 +00:00
timeless%mac.com
21c081c8bc Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 23:23:41 +00:00
waterson%netscape.com
b6978c3e09 Bug 115113. Eliminate nsIReflowCommand, and just use nsHTMLReflowCommand directly. r=karnaze, sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@110644 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 22:39:59 +00:00
smontagu%netscape.com
e6011bb71f Fix for bug 108187, Indent wrong on RTL paragraph in Hebrew, r=dbaron, sr=attinasi. As well as fixing the bug, the patch moves the code for text-indent out to nsLineLayout::BeginLineReflow
git-svn-id: svn://10.0.0.236/trunk@110198 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 02:45:44 +00:00
karnaze%netscape.com
d8577654db bug 113424 - mechanism for percent height frames inside table cells to receive special height reflow. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@110006 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 14:51:12 +00:00