Commit Graph

246 Commits

Author SHA1 Message Date
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
kipp%netscape.com
2caa6d7cf3 Create table-cell's body as a top-level body so that it doesn't shrink wrap around it's children during pass2 table reflow 1998-09-29 22:36:30 +00:00
kipp%netscape.com
261b8bd181 Changed factory method to parameterize the shrink wrapping behavior 1998-09-29 03:44:25 +00:00
buster%netscape.com
15751816da fixed bug 915. Colgroup frames now get Init() calls properly with
synthesized COLs.
1998-09-28 20:38:10 +00:00
kipp%netscape.com
fff04dae01 Use modified css rendering API 1998-09-26 17:17:20 +00:00
kipp%netscape.com
a388e31cbd Fixed up includes to not depend on old content model classes 1998-09-24 21:37:45 +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
troy%netscape.com
5dac3c72a9 Removed IsPseudoFrame() from nsContainerFrame 1998-09-24 04:57:30 +00:00
troy%netscape.com
f1e955440e Changed signature of PushChildren() member function 1998-09-24 04:18:58 +00:00
troy%netscape.com
1724bb5dad Removed IsLastChild() member function from nsContainerFrame 1998-09-24 04:12:01 +00:00
troy%netscape.com
fb0251ec2e Removed ChildIsPseudoFrame() and IsEmpty() from nsContainerFrame 1998-09-24 04:06:42 +00:00
troy%netscape.com
dd71642dd1 Removed PreReflowCheck() and PostReflowCheck() from nsContainerFrame 1998-09-24 03:59:30 +00:00
troy%netscape.com
b31a3f0a5f Removed mFirstContentOffset, LastContentOffset, and mLastContentIsComplete
from nsContainerFrame
1998-09-24 03:36:52 +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
5240b0ccd5 implementation of table-layout=fixed strategy 1998-09-23 02:32:15 +00:00
kipp%netscape.com
31dd9c5d3a Fixed the build 1998-09-23 01:47:17 +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
troy%netscape.com
0f842c0152 Removed all references to m<First,Last>ContentOffset,mChildCount,mLastContentIsComplete 1998-09-21 03:40:32 +00:00
buster%netscape.com
8c93860f3d captions now work properly with new frame layout strategy.
nsTableOuterFrame->mFirstChild==nsTableOuterFrame->mInnerTableFrame, always.
1998-09-20 04:50:08 +00:00
troy%netscape.com
62b1375f69 Removed farme enumeration member functions for indexed access, last child,
and child count
1998-09-19 03:24: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
29e5156e14 Removed nsIContentDelegate.h 1998-09-18 17:34:48 +00:00
troy%netscape.com
28c7cf540c Removed content delegates 1998-09-18 17:18:37 +00:00
troy%netscape.com
b2f7d8a3d8 Fixed a compiler warning 1998-09-18 03:13:47 +00:00
troy%netscape.com
c33300f711 Removed some old commented out code 1998-09-18 02:28:12 +00:00
troy%netscape.com
2c98bf3e01 Removed some code that's no longer needed now that we've switched to
new frame construction
1998-09-18 02:22:52 +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
9adcf5d319 Cleaned up frame construction code 1998-09-17 04:07:58 +00:00
troy%netscape.com
434ecf7423 Fixed a problem with tables with COLGROUP and COL elements crashing
because there was a null cellmap
1998-09-16 23:24:39 +00:00
troy%netscape.com
e4acf0f90b Clean up work 1998-09-16 20:27:30 +00:00
troy%netscape.com
65269d3422 Frame construction changes for tables 1998-09-16 17:19:20 +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
pierre%netscape.com
19a8c40a7a fixing mac build (the class name was repeated in the method declaration) 1998-09-15 23:39:28 +00:00
buster%netscape.com
d610ebb563 nsTableRowGroupFrame no longer assumes all its children are rows, or that all row children are cells. 1998-09-15 20:36:42 +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
37869e9464 integrates with new frame creation methods 1998-09-09 21:34:10 +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
buster%netscape.com
5be0373ab2 fixed minColSpan to always be at least one. This helps support empty rows,
among other problems.
1998-09-03 06:15:18 +00:00
buster%netscape.com
70647d8bd6 fixed a space leak for tables with rowspans 1998-09-02 22:55:37 +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
5b39e492d0 fixed a space leak caused by incorrect ~nsCellMap iteration through
the new data structures.
1998-09-02 21:51:01 +00:00
buster%netscape.com
1781327873 empty rows now handled properly 1998-09-01 17:49:05 +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
kipp%netscape.com
c6290fa577 XPCOM'ized nsIContent and nsIHTMLContent 1998-08-29 20:20:38 +00:00
michaelp%netscape.com
ca017f19d0 DeleteFrame() now takes a pres context. 1998-08-28 03:02:39 +00:00
peterl%netscape.com
8d66d72540 no longer force unique style contexts 1998-08-27 00:57:05 +00:00
peterl%netscape.com
12d7adf11e remove text attribute processing 1998-08-27 00:56:17 +00:00
buster%netscape.com
4ef0888af9 fixed a minor bug handling tables with COLS attribute 1998-08-26 17:53:47 +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