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

222 Коммитов

Автор SHA1 Сообщение Дата
troy%netscape.com 527ee073f8 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list
1998-11-10 06:05:32 +00:00
buster%netscape.com f2bd19c65b various small fixes and clean up 1998-11-05 21:42:46 +00:00
buster%netscape.com 03cad6390d some extremely preliminary work for styleChanged incremental reflow 1998-10-30 07:57:44 +00:00
buster%netscape.com ad3ce75efb 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
buster%netscape.com e220aee18d 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
buster%netscape.com 7cb1f39626 rows can now be incrementally inserted, appended, and deleted. 1998-10-19 23:43:06 +00:00
buster%netscape.com 0c1c724f56 incremental reflow: append/insert/delete row group, append/insert/delete col 1998-10-15 21:07:37 +00:00
buster%netscape.com 73b4846430 progress on table incremental reflow of row group insert/append/delete 1998-10-15 07:46:16 +00:00
buster%netscape.com 2a254f6de9 nsTableFrame can now incrementally insert, append, and delete colgroups 1998-10-14 22:51:50 +00:00
spider%netscape.com 7649993273 Adding EOL in files so will compile on Solaris 1998-10-14 22:12:06 +00:00
buster%netscape.com 0d373afd21 lots of work for incremental reflow when the target frame is a table frame 1998-10-14 16:32:45 +00:00
dcone%netscape.com 25b03013ae took off the class name infront of the routine. Mac does not like this 1998-10-12 15:57:41 +00:00
buster%netscape.com 56237b7411 WIP for inner table incremental reflow
lots of interface cleanup
1998-10-11 09:18:27 +00:00
buster%netscape.com 4a6afd6336 made allocation of mColumnWidths more flexible 1998-10-09 21:53:07 +00:00
buster%netscape.com 2aa95d75a8 support nsTableOuterFrame incremental reflow 1998-10-09 19:59:45 +00:00
buster%netscape.com c81a22ecf1 all frames properly setting ascent and descent values for reflow
WIP incremental reflow in nsTableOuterFrame
1998-10-08 15:34:48 +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
troy%netscape.com ba3c7125c2 Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface
1998-10-01 04:46:11 +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 0bec735087 removed lots of assumptions about frame ordering and containership.
table frames no longer assume they are n levels below the inner table frame
table frames no longer assume their child frames are always the expected type of
frame.  Now they check the display type and use that as sufficient proof that the frame
is of the right type.  This implies a heavy reliance on the frame construction code to do
the right thing and always stamp out the right kind of frame for a given display type.
1998-09-24 16:37:22 +00:00
buster%netscape.com 1fba5ac7dc all frame initialization and related logic has moved into the various table frames' Init() methods
from their respective InitalReflow() methods.
table-layout=fixed now completely skips pass1 reflow and doesn't require maxElementSize
information, saving a tremendous amount of time during initial reflow.
1998-09-23 21:48:26 +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
troy%netscape.com 840d73eab9 Removed some commented out code that's not needed now that we're using the
new frame construction
1998-09-18 00:49:40 +00:00
troy%netscape.com 65269d3422 Frame construction changes for tables 1998-09-16 17:19:20 +00:00
buster%netscape.com 953b2efb58 nsStyleConsts.h added some HTML 4 consts for tables
nsHTMLAtoms.cpp,h             added some HTML 4 strings for tables
nsHTMLParts.h                 added constructors for new table content classes
nsGenericHTMLElement.cpp,h    added table frame creation, common table attribute parsing
nsHTMLTable*Element.cpp       these are the new table content classes
nsHTMLContentSink.cpp         enabled the new content and removed the old
nsHTMLStyleSheet.cpp          fixed the table style optimizations to work with new content
nsTable*Frame.cpp             these work with the new content
1998-09-15 17:58:24 +00:00
buster%netscape.com 89e198237d expanded nsIFrame::List to include nsIListFilter *aFilter param, by default nsnull.
aFilter is useful for determining if a frame should output itself during
a List().  In any event, the children of the frame are always processed.
added nsIListFilter, an interface for any object that wants to act like a filter for frame dumps
added   static NS_LAYOUT nsIListFilter * GetFilter(nsString *aFilterName);
currently, only TableListFilter implements nsIListFilter.
in response to List(...TableListFilter), the frame model is dumped in a way that is useful
for table layout regression testing.  Currently this is controlled by command line switches on the viewer app.
1998-09-02 21:59:54 +00:00
buster%netscape.com 49cf716e9d 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 7b6c525170 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 c024161837 * 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 a09b9a211e 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 cb77901bc4 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 cc50c03239 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 878f3fa809 * 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 51fe86ee79 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 d660868bc2 Changed API for CreateContinuingFrame and GetReflowMetrics to take
a reference to a nsIPresContext
1998-07-15 03:23:23 +00:00
troy a90fe8e1de Changed Reflow() member function to take a reference to a nsIPresContext
instead of a pointer
1998-07-15 02:53:09 +00:00
buster 3e596fc26a 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 f8cb71dab5 fix for empty tables. we now support tables that have no content. 1998-07-07 00:20:21 +00:00
troy 35c2e6b45c Incremental reflow work-in-progress 1998-07-06 21:39:23 +00:00
buster 5135afe659 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 183b82a765 Eliminated some usage of ChildAt() 1998-07-01 22:22:28 +00:00
troy add97af1d2 Moved shrink wrap code from table frame to table row group frame 1998-06-30 02:11:07 +00:00
buster ba02200c08 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 aca4c96fbe 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 ea085cab4b Some work-in-progress for table incremental reflow 1998-06-23 05:43:27 +00:00
buster 288d645ae3 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 421b1e3377 Eliminated FindCellLayoutData() and changed code to use GetCellLayoutData()
instead
1998-06-11 18:50:17 +00:00
buster f56ca7d23b 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 91c5893512 sync up to new style data apis 1998-06-05 06:09:09 +00:00
buster 07076ff7cf 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 3780538b44 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 9a2d1c3765 Updated a few table API's so that percentage width could be properly computed 1998-05-30 21:21:51 +00:00
buster a58280cec0 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 7a485fcc40 Changed nsReflowState structs to be linked together 1998-05-29 20:36:05 +00:00
peterl 613e577b7d added visibility style attribute 1998-05-26 23:17:29 +00:00
buster 2104457c96 table width computation using style system (more than it used to, at least) 1998-05-26 22:03:16 +00:00
kostello e1dc943664 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 3ea1d2d8e3 Merged ResizeReflow() and IncrementalReflow() into one Reflow() member function 1998-05-25 17:31:49 +00:00
kostello 193764594a * 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 aa407491f5 fixed compile errors for mac 1998-05-19 23:11:28 +00:00
peterl 9bc80be166 sync to new spacing apis 1998-05-12 22:28:01 +00:00
troy 5b69e1f043 Change to nsIFrame API 1998-05-12 04:17:56 +00:00
kipp 519a6403a4 Ported to new CreateFrame/CreateContinuingFrame APIs 1998-05-07 00:08:20 +00:00
troy d477d86672 Frames no longet store the content index-in-parent 1998-05-05 23:56:50 +00:00
kostello 150ca7f331 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 a972bb8d29 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 629b7937fc Name changed from ResetColumnLayoutData to RecalcColumnLayoutData 1998-04-28 22:41:25 +00:00
kipp 93fdfbe671 Port to removal of nsStyleMolecule 1998-04-25 18:48:48 +00:00
troy 3ce8e88882 Changed nsIFrame member functions to return a nsresult 1998-04-17 01:41:24 +00:00
buster d7f07f5ef7 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 d3269eec0c documentation changes 1998-04-14 21:45:28 +00:00
kipp 098bef52b4 moved to pub 1998-04-13 20:24:54 +00:00