Commit Graph

59 Commits

Author SHA1 Message Date
L. David Baron
dab5606cc8 Distribute extra space in fixed-layout tables where all columns have widths proportionally rather than equally, for compatibility. (Bug 445142) r=bernd sr=roc a=blocking1.9.1+ 2008-11-25 13:27:54 -08:00
L. David Baron
6e815662e5 For fixed-layout tables, leave room for the cell spacing for all columns, whether they have cells originating in them or not, since we don't know if cells for those columns will arrive as the table loads incrementally. (Bug 444928) r=bernd sr=roc 2008-09-24 10:14:35 -07:00
Zack Weinberg
6071687c64 Remove eStyleUnit_Chars and the special cases for it throughout layout, and make ch units go through the normal eStyleUnit_Coord cases. (Bug 363706) r+sr=dbaron 2008-07-15 14:31:36 -07:00
2176d67e34 Rename new width keywords to match CSS WG decision. b=402706 r+sr=bzbarsky a=blocking1.9+ 2007-11-15 10:10:31 -08:00
263d44e417 Add support for -moz-intrinsic, -moz-min-intrinsic, -moz-shrink-wrap, and -moz-fill for width, min-width, and max-width. b=311415 r+sr=bzbarsky 2007-05-03 16:11:00 -07:00
bzbarsky@mit.edu
b09985c9eb Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags.  Bug 367442, r+sr=dbaron
2007-01-26 00:05:12 +00:00
dbaron@dbaron.org
23c32c2914 Untabify. 2006-12-25 19:44:34 +00:00
mats.palmgren@bredband.net
8a34355d8d Make the CSS 'ch' length unit work in most cases. b=363573 r+sr=dbaron 2006-12-17 14:06:42 +00:00
dbaron@dbaron.org
d21cb374bd 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. 2006-12-08 05:38:33 +00:00
bmlk@gmx.de
4ccc8c4f11 avoid memory leak on early return bug 333354 r/sr=bzbarsky 2006-05-25 14:56:44 +00:00
timeless@mozdev.org
c95a9608ea Bug 298277 remove useless references to nsVoidArray
r=dbaron sr=dbaron
2006-02-23 10:30:59 +00:00
bmlk@gmx.de
7880f20a0c don't shrink cells below borderpadding in fixed layout, bug 308019 r/sr=bzbarsky 2006-02-11 11:12:40 +00:00
bryner@brianryner.com
15745b0b06 Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc. 2004-07-29 19:41:39 +00:00
gerv@gerv.net
a1ec040a65 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:30:37 +00:00
bmlk@gmx.de
073fdd99be prescontext removal part 2 bug 229631 r/sr=roc 2003-12-29 16:58:20 +00:00
bmlk@gmx.de
af8832a6e5 reduce prescontext usage in basic layout strategy bug 229457 r/sr=roc 2003-12-28 17:02:40 +00:00
bmlk@gmx.de
f91c0e04ca remove bogus array handling code bug 226757 r/sr=dbaron 2003-12-20 11:15:27 +00:00
bmlk@gmx.de
48217ac321 fixed table layout add cellspacing only for columns where cells originate. bug 220653 r/sr=bzbarsky 2003-10-21 19:29:14 +00:00
dbaron@dbaron.org
f98e358469 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 2003-05-15 03:42:21 +00:00
bmlk@gmx.de
3f7cab2c23 build warning fix bug 198738 r/sr=bzbarsky 2003-04-05 15:36:31 +00:00
bmlk@gmx.de
67db62969a fix build warnings from my previous checkin 2003-03-22 12:21:22 +00:00
bmlk@gmx.de
27bbab1bb0 change table cell width to content width, bug 119100 r=jkeiser sr=bzbarsky 2003-03-21 19:35:36 +00:00
bryner@netscape.com
c98c382545 Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky. 2003-01-09 06:49:07 +00:00
bzbarsky@mit.edu
fbada43197 Fix allocation of whitespace in table-layout:fixed to handle rounding
errors better.  Bug 157890, r=karnaze, sr=dbaron, a=asa
2002-07-30 02:29:03 +00:00
jst@netscape.com
78ccba6821 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com 2002-05-23 00:00:34 +00:00
cathleen@netscape.com
5139dae37b eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan 2002-02-05 01:41:13 +00:00
karnaze@netscape.com
b72c3a549f bug 110474 - fix pixel rounding errors. sr=attinasi, r=bernd 2001-11-19 15:51:28 +00:00
karnaze@netscape.com
f23661affc bug 60816 use correct cell when rowspan and colspan overlap. Fix pixel rounding errors. sr=attiansi, r=alexsavulov 2001-10-26 02:30:38 +00:00
gerv@gerv.net
58d409fba9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
karnaze@netscape.com
dffc3b4c67 table reflow coalescing, table reflow face lift. sr=attinasi 2001-03-13 06:38:59 +00:00
karnaze@netscape.com
9ebec189aa bug 34176 - correct fixed table layout over allocated cols. sr=waterson, r=karnaze. 2001-01-26 23:44:59 +00:00
karnaze@netscape.com
c88090d762 bug 9848 - check for out of memory when calling new. r=dcone. 2000-11-30 15:53:55 +00:00
karnaze@netscape.com
a32f82f8dc bug 14929 - Reallocate colspan adjusted col widths when there is a percent col being spanned. 2000-09-09 01:46:44 +00:00
karnaze@netscape.com
59d6a99d6d bug 27529 - round column allocations to even pixel value. bug 18955 - don't allocate a col based on desired content if there is a fixed value. r=peterl. 2000-09-01 01:29:50 +00:00
karnaze@netscape.com
d5977cf08e bug 29459 - strategy's table min and max width is calculated to include
percent and proportional cells. Stopped caching it. Calculate max element size better.
2000-05-10 00:54:00 +00:00
jdunn@netscape.com
d30b76c7fe Fix problem with NS_IF_ADDREF on member variables inside of const
member functions.  This includes removing all references to
NS_DEF_PTR and the including of nsIPtr.h

