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

220 Коммитов

Автор SHA1 Сообщение Дата
karnaze%netscape.com 2c3069b5b0 bug 35662 - when computing an artifical auto table width for % cells, count only the max contributor in each col. sr=waterson, r=peterl
bug 29058 (patch submitted by bernd.mielke@snafu.de) - consider proportional widths in avail totals. sr=waterson, r=karnaze
2000-11-29 21:48:56 +00:00
warren%netscape.com cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
karnaze%netscape.com fbc3dede62 bug 56024 - if there is no desired content width for a col, don't include the min content in totals. a=buster, r=attinasi. 2000-10-13 01:57:02 +00:00
karnaze%netscape.com 4162100725 bug 53891 - strategy correctly calculates preferred width of a fixed width table. a=buster, r=dcone. 2000-10-06 01:04:13 +00:00
karnaze%netscape.com ddd14a6264 bug 19961 - in standard mode, honor fixed cols and give remaining space to auto cols if there are any. a=buster, r=dcone 2000-10-05 21:01:10 +00:00
karnaze%netscape.com b182356e04 bug 51727 - rebalance table cols when fixed cell gets smaller and was the contributor of the previous col width. r=rods. 2000-09-12 14:24:35 +00:00
karnaze%netscape.com 68540e7f02 bug 19961 (partial) - in standard mode, give last remaining space to auto cols if there are any. 2000-09-11 04:14:02 +00:00
karnaze%netscape.com e7cf1bf7e1 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 3f12f0e88a bug 33137 - don't use the min width of a cell which is larger than the fixed width of the cell as the basis of the fixed width contributor. r=attinasi. 2000-09-07 20:55:03 +00:00
karnaze%netscape.com ca6ca2bb08 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 eec08ac9b6 nsbeta2+ bug 23345 - layout strategy bases percent over-allocations on style percent values rather than computed values. r=attinasi 2000-05-26 21:13:01 +00:00
karnaze%netscape.com 7aea563c64 nsbeta2+ bug 39885 - invalidate minimal areas. optimize reflows when cells don't change size. r=attinasi 2000-05-25 22:40:21 +00:00
karnaze%netscape.com 854d511d3e bug 28811, 29459, 32507 - added flag to reflow state to handle table cells.
changed table min and max width calculations to include percent and proportional cells.
Include border and padding in min table width calc.
2000-05-16 22:55:34 +00:00
karnaze%netscape.com 2005083629 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
karnaze%netscape.com 49f3412344 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
karnaze%netscape.com 2474de4e75 bug 18770, no percent calcs on unconstrained width, better allocation to cols. 2000-02-09 14:22:00 +00:00
karnaze%netscape.com 33cc9a9a34 bug 17826, removed buggy/unnecessary RecomputeAdjustedMinIfNecessary, r=attinasi 2000-02-02 00:48:30 +00:00
karnaze%netscape.com 9caaf2af43 bug 24880 colspan/rowspan=0 handling, bug 22122 handle *0 proportional width; r=kmcclusk. 2000-02-01 03:23:29 +00:00
troy%netscape.com 8a78d916a5 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 8a106ef33c 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
troy%netscape.com 116ce36bc6 b=20772. Changed ColumnsAreValidFor() so that it correctly handles the case
where the cell's desired width shrinks
2000-01-12 21:53:55 +00:00
karnaze%netscape.com 5cb57b00e7 fixed tinderbox warnings 2000-01-03 00:56:12 +00:00
karnaze%netscape.com 0fbc252ef9 bug 12287 - honors mComputed values in reflow state and uses CSS box-sizing property. 2000-01-02 22:55:48 +00:00
troy%netscape.com b3f6ab293f Reduced size of table cell member data by 4 bytes by only storing the
maximum width and not both the width and height. The height was never used
so this wans't an issue
1999-12-24 03:46:21 +00:00
karnaze%netscape.com 2eb4655c2e incremental cell map, columns. Bugs 12122, 21544. r=troy,hyatt a=hofmann 1999-12-13 22:56:31 +00:00
karnaze%netscape.com 0a147c2499 removed allocation warning messages 1999-11-15 15:42:20 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
karnaze%netscape.com 308a8162be bugs 17138, 17168 and others - col allocation involving colspans honors constraints; pct colspans were allocating incorrectly if pct cols existed. 1999-11-05 22:36:59 +00:00
tbogard%aol.net c2a26335bd Changed NS_ASSERTION to NS_WARN_IF_FALSE to avoid crashing people when condition is met. r=hyatt. 1999-11-02 05:14:27 +00:00
karnaze%netscape.com a7b3246a33 bug 16284, 14159 nested auto table with percent cells was not growing auto table. nested coord or percent table was only getting min size. 1999-10-25 22:49:51 +00:00
karnaze%netscape.com 0a98c8cf5b bug 5799 - considers percentage width of multiple cells when figuring width of auto table. 1999-10-25 04:34:28 +00:00
kipp%netscape.com 8f4ae7163a Removed some more warnings 1999-10-22 14:51:41 +00:00
karnaze%netscape.com 01ebcb16d0 bug 5799 - width of auto width table considers percentage cells when they are small relative to the rest of the table. r=dcone 1999-10-21 22:36:21 +00:00
karnaze%netscape.com 80a50d6b37 added #ifdef for debug printing. 1999-10-18 13:48:19 +00:00
kipp%netscape.com 5b80d4a004 Nuke some more warnings 1999-10-15 21:18:32 +00:00
karnaze%netscape.com d978f30c29 bug 11026 - AllocateUnconstrained was off by 1 twip in some cases. bug 14159 - cell is not fixed width if an auto cell in the same col has a larger desired size for backward compatibilty. 1999-10-13 14:44:22 +00:00
kipp%netscape.com 65f6ba5343 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
karnaze%netscape.com 249f8499bb column allocation does fixed and adjusted fixed (colspans) in separate steps. Simplified AllocateConstrained. Fixed bug 14332. 1999-10-04 05:19:32 +00:00
karnaze%netscape.com 3d94070d9e bug 10009 - uses width set on <td> in figuring width of nested table 1999-09-28 21:57:44 +00:00
kipp%netscape.com d63ca4aef1 Squish a warning or two 1999-09-17 20:16:37 +00:00
karnaze%netscape.com 549b434e4f bug 13683 - fixed memory leak. 1999-09-16 22:24:03 +00:00
karnaze%netscape.com 95e4bec1f7 removed border subtraction from out table frame and adjusted in layout strategy. 1999-09-13 21:45:58 +00:00
karnaze%netscape.com 711879206c bug 12287 - removed nsTableFrame::GetContainerWidth, renamed TableIsAutoWidth to IsAutoWidth and simplified. 1999-08-27 21:15:21 +00:00
karnaze%netscape.com 7dddc57925 bug 1271 - percentage height cells, added GetNumCellsOriginatingInRow, fixed GetNumCellsOriginatingInCol 1999-08-25 21:49:18 +00:00
karnaze%netscape.com b8e618df7b replaced debug flags with class. removed compiler warnings. 1999-08-24 12:01:31 +00:00
karnaze%netscape.com 580f6c95ec bug 11026 - rounding error on balancing when max element size is too large. 1999-08-23 04:41:30 +00:00
karnaze%netscape.com 08565d8aff changed initial value in ColumnsAreValidFor. 1999-08-22 02:36:00 +00:00
karnaze%netscape.com 6eb1c1889b bug 11944 - correct placement of row group using table border/padding. bug 625 - reinitialized col sizes before 2nd pass 1 reflow. 1999-08-21 06:38:07 +00:00
karnaze%netscape.com cb3ff2b8d2 bug 11944 - row group is properly offset using table border. cleaned up new incremental reflow methods. 1999-08-20 23:27:54 +00:00
brade%netscape.com 13ca5f21c8 remove macintosh compiler warnings 1999-08-20 13:27:48 +00:00
karnaze%netscape.com 7bad0d49ba 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 0767a5bbcd figuring a col's adj min width from a colspan uses adj min width 1999-08-03 23:16:43 +00:00
karnaze%netscape.com d3d33fec48 fixes related to crash in AC_Wrapup on optimized builds. 1999-07-28 19:43:37 +00:00
shaver%netscape.com 2eb68e6135 zero out colInfo wehen allocated to avoid startup crash and other badness 1999-07-28 18:52:04 +00:00
karnaze%netscape.com 605c48e134 fix mac breakage, hopefully 1999-07-28 09:13:44 +00:00
warren%netscape.com 661fc2e7ea Attempt to fix the mac build. 1999-07-28 08:56:12 +00:00
karnaze%netscape.com a88b1a3f85 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 481008636f fixed warnings 1999-06-28 13:44:40 +00:00
karnaze%netscape.com 1046000459 bug 7243. Rewrote FixedTableLayoutStrategy::AssignPreliminaryColumnWidths 1999-06-03 02:42:33 +00:00
karnaze%netscape.com 94ebf57b47 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 ebeb68d601 support for css padding in table cells 1999-05-18 05:18:16 +00:00
karnaze%netscape.com 7bab75d66f bug 6184 - reworked alogrithm for reallocating space to auto width columns. 1999-05-10 19:23:09 +00:00
karnaze%netscape.com 481f4cd68e code clean up, use of macros for table debugging 1999-04-03 23:02:43 +00:00
troy%netscape.com 03c5c1f520 Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references
1999-02-24 04:48:08 +00:00
kipp%netscape.com 36c243cdc0 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
buster%netscape.com 178ad83c45 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 ef57c474ae just documentation 1999-01-07 02:16:10 +00:00
buster%netscape.com d87ab21022 WIP for collapsing borders 1998-12-23 15:47:43 +00:00
buster%netscape.com 8031108e1b 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 c85a6cdd73 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 4e927b37f3 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 9c4e4e9e76 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 09df53a05d fixed a bug for tables with complicated colspans and fixed widths 1998-11-30 19:06:33 +00:00
buster%netscape.com c44861d421 fixed some nested table layout problems 1998-11-30 15:10:20 +00:00
buster%netscape.com 3ddfe1c165 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 9e645e1fc6 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 9e8f173714 fix casting problems for gcc 2.7.2.3 1998-11-20 09:29:58 +00:00
buster%netscape.com 21e08756c0 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 f2bd19c65b various small fixes and clean up 1998-11-05 21:42:46 +00:00
buster%netscape.com 95dc9f956f 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 fdcb34465c tables were not properly respecting maxElementSize in cells with colspan. now they do. 1998-11-02 22:19:17 +00:00
buster%netscape.com f01655410d 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 d029154680 minor fix in determining which layout algorithm to call based on available size 1998-10-29 19:42:43 +00:00
buster%netscape.com 4d2bc42fb1 *** empty log message *** 1998-10-23 20:52:23 +00:00
buster%netscape.com c4b345b782 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 771cfdf226 minor bug fixes 1998-10-23 03:23:29 +00:00
buster%netscape.com 5062d0261a fixed several incremental reflow bugs 1998-10-21 22:29:00 +00:00
buster%netscape.com 7cb1f39626 rows can now be incrementally inserted, appended, and deleted. 1998-10-19 23:43:06 +00:00
buster%netscape.com 2aa95d75a8 support nsTableOuterFrame incremental reflow 1998-10-09 19:59:45 +00:00
buster%netscape.com 05adbb04da fixed calculation for width of auto-width cells in constrained layout 1998-10-06 08:00:07 +00:00
buster%netscape.com 2545621ffb fixed coord-width colspan handling in some complex cases 1998-10-02 20:34:11 +00:00
troy%netscape.com 7aceb4270d Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
buster%netscape.com d2b25dd7ee 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 85d7016988 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 6b5085a487 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 9a953b8672 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 360b73b48c 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 2e72b5b556 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 65191223c4 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