Commit Graph
1249 Commits
Author SHA1 Message Date
[email protected] 0178b1e656 WIP for collapsing borders. 1998-12-21 19:20:37 +00:00
[email protected] 4ebcb1cd74 collapsing borders now do rounding of odd-thickness borders correctly
at the pixel level.  The odd pixel is always given to the right and bottom
cell borders whenever possible, and to the top and left table border otherwise.
1998-12-21 18:54:23 +00:00
[email protected] 54977abf27 beginnings of collapsing borders now implemented. Doesn't work for spanning cells yet,
and doesn't measure borders where the width changes along a shared edge yet.
1998-12-21 06:38:18 +00:00
[email protected] 1e10a83138 Revised frame Paint API 1998-12-18 15:54:23 +00:00
[email protected] 46860232f4 WIP on border collapsing 1998-12-17 22:59:40 +00:00
[email protected] 196c95c59c more WIP, no new code operational 1998-12-17 07:56:24 +00:00
[email protected] 701298fb62 WIP collapsing border implementation
added CompareBorderStyles, GetWidthForSide, ComputeCollapsedBorderSegment
we're now computing the left edge segments somewhat correctly.
1998-12-17 07:04:42 +00:00
[email protected] 4af8b02ae9 WIP collapsing border work 1998-12-16 22:19:23 +00:00
[email protected] 21e5c878dd WIP on collapsing borders 1998-12-16 17:05:14 +00:00
[email protected] 453b39e9f0 Tables now clear the isTopOfPage when appropriate 1998-12-14 01:24:11 +00:00
[email protected] 975ea05df4 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
[email protected] 4015a88d1f Added new atoms to nsLayoutAtoms for additional named frame child lists 1998-12-09 05:30:17 +00:00
[email protected] c7164e5f56 Initial table pagination support 1998-12-08 17:57:45 +00:00
[email protected] 2dec1087cf fixed a bug in table-layout:fixed mode
fixed bug fixed a few small bugs
1998-12-08 01:00:14 +00:00
[email protected] dbb4a934fe changed the code that previously accessed mBorderStyle and mBordercolor
with new methods added in nsStyleSpacing
1998-12-07 19:07:45 +00:00
[email protected] b0e257c82e 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
[email protected] 9d02582470 The second argument for GetStyleData needs to be 'const'. 1998-12-05 01:47:37 +00:00
[email protected] 5d80fa70d8 Added NS_RELEASE of col frame pseudo element style context. This fixes a memory leak 1998-12-04 03:39:05 +00:00
[email protected] 6596eebaad Changed table frame code to call DeleteFrameList() so that the col group
frames are deleted
1998-12-04 03:14:28 +00:00
[email protected] 2c2bdfb430 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
[email protected] e602e25924 Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
[email protected] 50476c767e This checkin (under mozilla/layout) is all about 'const'. Digital Unix's
C++ compiler is strict about getting 'const' right.  Most of the changes
are to add 'const' to the type casts for the second argument of the
GetStyleData method, which wants a const reference.
1998-12-02 16:45:20 +00:00
[email protected] ec6e2ff575 fixed some nested table layout problems 1998-11-30 15:10:20 +00:00
[email protected] 560f1fe058 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
[email protected] ef31504e16 implemented table height algorithms. also made a slight modification to
the way a table finds its container's width.
1998-11-20 01:01:25 +00:00
[email protected] f6502df0e2 Added DumpRegressionData; revised ListTag; added GetFrameName 1998-11-19 17:22:29 +00:00
[email protected] d0d7d198ce 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
[email protected] 614b76a37f changes for pixel scaling/printing. 1998-11-14 01:52:27 +00:00
[email protected] 3a79542dcd col and colgroup attribute handling
colgroup pseudo frame for cols inserted directly into a table.  More like this to come...
1998-11-12 18:37:28 +00:00
[email protected] 2022197c05 support for frame and rules attribute 1998-11-11 19:56:02 +00:00
[email protected] 7d57a590c9 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list
1998-11-10 06:05:32 +00:00
[email protected] b04ee51233 First of a few changes to allow frames to have multiple child lists.
FirstChild() now takes an additional argument which is the name of the
child list.
1998-11-09 19:40:27 +00:00
[email protected] 71c770f21c Fixup calls to DumpCellMap() with NS_DEBUG #ifdefs 1998-11-06 02:38:17 +00:00
[email protected] 3dcc4ba5ed various small fixes and clean up 1998-11-05 21:42:46 +00:00
[email protected] f6d394fcc0 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
[email protected] e74acd9aca sync to style resolution api changes 1998-11-03 20:33:43 +00:00
[email protected] 6b939637a4 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
[email protected] b80a9ca305 some extremely preliminary work for styleChanged incremental reflow 1998-10-30 07:57:44 +00:00
[email protected] 86f2428eec minor tweak to column handling 1998-10-27 08:38:56 +00:00
[email protected] 650e16c819 fixed bug 1188. Colspans beyond the end of the table were adding entries
into the column cache, which is very, very bad.
1998-10-26 19:15:31 +00:00
[email protected] 1ea121162a fixed bug 1180 (mozilla.org) and all tables that have nonsense colspans 1998-10-26 18:42:22 +00:00
[email protected] 5b84163e76 fixed bug 1112 - form submission within a table sometimes doesn't work
because the form doesn't get a reflow command.  Now it does.
1998-10-23 17:24:57 +00:00
[email protected] 67eb94d5e1 minor bug fixes 1998-10-23 03:23:29 +00:00
[email protected] 89b8e1b717 just debug info 1998-10-22 21:59:13 +00:00
[email protected] f91b3cfcf4 fixed column caching 1998-10-22 06:04:37 +00:00
[email protected] 9332e66cfe fixed a bug where columns were not always created as needed during incremental appends
added some extra debugging and support methods
1998-10-22 05:27:11 +00:00
[email protected] cf730b7bd6 fixed several incremental reflow bugs 1998-10-21 22:29:00 +00:00
[email protected] 63dfd5801b incremental reflow only does pass1 reflow on new frames when necessary
fixed some rotting bits in table frame classes having to do with breaking tables
1998-10-20 20:05:44 +00:00
[email protected] ecd2d8b2f4 all containers now decend from nsHTMLContainerFrame
all "unknown frame" incremental reflow support methods now
replaced with nsHTMLContainerFrame::AddFrame and ::RemoveFrame
1998-10-20 17:45:07 +00:00
[email protected] 0114a3622b fixed a bug introduced by a slight change in GetColumnCount() 1998-10-20 05:05:17 +00:00