Граф коммитов

117 Коммитов

Автор SHA1 Сообщение Дата
karnaze%netscape.com 6ebad978c8 fixes related to crash in AC_Wrapup on optimized builds. 1999-07-28 19:43:37 +00:00
shaver%netscape.com b1e1e8f1d1 zero out colInfo wehen allocated to avoid startup crash and other badness 1999-07-28 18:52:04 +00:00
karnaze%netscape.com 1e4b5ffa1f fix mac breakage, hopefully 1999-07-28 09:13:44 +00:00
warren%netscape.com a1376209a0 Attempt to fix the mac build. 1999-07-28 08:56:12 +00:00
karnaze%netscape.com d5e430c16a 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
buster%netscape.com 1823698740 fixed warnings 1999-06-28 13:44:40 +00:00
karnaze%netscape.com cf6f1e2d5a bug 7243. Rewrote FixedTableLayoutStrategy::AssignPreliminaryColumnWidths 1999-06-03 02:42:33 +00:00
karnaze%netscape.com 8f59339b67 Rewrote DistributeRemainingSpace a 2nd time and added compat mode.
bug 6068, 6933. nsTableRowGroupFrame::CalculateRowHeights - changed row spans to consider
top and bottom margins during height calculations. Calculations using percentages ensure that the sum of
rows sum exactly to excess.

bug 6404 BasicTableLayoutStrategy::BalanceColumnsConstrained cols in span other than 1st col was
not getting additional allocations from cell. ::DistributeRemainSpace uses max width of col
instead of max effective width. Also added checks for negative value during percentage calculations.
1999-05-26 22:22:23 +00:00
karnaze%netscape.com 414e20e8b6 support for css padding in table cells 1999-05-18 05:18:16 +00:00
karnaze%netscape.com 7e4d3f805a bug 6184 - reworked alogrithm for reallocating space to auto width columns. 1999-05-10 19:23:09 +00:00
karnaze%netscape.com bdd77eb6ef code clean up, use of macros for table debugging 1999-04-03 23:02:43 +00:00
troy%netscape.com 8dfabdf1a8 Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references
1999-02-24 04:48:08 +00:00
kipp%netscape.com 5a554d526e COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
buster%netscape.com a350956668 changed getters to be XP_COM-like, with out-params instead of return values.
this is so these getters can be bound to an XPCOM interface, nsITableCellLayout
1999-02-11 01:16:28 +00:00
buster%netscape.com c29f2bbe69 just documentation 1999-01-07 02:16:10 +00:00
buster%netscape.com 6c425dcc97 WIP for collapsing borders 1998-12-23 15:47:43 +00:00
buster%netscape.com ffb50a065b tables can now have independent horizontal and vertical cell spacing
("cellspacing" HTML attribute == "border-spacing" CSS property, go figure...)
1998-12-09 06:37:18 +00:00
buster%netscape.com 6093d1b292 fixed a bug in table-layout:fixed mode
fixed bug fixed a few small bugs
1998-12-08 01:00:14 +00:00
buster%netscape.com bee46015b7 fixed cellspacing and cellpadding handling
default cellspacing and cellpadding now comes from the table frame itself
other frames on longer look at the "tableStyle" struct for these values
1998-12-05 05:27:21 +00:00
buster%netscape.com a15dfd9f3a the inner table frame now maintains 2 child lists: the main child lists that holds rowgroups and unknown frame
types, and mColGroups. Besides being cleaner and easier to maintain, this should speed some things up slightly
     because I don't have to check display types every time I iterate through colgroup frames.  I *know*
     mColGroups contains only colgroups.  I might do the same for rowgroups (that is, keep unknown frame types
     in their own list as well.)  But that's optional.
the inner table frame used to incorrectly create actual content objects for anonymous colgroups and cols.  Now,
     it just creates frames as appropriate, not content.  To support this, I added some pseudo style contexts and
     related atoms.
1998-12-03 18:01:35 +00:00
buster%netscape.com 566c2946f2 fixed a bug for tables with complicated colspans and fixed widths 1998-11-30 19:06:33 +00:00
buster%netscape.com 892f7b866f fixed some nested table layout problems 1998-11-30 15:10:20 +00:00
buster%netscape.com e2fcfeebdf 2 Nav4 compatibility additions:
1. width=0 is treated as width=auto, not width=min
2. empty cells <td></td> are assigned a width of (2*borderWidth + 2*cellspacing + 3) pixels
The "3" is a fudge factor added by Nav and IE.
1998-11-25 18:43:56 +00:00
buster%netscape.com c630ab9ae5 bug 1520 (www.mirabilis.com)
the problem was the way table layout apportioned height from a rowspanning cell.
Now, we do 2 things correctly:
1) we handle rows with rowspanning cells and no other cells.
2) we divide the height of a rowspanning cell proportionately to the rows spanned, where the proportion is defined by
the max height of a cell in that row that has no effective rowspan.