r=troy@netscape.com,dougt@netscape.com,scc@netscape.com
# 28114
a=chofmann@netscape.com
2000-02-17 23:19:18 +00:00
karnaze@netscape.com
ee63354f10 bug 10636, 15499(partial) - correctly get margin,border,padding from reflow info. calculate it for percentage padding when reflow state not available. r=troy 2000-02-12 01:55:40 +00:00
troy@netscape.com
67f034175a b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
karnaze@netscape.com
29f042cbc6 fixed printing assertions; more throughly check cell map usage for contuining frames;
fixed bug 24057; r=kmcclusk,cmanske; could not run mail smoke tests due to prior bustage.
2000-01-15 20:10:00 +00:00
alecf@netscape.com
d9b2ec1c1d fix unix bustage once and for all 1999-12-14 00:24:33 +00:00
karnaze@netscape.com
f52136224a incremental cell map, columns. Bugs 12122, 21544. r=troy,hyatt a=hofmann 1999-12-13 22:56:31 +00:00
dmose@mozilla.org
796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
hyatt@netscape.com
317698335d Teaching the fixed layout strategy how to deal with relative/proportional specified
widths.
1999-08-29 06:00:32 +00:00
karnaze@netscape.com
9eb02eeb70 bug 11944 - row group is properly offset using table border. cleaned up new incremental reflow methods. 1999-08-20 23:27:54 +00:00
karnaze@netscape.com
1be27de6a7 Added new incremental reflow methods.
CellData keeps track of row versus col spans.
nsColFrame keeps track of what cell contributed to constrained width.
nsCellMap::GetCellFrameAt replace with GetCellInfoAt
simplified nsTableCellFrame::RecalcLayoutData and removed FindLargestMargin, CalculateMargins, CalculateMargins
simplified nsTableFrame::RecalcLayoutData and removed AppendLayoutData
Added gsDebugReflow capability, remove all existing debug printf
1999-08-19 19:52:37 +00:00
karnaze@netscape.com
0f38815cdf new nsCellMap, BasicTableLayoutStrategy, plus various fixes to table
frames while testing the new cell map and strategy
1999-07-28 08:09:02 +00:00
hyatt@netscape.com
8ddc68a23e oops. crazy_width only defined for debug builds. Changing this. 1999-07-24 00:32:21 +00:00
hyatt@netscape.com
aab60da5b4 Getting rid of all the printfs and complaints that fire in mailnews by making
the fixed table layout algorithm smarter about unconstrained width reflow.
1999-07-23 23:41:05 +00:00
hyatt@netscape.com
012d4b7453 Fix for assertions being thrown when fixed layout tables are flowed at an
unconstrained width.  Instead of asserting, intrinsic first row cell widths will be
used to determine the widths of columns with percentage-specified sizes.
1999-07-23 20:32:18 +00:00
sspitzer@netscape.com
cad5db2cdd fix crash. when I launch apprunner -pref, I hit the assertion.
then I crash because I dereference null.
1999-07-01 07:28:47 +00:00