Commit Graph

218 Commits

Author SHA1 Message Date
buster@netscape.com
ccd8496e24 empty cells now are sized correctly. 1998-12-30 22:41:08 +00:00
buster@netscape.com
00c12119a8 collapsing border computation and conflict resolution 1998-12-30 06:48:15 +00:00
troy@netscape.com
87633bacb7 Removed debug output that was probably checked in by mistake 1998-12-29 05:37:11 +00:00
troy@netscape.com
6f9192bec1 Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code
1998-12-29 03:38:16 +00:00
buster@netscape.com
7663d54636 WIP for collapsing borders 1998-12-23 15:47:43 +00:00
buster@netscape.com
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
buster@netscape.com
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
peterl@netscape.com
97d11c8a40 sync to new attribute api 1998-12-20 01:21:23 +00:00
kipp@netscape.com
1e10a83138 Revised frame Paint API 1998-12-18 15:54:23 +00:00
buster@netscape.com
21e5c878dd WIP on collapsing borders 1998-12-16 17:05:14 +00:00
buster@netscape.com
4731270984 clean up, removed some obsolete methods 1998-12-16 06:33:15 +00:00
troy@netscape.com
afed38e6db Some improvements to the row splitting code 1998-12-16 03:46:03 +00:00
troy@netscape.com
dd6fe2604b Work-in-progress for splitting of table row frames 1998-12-15 16:39:09 +00:00
buster@netscape.com
21df6dded4 support for CSS2 style property "empty-cells" 1998-12-10 19:57:42 +00:00
buster@netscape.com
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
buster@netscape.com
0137d655e2 fixed a minor glitch I introduced where nested tables cells were getting
robbed of a few pixels in width in some cases.
1998-12-08 19:18:33 +00:00
harishd@netscape.com
3fe0a93463 Changed code that previously accessed mBorderStyle and mBorderColor with
new methods added in nsStyleSpacing
1998-12-07 19:06:55 +00:00
buster@netscape.com
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
troy@netscape.com
a1854c5e92 Moved logic that created a BODY frame that forms the cell's content from the
table frame code to the frame construction code
1998-12-04 02:08:51 +00:00
buster@netscape.com
5bd9aecd8e minor optimizations and cleanup. removed constructors that did nothing. 1998-12-03 20:19:01 +00:00
troy@netscape.com
e602e25924 Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
wtc@netscape.com
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
buster@netscape.com
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
buster@netscape.com
6e0fc79ff6 fixed the aweful nested table problems 1998-11-22 08:56:19 +00:00
buster@netscape.com
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
kipp@netscape.com
f6502df0e2 Added DumpRegressionData; revised ListTag; added GetFrameName 1998-11-19 17:22:29 +00:00
michaelp@netscape.com
614b76a37f changes for pixel scaling/printing. 1998-11-14 01:52:27 +00:00
buster@netscape.com
2022197c05 support for frame and rules attribute 1998-11-11 19:56:02 +00:00
troy@netscape.com
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
kipp@netscape.com
c0df34d1f3 Improved the table warning diagnostic 1998-11-09 23:35:05 +00:00
buster@netscape.com
3dcc4ba5ed various small fixes and clean up 1998-11-05 21:42:46 +00:00
peterl@netscape.com
e74acd9aca sync to style resolution api changes 1998-11-03 20:33:43 +00:00
buster@netscape.com
b80a9ca305 some extremely preliminary work for styleChanged incremental reflow 1998-10-30 07:57:44 +00:00
buster@netscape.com
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
peterl@netscape.com
9d8f3d8c5d set border style 1998-10-13 19:17:57 +00:00
kipp@netscape.com
a16b0dd7bf Removed nsCSSLayout::GetStyleSize and converted callers to use state in the html reflow state 1998-10-12 17:00:32 +00:00
kipp@netscape.com
9f8e72a224 Added an nsIPresContext& to html-reflow-state's ctors and used it to implement better percentage width/height handling 1998-10-12 14:48:02 +00:00
troy@netscape.com
effa132f8d Removed GetContentIndex() from nsIFrame 1998-10-08 20:35:16 +00:00
buster@netscape.com
f30d1af844 all frames properly setting ascent and descent values for reflow
WIP incremental reflow in nsTableOuterFrame
1998-10-08 15:34:48 +00:00
kipp@netscape.com
cc6c52038c use new body factory method 1998-10-06 00:44:35 +00:00
troy@netscape.com
c850ca269e Changed ReflowChild() to send the WillReflow() notification as well 1998-10-06 00:27:22 +00:00
troy@netscape.com
5c50ea58dd Removed calls to MoveTo() BEFORE reflowing a frame. We used to do this
sequence: MoveTo(), Reflow(), SetRect(). Now that we have the WillReflow()/
DidReflow() code sandwhiches we no longer need to do the MoveTo()
1998-10-05 00:58:32 +00:00
buster@netscape.com
11cb76362f minor interface cleanup 1998-10-02 20:36:35 +00:00
troy@netscape.com
ee0a3c543f Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
troy@netscape.com
942c471f56 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
kipp@netscape.com
3949cefd5a 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
8793477e2d Changed factory method to parameterize the shrink wrapping behavior 1998-09-29 03:44:25 +00:00
kipp@netscape.com
73ce388bce Use modified css rendering API 1998-09-26 17:17:20 +00:00
kipp@netscape.com
4dc6507c31 Fixed up includes to not depend on old content model classes 1998-09-24 21:37:45 +00:00
buster@netscape.com
bb0f52ad8b 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