Commit Graph

445 Commits

Author SHA1 Message Date
buster@netscape.com
5f208e68e1 more content decoupling
support work for style optimizations
fixed a bug in table columns  -- the attribute repeat defaults to 1, not 0
1998-08-26 17:26:38 +00:00
buster@netscape.com
d1f77a833b * migrated and improved some fixes from the branch to the tip
* fixes sample6, yahoo resizing
* added BasicTableLayoutStrategy::ColIsSpecifiedAsMinimumWidth helper function,
which tells us if the given column has a width attribute that means "make me as small as possible"
* nsTableFrame methods now no longer use mCellMap directly, they ask for it from
GetCellMap which gets the cell map from the first-in-flow.  Only the first-in-flow has a
cell map because the cellmap refers to the table as a single object, not to each table frame.
* Likewise, continuing table frames do not call BalanceColumnWidths or SetTableWidth
which are "global" operations.  Responsibility for these lies with the first-in-flow.
1998-08-14 16:16:43 +00:00
troy@netscape.com
6d6cb5ca33 Removed MoveTo() and SizeTo() member functions that were for debug
purposes, and are no longer needed
1998-08-07 18:17:34 +00:00
buster@netscape.com
14deff94a9 COLS attribute ignored if any column width info is specified (like <TD width=100>)
fixed lots of COLS related bugs.
handle min width spec (<TD width=0 or width=0% or width=0*>)
major fix to colspan handling
1998-07-26 04:23:01 +00:00
buster@netscape.com
5971394e6f GetColCount now returns the effective column count of the table, adjusted
for nonsense COLSPANs at the edge of a table.  Fixed some bugs this uncovered
where the cell was being asked for its colspan attribute rather than the table
being asked for the cell's effective col span.
1998-07-24 16:51:16 +00:00
buster@netscape.com
1f39275344 * reworked the way colspan and rowspans are handled in table layout strategy. We do less work, and we look better.
* fixed more margin code.  we're inching towards correctness.
* the width contributed by a colspanning cell is now proportionately distributed to the columns based on the columns "effective width"
* added logic for handling illegal COLS attribute on a table (like COLS=4 in a 3-column table).  See nsTableFrame::GetEffectiveCOLSAttribute()
* added logic for handling illegal COLSPAN attribute on a cell (like COLSPAN=4 in a 3-column table).  See nsTableFrame::GetEffectiveColSpan().  This is wrong, and will get reworked soon.
* added the ability for cell width attributes to effect column width like Nav4.
1998-07-22 03:53:43 +00:00
buster@netscape.com
dd50384b0a fundemental overhaul of the BasicTableLayoutStrategy
We now cache lots of useful info in the colframes
we now properly account for margins just as uniform cellspacing
1998-07-16 23:23:31 +00:00
troy
26046305da Changed API for CreateContinuingFrame and GetReflowMetrics to take
a reference to a nsIPresContext
1998-07-15 03:23:23 +00:00
troy
26b49b4476 Changed Reflow() member function to take a reference to a nsIPresContext
instead of a pointer
1998-07-15 02:53:09 +00:00
buster
0f3a064a10 major hackage to the table data structures. slimmer, simpler, faster
this work exposed a few bugs and slow spots, which have been fixed
for the aol page, I added some additional backwards compatibility code
to proportionately distribute width when a fixed-width cell has colspans
1998-07-11 00:00:31 +00:00
buster
c5522f4239 fix for empty tables. we now support tables that have no content. 1998-07-07 00:20:21 +00:00
troy
9420340aea Incremental reflow work-in-progress 1998-07-06 21:39:23 +00:00
buster
d4a354c4be added support for "effective column widths", the width of a column pretending that spanning cells have no effect.
this gets us some more Nav4 compatibility.
several minor fixes.
1998-07-06 21:00:11 +00:00
troy
0780194275 Eliminated some usage of ChildAt() 1998-07-01 22:22:28 +00:00
troy
615498146d Moved shrink wrap code from table frame to table row group frame 1998-06-30 02:11:07 +00:00
buster
508644dbef fixed some bugs related to rowspans. This gets us closer on pages like Mozilla.org that were getting wild table heights. 1998-06-24 19:13:19 +00:00
buster
34ee46e65a lots of nested tables look much better
misc. nav4 compatibility enhancements
added the ability to QueryInterface for some specific table frame types
1998-06-23 23:23:21 +00:00
troy
e5b7f89fc9 Some work-in-progress for table incremental reflow 1998-06-23 05:43:27 +00:00
buster
3ed8a1b541 Separated table content from table layout. This paves the way for XML/CSS-2 tables.
Lots and lots of optimizations.
1998-06-17 16:38:24 +00:00
troy
7f5fdd6857 Eliminated FindCellLayoutData() and changed code to use GetCellLayoutData()
instead
1998-06-11 18:50:17 +00:00
buster
b7f22eb564 column widths with cells that span columns now work in most cases, for pixels and percents
not yet implemented for the "constrained" case
1998-06-05 18:11:20 +00:00
peterl
4094b160d0 sync up to new style data apis 1998-06-05 06:09:09 +00:00
buster
d99b7fea16 cell width calculations are working (not for colspan cells yet)
some bug fixes and optimizations
some of the more elaborate test cases are closer to Nav4-compatible
1998-06-05 02:36:25 +00:00
buster
0a4b04fa63 a variety of fixes and optimizations
together with a fix troy just checked in, this makes a lot of real-world tables look a whole lot better
1998-06-03 00:43:53 +00:00
kipp
6639c5321b Updated a few table API's so that percentage width could be properly computed 1998-05-30 21:21:51 +00:00
buster
ab2b674462 some proportional column balancing now works
the <TABLE> COLS attribute is supported via proportional column balancing.
1998-05-29 22:08:19 +00:00
troy
017eaee3fd Changed nsReflowState structs to be linked together 1998-05-29 20:36:05 +00:00
peterl
52459ad55c added visibility style attribute 1998-05-26 23:17:29 +00:00
buster
b8493a005a table width computation using style system (more than it used to, at least) 1998-05-26 22:03:16 +00:00
kostello
c251301732 Updated Table Border code to render HTML3.2 compatible borders (no longer using the cool,
CSS borders).
Fixed Table but submitted by Isaac David Guedalia <daniel_sh@gezernet.co.il>.
1998-05-26 20:57:24 +00:00
troy
bb67652981 Merged ResizeReflow() and IncrementalReflow() into one Reflow() member function 1998-05-25 17:31:49 +00:00
kostello
0ad6084398 * Added Support for cell spacing
* NOTE: due to changes in the style system -- things won't look correct right away.
1998-05-21 23:43:18 +00:00
thom
4dd73ab2b5 fixed compile errors for mac 1998-05-19 23:11:28 +00:00
peterl
7ef2e3bd72 sync to new spacing apis 1998-05-12 22:28:01 +00:00
troy
a4f9d76cd7 Change to nsIFrame API 1998-05-12 04:17:56 +00:00
kipp
4723760aa9 Ported to new CreateFrame/CreateContinuingFrame APIs 1998-05-07 00:08:20 +00:00
troy
b3260db3df Frames no longet store the content index-in-parent 1998-05-05 23:56:50 +00:00
kostello
e34a7ad3f7 Made SetStyleContext take the presentation context as a parameter
Made DidSetStyleContext virtual, since we need to override the behavior in subclasses
Moved attribute setting logic from nsTableCell to nsTableCellFrame
Table Borders are being drawn again : )
Table Padding is being displayed
1998-05-01 20:44:55 +00:00
buster
427dbb7618 added nsITableLayoutStrategy as the interface for objects that manage
table column balancing.  Implemented in BasicTableLayoutStrategy (HTML4-spec).
nsTableFrame instantiates a strategy depending on the compatibility mode.
1998-04-30 17:57:09 +00:00
kostello
c5453c810f Name changed from ResetColumnLayoutData to RecalcColumnLayoutData 1998-04-28 22:41:25 +00:00
kipp
3d36933cf7 Port to removal of nsStyleMolecule 1998-04-25 18:48:48 +00:00
troy
13419330e6 Changed nsIFrame member functions to return a nsresult 1998-04-17 01:41:24 +00:00
buster
0a677fc199 simple tables now paginate nicely. Some more complex tables
also paginate ok, though resizing in paginated mode doesn't work yet.
Captions still don't work.
1998-04-16 22:21:32 +00:00
buster
95a410a7e8 documentation changes 1998-04-14 21:45:28 +00:00
kipp
4683c6f4c0 moved to pub 1998-04-13 20:24:54 +00:00