Commit Graph

362 Commits

Author SHA1 Message Date
troy%netscape.com
7b5cc03059 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
d87ab21022 WIP for collapsing borders 1998-12-23 15:47:43 +00:00
buster%netscape.com
735e53976a WIP for collapsing borders. 1998-12-21 19:20:37 +00:00
buster%netscape.com
914c880651 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
d1779f0342 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
887cd5f867 sync to new attribute api 1998-12-20 01:21:23 +00:00
kipp%netscape.com
c29e5116c7 Revised frame Paint API 1998-12-18 15:54:23 +00:00
buster%netscape.com
b64da7e7fd WIP on border collapsing 1998-12-17 22:59:40 +00:00
buster%netscape.com
5d0af8abd5 more WIP, no new code operational 1998-12-17 07:56:24 +00:00
buster%netscape.com
07d2429c5c 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
buster%netscape.com
a7f7678ce9 WIP collapsing border work 1998-12-16 22:19:23 +00:00
buster%netscape.com
7f8a8688c4 WIP on collapsing borders 1998-12-16 17:05:14 +00:00
buster%netscape.com
d35a765d2c clean up, removed some obsolete methods 1998-12-16 06:33:15 +00:00
troy%netscape.com
3c4ae70b04 Fixed a crash when display www.sjmercury.com paginated, because we thought
we could re-use our cached cell desired info and we couldn't because there
was a next-in-flow frame and so we needed to reflow the cell frame and pull-up
its next-in-flow child frames
1998-12-16 05:41:57 +00:00
troy%netscape.com
fabbe773c2 Changed SetRowIndex() to be inline and non-virtual 1998-12-16 04:31:38 +00:00
troy%netscape.com
6b60c930de Removed InitRowData() member function which is now obsolete 1998-12-16 04:08:36 +00:00
troy%netscape.com
bd67066c8a Some improvements to the row splitting code 1998-12-16 03:46:03 +00:00
troy%netscape.com
165f9e859f Removed SetColIndex() which wasn't being used 1998-12-16 01:35:25 +00:00
troy%netscape.com
ca5d664aeb Removed an assert that was being triggered in a caseI didn't expect 1998-12-15 21:26:05 +00:00
troy%netscape.com
89910f892e Work-in-progress for splitting of table row frames 1998-12-15 16:39:09 +00:00
troy%netscape.com
09777c2885 Tables now clear the isTopOfPage when appropriate 1998-12-14 01:24:11 +00:00
buster%netscape.com
9bf25cc09e fixed a minor bug in incremental reflow where the reflow state's "widthConstraint" wasn't getting set 1998-12-11 18:54:58 +00:00
buster%netscape.com
b7ab7be458 support for CSS2 style property "empty-cells" 1998-12-10 19:57:42 +00:00
buster%netscape.com
8031108e1b 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
troy%netscape.com
7ec6a2c281 Added new atoms to nsLayoutAtoms for additional named frame child lists 1998-12-09 05:30:17 +00:00
troy%netscape.com
7afd123cd9 Fixed a crash when resizing the print preview window 1998-12-09 04:26:42 +00:00
buster%netscape.com
868ce29c21 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
troy%netscape.com
399c1e7868 Initial table pagination support 1998-12-08 17:57:45 +00:00
buster%netscape.com
c85a6cdd73 fixed a bug in table-layout:fixed mode
fixed bug fixed a few small bugs
1998-12-08 01:00:14 +00:00
harishd%netscape.com
541bcbe5cd changed the code that previously accessed mBorderStyle and mBordercolor
with new methods added in nsStyleSpacing
1998-12-07 19:07:45 +00:00
harishd%netscape.com
511b951294 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
4e927b37f3 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
wtc%netscape.com
820aec09ab The second argument for GetStyleData needs to be 'const'. 1998-12-05 01:47:37 +00:00
troy%netscape.com
c2a37f36ad Added NS_RELEASE of col frame pseudo element style context. This fixes a memory leak 1998-12-04 03:39:05 +00:00
troy%netscape.com
199c24d49a Changed table frame code to call DeleteFrameList() so that the col group
frames are deleted
1998-12-04 03:14:28 +00:00
troy%netscape.com
4a0f9cea8f 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
23112ce100 minor optimizations and cleanup. removed constructors that did nothing. 1998-12-03 20:19:01 +00:00
buster%netscape.com
9c4e4e9e76 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
troy%netscape.com
2a4b2c503f Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
wtc%netscape.com
59b32f50ef 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
09df53a05d fixed a bug for tables with complicated colspans and fixed widths 1998-11-30 19:06:33 +00:00
buster%netscape.com
c44861d421 fixed some nested table layout problems 1998-11-30 15:10:20 +00:00
buster%netscape.com
3ddfe1c165 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
87d66cfc86 removed debug output 1998-11-24 20:40:43 +00:00
buster%netscape.com
9e645e1fc6 bug 1520 (www.mirabilis.com)
the problem was the way table layout apportioned height from a rowspanning cell.
Now, we do 2 things correctly:
1) we handle rows with rowspanning cells and no other cells.
2) we divide the height of a rowspanning cell proportionately to the rows spanned, where the proportion is defined by
the max height of a cell in that row that has no effective rowspan.

the partial fix for bug 1431 has to do with dividing width between percent-width and fixed-width columns in the same
table. You won't see any better layout for this page (ww.boston.com) as a result of the code I added.  The rest of this
fix is a bit risky, so I'm waiting until after stability push.
1998-11-24 19:41:33 +00:00
buster%netscape.com
ff561429bf changed the logic for reflowing cells whose height is changed due to a
height attribute.
1998-11-23 23:07:40 +00:00
buster%netscape.com
aab5ae636e fixed the aweful nested table problems 1998-11-22 08:56:19 +00:00
buster%netscape.com
888de27782 removed a spurious GetContent that was the cause of a memory leak 1998-11-20 23:10:47 +00:00
alecf%netscape.com
9e8f173714 fix casting problems for gcc 2.7.2.3 1998-11-20 09:29:58 +00:00
buster%netscape.com
4c98e2689d 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