130 Commits

Author SHA1 Message Date
dbaron%dbaron.org
e5b45d8c95 Only do special height reflows for percentage-height children of table cells when there is a specified height on the table, row group, row, or cell in the row. b=370525 Patch by Daniel Holbert <dholbert@mozilla.com>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@228708 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-25 20:34:48 +00:00
bmlk%gmx.de
0f6cfd754b limit array access when a rowspan points to a already pushed row, bug 370360 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@220655 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-21 19:42:21 +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
04bb428ada Remove nsTableFrame::GetBorderPadding and related code. b=367458 r=bernd sr=roc
git-svn-id: svn://10.0.0.236/trunk@219055 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 22:22:24 +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
dbaron%dbaron.org
866a194991 Better API for used padding/border/margin: remove deprecated Calc*For on nsStyleStructs and add GetUsed* to nsIFrame. b=332922 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@216965 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-13 23:04:57 +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
140fbb3377 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:30:36 +00:00
roc+%cs.cmu.edu
38a9722e9f Bug 328926. Remove aPresContext from nsIFrame::Init and nsIFrame::DidSetStyleContext. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@192085 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 18:55:21 +00:00
bmlk%gmx.de
24256cd622 Make visibility:collapse work again after the display list change. Implement overflow handling and view synchronization for collapsed frames. bug 326551 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@191763 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-04 05:26:57 +00:00
roc+%cs.cmu.edu
df8627e29b Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others
git-svn-id: svn://10.0.0.236/trunk@188202 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 02:29:17 +00:00
bmlk%gmx.de
ee493b4c1d use scaledpixels to convert from CSS pixels to realword pixels bug=307367 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@187960 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-21 09:54:07 +00:00
roc+%cs.cmu.edu
c4e0410c6e Bug 313817. DeCOMtaminate more NS_New*Frame functions. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@184129 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 02:38:33 +00:00
bmlk%gmx.de
212fccadfd handle baseline for empty table cells closer to the new description in CSS2.1, bug 291060 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@181584 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 15:47:21 +00:00
roc+%cs.cmu.edu
aeacb4d477 Bug 108310. Make GetFrameForPoint take frame-relative coordinates, not bogus relative-to-some-view-or-other, and simplify the signature. r+sr=roc, patch by Eli Friedman.
git-svn-id: svn://10.0.0.236/trunk@180551 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-19 02:15:54 +00:00
dbaron%dbaron.org
f94ce77397 Fix too-much-overflow regression by making border-collapse cells store the full width of the border rather than just the inside half of it. Also make BCPixelSize 16-bit instead of 8-bit and use it in more places, and a little other cleanup. b=286794 r=bernd sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@171857 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-07 18:04:38 +00:00
bzbarsky%mit.edu
2bea98552c Remove prescontext args for some nsIFrame methods
(Append/Insert/Remove/ReplaceFrames) and for some methods in table land.  Patch
by Vidar Braut Haarr <bugmail@q1n.org>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@168894 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 01:58:25 +00:00
mats.palmgren%bredband.net
a32f025a3a Don't page-break before or after a repeated frame. b=278983 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168835 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-05 04:23:52 +00:00
neil%parkwaycc.co.uk
b6cfbdda85 Bug 276100 GetOriginToView has unused PresContext argument p=bugmail@q1n.org r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@167161 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 17:26:29 +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
bmlk%gmx.de
bc6dd3a017 implement standards compliant (CSS2.1) table background rendering patch by fantasai@escape.com r=bernd sr=bz, dbaron
git-svn-id: svn://10.0.0.236/trunk@153736 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-09 06:48:35 +00:00
dbaron%dbaron.org
798ec8156a Table rows/cols and groups don't paint their backgrounds, so CanPaintBackground must return false. b=236053 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@153397 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-01 08:17:59 +00:00
bmlk%gmx.de
a316af5457 remove unneccesary prescontext arguments bug 230923 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@151492 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:28:40 +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
bmlk%gmx.de
deb5f49052 overflow area implementation for table frames, bug 173277 r=jkeiser sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@146838 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-13 16:26:30 +00:00
dbaron%dbaron.org
e6a2b29ebf Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +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
bernd.mielke%snafu.de
c5c4b69893 split further fixed and percent row height calculation, bug 153995 patch by Rick.Ju@sun.com r=karnaze sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@135858 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-05 14:16:58 +00:00
karnaze%netscape.com
5327a7f9d3 bug 154780 - make the computed width for a cell unconstrained when the table will re-initialize or re-balance. a=rjesup, sr=kin, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@129098 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-09 18:46:06 +00:00
karnaze%netscape.com
6770b82ba7 bug 127040 - paint backgrounds in correct order when there are collapsed borders. sr=kin, r=dbaron, a=shaver
git-svn-id: svn://10.0.0.236/trunk@115335 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 00:27:42 +00:00
karnaze%netscape.com
430941b018 bug 41262 - new table border collapsing code. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@114937 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 15:48:28 +00:00
karnaze%netscape.com
f9dc3f03b9 bug 51023 - reduce the size of table related frame classes. sr=kin.
git-svn-id: svn://10.0.0.236/trunk@109358 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 15:05:51 +00:00
karnaze%netscape.com
33ac3614b6 bug 111028 - better height calc for table elements when printing. r=rods, sr=none.
git-svn-id: svn://10.0.0.236/trunk@109221 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:41:07 +00:00
bzbarsky%mit.edu
068756d821 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:33:42 +00:00
karnaze%netscape.com
548b21d542 additional patch for bug 97138 to cache pct height info on row and constrain sum of row height pcts <= 100.
git-svn-id: svn://10.0.0.236/trunk@107334 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 15:15:24 +00:00
karnaze%netscape.com
d30758e3fc bug 97138 - rework of table, row group, row, cell height code. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@107299 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 00:15:51 +00:00
karnaze%netscape.com
2f5ef17932 bug 105268 - set NS_FRAME_OUTSIDE_CHILDREN on row when cells have rowspan>1 so that painting will not clip to row. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@105975 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-22 22:21:19 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
karnaze%netscape.com
1540a4c12e bug 68998 - added extra param to Paint, PaintChild, PaintChildren used by tables in standard mode. sr=waterson, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@103193 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 12:35:19 +00:00
karnaze%netscape.com
c8111aa0b2 bug 89452 - added flag to indicate a row was inserted. Invalidate the area from that row to end of table if full reflow is not needed, sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@100399 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-06 14:48:09 +00:00
karnaze%netscape.com
5c53575529 bug 59280 - better splitting of row groups/rows with rowspans. r=dcone.
git-svn-id: svn://10.0.0.236/trunk@92400 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-16 14:51:52 +00:00
karnaze%netscape.com
c76866e3ea table reflow coalescing, table reflow face lift. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89462 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:38:59 +00:00
karnaze%netscape.com
d95bd4f152 better table reflow debugging including support for elapsed time. sr=buster.
git-svn-id: svn://10.0.0.236/trunk@85493 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 15:55:51 +00:00
buster%netscape.com
0a65af6558 bug 3992
chris k did the work.
r=buster


git-svn-id: svn://10.0.0.236/trunk@77060 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 05:03:18 +00:00
rbs%maths.uq.edu.au
b082477bba Enable the code to support for 'vertical-align: baseline' in table-cells. bug 10207. a:waterson@mozilla.org. was r:karnaze@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@75039 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 09:19:26 +00:00
rbs%maths.uq.edu.au
ddcfbea4a3 [#ifdef MOZ_MATHML: not yet part of default build]. Add support for 'vertical-align: baseline' in table-cells. bug 10207. r:karnaze@netscape.com. a:waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@71514 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 08:25:11 +00:00
karnaze%netscape.com
8cc9e6956a nsbeta2+ bug 39885 - invalidate minimal areas. optimize reflows when cells don't change size. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@70866 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 22:40:21 +00:00
karnaze%netscape.com
47f205f65f new reflow/layout code for outer table to handle captions and margins. better % height handling.
row groups and rows don't include external cellspacing in there dimensions. r=troy.


git-svn-id: svn://10.0.0.236/trunk@67566 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 21:05:31 +00:00