the partial fix for bug 1431 has to do with dividing width between percent-width and fixed-width columns in the same
table. You won't see any better layout for this page (ww.boston.com) as a result of the code I added.  The rest of this
fix is a bit risky, so I'm waiting until after stability push.
1998-11-24 19:41:33 +00:00
alecf%netscape.com f2f58f18c5 fix casting problems for gcc 2.7.2.3 1998-11-20 09:29:58 +00:00
buster%netscape.com 8e34bbc78e irrationally-specified table (one where the width attributes of various rows don't add up to the same value,
and/or to the width attribute on the table itself), the rule is to try to give the column the largest value
assigned to it by any cell intersecting that column.
Separate storage is maintained for a column's natural desired width (width from any source other than a cell
with a colspan) and the maximum contribution to the column's width from any cell with a colspan.
1998-11-16 06:46:00 +00:00
buster%netscape.com d5affd8ba1 various small fixes and clean up 1998-11-05 21:42:46 +00:00
buster%netscape.com 5c6d17bdd7 in default 2-pass layout, tables with auto width and with all columns coord width now act like auto width tables,
not like specified width (which you might logically expect since all column widths are specified, but sadly that's
not the way Nav or IE interprets this case. )
nsTableFrame's use of IsPseudoFrame has been removed.
1998-11-04 19:33:27 +00:00
buster%netscape.com a27bed26af tables were not properly respecting maxElementSize in cells with colspan. now they do. 1998-11-02 22:19:17 +00:00
buster%netscape.com 8e569cbd83 implemented basic attribute changed handling. most things currently work, those that don't will work better after Peter
lands some style context resolution changes.
1998-10-30 23:08:34 +00:00
buster%netscape.com 1a6e235441 minor fix in determining which layout algorithm to call based on available size 1998-10-29 19:42:43 +00:00
buster%netscape.com 4a88c8aecd *** empty log message *** 1998-10-23 20:52:23 +00:00
buster%netscape.com f3e909a55e fixes Bug 1110, URL=http://www.webstandards.org
ables were not correctly applying the min width of the content of cells
that had col spans in some cases.  In this case, the nested table was specified
as being too narrow for the content.  There were 4 columns each with width=25%
in the first row, and in the next row a single cell with colspan=4 and whose
content min size was wider than the specified table width.
1998-10-23 19:56:11 +00:00
buster%netscape.com a7862f4aa2 minor bug fixes 1998-10-23 03:23:29 +00:00
buster%netscape.com 113ad4cfe4 fixed several incremental reflow bugs 1998-10-21 22:29:00 +00:00
buster%netscape.com 76b966c73b rows can now be incrementally inserted, appended, and deleted. 1998-10-19 23:43:06 +00:00
buster%netscape.com 37e93ed6b7 support nsTableOuterFrame incremental reflow 1998-10-09 19:59:45 +00:00
buster%netscape.com add945f1f9 fixed calculation for width of auto-width cells in constrained layout 1998-10-06 08:00:07 +00:00
buster%netscape.com 2cf9393bc0 fixed coord-width colspan handling in some complex cases 1998-10-02 20:34:11 +00:00
troy%netscape.com f095846367 Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
buster%netscape.com 0a193d0103 much better backwards compatibility for autowidth tables
now autowidth columns as assigned a width starting from their minimum.  The remaining
space is proportionately divided among them, never allowing a column to go over its max (for
autowidth tables only.)
1998-10-01 18:39:31 +00:00
buster%netscape.com 3cc5736a1a fixed a minor bug in colspan layout
the layout strategy can now query the outer frame for the caption min width,
and use it to expand the table if necessary
did some related cleanup while I was in there.
1998-09-29 23:15:01 +00:00
buster%netscape.com 29018c63f5 set all the groundwork for FAST table layout based on CSS-2 table-layout property 1998-09-22 23:36:06 +00:00
buster%netscape.com 1595410b34 added ColIsSpannedInto, ColHasSpanningCells
moved *IsSpannedInto and *HasSpanningCells into cellmap, giving us the oppurtunity
to easily cache results if we want.  These methods are still accessed through nsTableFrame.
changed nsTableFrame::GetCellAt to nsTableFrame::GetCellFrameAt to make it more clear what
the method returns:  a frame, not content.
1998-09-18 22:37:14 +00:00
buster%netscape.com 58ec784e3d better handling of non-cell frames in rowFrames
support for the case where a nested table is in a cell that has colspan>1
1998-09-16 00:48:14 +00:00
buster%netscape.com e20837cb63 many fixes that effect http://www.mozilla.org and related pages.
these fixes are for nested tables with percent widths, for tables including both rowspan and colspan,
and for tables with only a single column.
some rounding errors were eliminated.
more debugging output, and some new assertions.
1998-09-09 20:00:40 +00:00
buster%netscape.com 6a75755983 fixed 2 small errors in computing table widths.
1) sometimes we were adding 1 too many pixels in constrained tables
2) sometimes we were using the wrong value for the max width as an input to constrained tables
1998-09-08 19:11:14 +00:00
buster%netscape.com e5ebbcebfb reimplemented cell map in terms of nsVoidArrays for incremental building.
the cellmap is now built incrementally, driven by nsTableRowFrame::InitialReflow
1998-08-31 21:23:28 +00:00
buster%netscape.com 7e96e8fd79 fixed a minor bug handling tables with COLS attribute 1998-08-26 17:53:47 +00:00
buster%netscape.com e0a1fdde1a verify that proportionate-width columns (1* format, or COLS attribute)
get sized to at least their minimum width
1998-08-20 17:31:20 +00:00