646 Commits

Author SHA1 Message Date
karnaze%netscape.com
112f671dfe replaced debug flags with class. removed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@44283 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 12:01:31 +00:00
karnaze%netscape.com
633cb9cc8f bugs 9123, 10002 - percentage height tables exclude margin/border/padding of HTML and BODY
git-svn-id: svn://10.0.0.236/trunk@44236 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 04:17:05 +00:00
hyatt%netscape.com
1f5079c7ff Patching a function used only by the tree code.
git-svn-id: svn://10.0.0.236/trunk@44052 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 09:50:22 +00:00
karnaze%netscape.com
1ae768f9a1 bug 11944 - correct placement of row group using table border/padding. bug 625 - reinitialized col sizes before 2nd pass 1 reflow.
git-svn-id: svn://10.0.0.236/trunk@43971 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 06:38:07 +00:00
karnaze%netscape.com
ecc88ac54d bug 11944 - row group is properly offset using table border. cleaned up new incremental reflow methods.
git-svn-id: svn://10.0.0.236/trunk@43899 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:27:54 +00:00
troy%netscape.com
a088d8cb4d Added invalidate of the cell map as well, since we don't know what has changed
git-svn-id: svn://10.0.0.236/trunk@43726 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 22:22:52 +00:00
troy%netscape.com
abc7ca3cdf Changed to handle "ReflowDirty" reflow command
git-svn-id: svn://10.0.0.236/trunk@43660 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:05:27 +00:00
karnaze%netscape.com
5e4439a661 Added new incremental reflow methods.
CellData keeps track of row versus col spans.
nsColFrame keeps track of what cell contributed to constrained width.
nsCellMap::GetCellFrameAt replace with GetCellInfoAt
simplified nsTableCellFrame::RecalcLayoutData and removed FindLargestMargin, CalculateMargins, CalculateMargins
simplified nsTableFrame::RecalcLayoutData and removed AppendLayoutData
Added gsDebugReflow capability, remove all existing debug printf


git-svn-id: svn://10.0.0.236/trunk@43641 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:52:37 +00:00
troy%netscape.com
8a85938908 Changed to table incremental reflow
git-svn-id: svn://10.0.0.236/trunk@43548 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 03:51:25 +00:00
karnaze%netscape.com
3a80c327b2 For crash in bug 10296 - Removed assertion that nsTableFrame::GetColumnFrame must find a non null frame.
Added check for null when calling it in a situation where it can return null.


git-svn-id: svn://10.0.0.236/trunk@42979 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:15:46 +00:00
karnaze%netscape.com
e529e4461a added constructor to nsTableColGroupFrame, fixed a few places where
nsColGroupFrame assummed its children were nsColGroupFrames.


git-svn-id: svn://10.0.0.236/trunk@42890 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:45:18 +00:00
karnaze%netscape.com
f4b5bd9d74 removed some unneeded comments
git-svn-id: svn://10.0.0.236/trunk@42879 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 01:14:24 +00:00
karnaze%netscape.com
35434b326b bug 3517.
Always get border-collapse from nsTableFrame::GetBorderCollapseStyle.
Added several null checks for border edges.
Added check in nsTableFrame::DidComputeHorizontal to replace null edges with trival ones.


git-svn-id: svn://10.0.0.236/trunk@42871 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:49:10 +00:00
troy%netscape.com
421d2fb7eb Made sure that column cache is invalidated if necessary when appending rows
frames and cell frames


git-svn-id: svn://10.0.0.236/trunk@42656 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 15:12:50 +00:00
buster%netscape.com
9cb3786eb7 fixed a memory leak, and a null pointer dereference, having to do with collapsing borders
git-svn-id: svn://10.0.0.236/trunk@42644 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:40:09 +00:00
karnaze%netscape.com
40c2679406 Always reflow's children for pass1 when reflowed with NS_UNCONSTRAINEDSIZE
git-svn-id: svn://10.0.0.236/trunk@42061 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 23:20:06 +00:00
troy%netscape.com
58d25c3401 Changed NeedsReflow() to take into account whether we need a pass-1 reflow
and whether the cached column info and cell map are valid when deciding
whether we need a full reflow


git-svn-id: svn://10.0.0.236/trunk@41973 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 14:26:00 +00:00
cmanske%netscape.com
f92bc8ef26 Added QueryInterfaces so nsITableCellLayout and nsITableLayout can get to cell and table frames. Don't use macros because frames aren't refcounted.
git-svn-id: svn://10.0.0.236/trunk@41766 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 18:26:45 +00:00
cmanske%netscape.com
e5ae1ba132 Added nsITableLayout::GetTableSize() to get number of rows and columns in table. Fixup up comments for new methods
git-svn-id: svn://10.0.0.236/trunk@41757 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 16:20:14 +00:00
cmanske%netscape.com
1061abe7b7 Added logic to find cells occupying the 'holes' in the cellmap where colspan and/or rowspan cell extend
git-svn-id: svn://10.0.0.236/trunk@41751 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 05:19:47 +00:00
cmanske%netscape.com
a963632e41 Added checking for trying to get cell data when index(es) are out of bounds
git-svn-id: svn://10.0.0.236/trunk@41746 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-31 23:05:11 +00:00
cmanske%netscape.com
6ea23b2d7b Adding interface for editor access to table layout data
git-svn-id: svn://10.0.0.236/trunk@41743 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-31 22:11:50 +00:00
karnaze%netscape.com
e21f3ad4c8 bug 10809, incremental reflow of nested tables now reflows children.
git-svn-id: svn://10.0.0.236/trunk@41562 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 23:19:52 +00:00
hyatt%netscape.com
40f43dfde9 Fixing karnaze's bustage.
git-svn-id: svn://10.0.0.236/trunk@41458 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 08:55:41 +00:00
karnaze%netscape.com
382b9863de new nsCellMap, BasicTableLayoutStrategy, plus various fixes to table
frames while testing the new cell map and strategy


git-svn-id: svn://10.0.0.236/trunk@41454 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 08:09:02 +00:00
troy%netscape.com
a314bc3877 Renamed some nsFrameList member functions
git-svn-id: svn://10.0.0.236/trunk@40595 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 04:00:57 +00:00
troy%netscape.com
947927e816 Renamed DeleteFrame() to Destroy()
git-svn-id: svn://10.0.0.236/trunk@40585 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 02:24:52 +00:00
troy%netscape.com
a89529386f Added 'm' prefix to some of the nsHTMLReflowState data members
git-svn-id: svn://10.0.0.236/trunk@40215 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 03:41:03 +00:00
troy%netscape.com
b5bcb4a774 As step #1 in incremental painting I changed Reflow() to invalidate the
entire bounds after an incremental reflow. The table should be smarter about
how much it invalidates, but this is necessary for the time being because the
area frame no longer invalidates everything


git-svn-id: svn://10.0.0.236/trunk@39266 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 15:21:52 +00:00
hyatt%netscape.com
94d84e7328 Batching removal and making sure I get notified (in an attempt to fix some
of the out of sync problems the tree widget is having).


git-svn-id: svn://10.0.0.236/trunk@38948 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-10 01:10:40 +00:00
sspitzer%netscape.com
c1303b8b21 set deleted pointers to nsnull. just to be safe. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@37665 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 07:12:46 +00:00
buster%netscape.com
d94e56698f fixed warnings
git-svn-id: svn://10.0.0.236/trunk@37179 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 13:44:40 +00:00
hyatt%netscape.com
dba51b76a4 More savory tree widget goodness.
git-svn-id: svn://10.0.0.236/trunk@36547 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 09:07:59 +00:00
hyatt%netscape.com
d6494b515f Landing the tree widget branch.
git-svn-id: svn://10.0.0.236/trunk@36435 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 03:02:21 +00:00
hyatt%netscape.com
b29b58e27b Fixing a bug in the distribution of excess space to multiple row groups.
git-svn-id: svn://10.0.0.236/trunk@35413 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 07:06:55 +00:00
hyatt%netscape.com
b91d25c962 Added support for incremental reflow of nested row groups (yeah, baby, yeah, baby, YEAH).
git-svn-id: svn://10.0.0.236/trunk@35305 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:19:18 +00:00
hyatt%netscape.com
5b1e30c2d8 More nested row group work.
git-svn-id: svn://10.0.0.236/trunk@35284 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:45:14 +00:00
hyatt%netscape.com
18e1eab082 More nested row group changes.
git-svn-id: svn://10.0.0.236/trunk@35282 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:42:16 +00:00
hyatt%netscape.com
e2c320e27d More nested row group work.
git-svn-id: svn://10.0.0.236/trunk@35131 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:22:47 +00:00
hyatt%netscape.com
7ea32ee2c4 More changes to allow tables to support nested row groups.
git-svn-id: svn://10.0.0.236/trunk@35129 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:01:00 +00:00
karnaze%netscape.com
16daf5e57c bug 6459 - incremental reflow methods call DeleteFrame instead of RemoveFrame
git-svn-id: svn://10.0.0.236/trunk@34544 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:29:34 +00:00
karnaze%netscape.com
0e237e981a support for backgrounds on table elements in both compatibility modes
git-svn-id: svn://10.0.0.236/trunk@34067 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:10:25 +00:00
karnaze%netscape.com
f286a1e3c4 bug 7243. Rewrote FixedTableLayoutStrategy::AssignPreliminaryColumnWidths
git-svn-id: svn://10.0.0.236/trunk@33487 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:42:33 +00:00
mjudge%netscape.com
45583c2b3d new table selection code drag inside and outside of tables with ease. added some overriding methods to nsTableCellFrame and nsTableFrame to make selection "draw" correctly for those containers.
git-svn-id: svn://10.0.0.236/trunk@33352 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:04:13 +00:00
karnaze%netscape.com
703e798b06 Rewrote DistributeRemainingSpace a 2nd time and added compat mode.
bug 6068, 6933. nsTableRowGroupFrame::CalculateRowHeights - changed row spans to consider
top and bottom margins during height calculations. Calculations using percentages ensure that the sum of
rows sum exactly to excess.

bug 6404 BasicTableLayoutStrategy::BalanceColumnsConstrained cols in span other than 1st col was
not getting additional allocations from cell. ::DistributeRemainSpace uses max width of col
instead of max effective width. Also added checks for negative value during percentage calculations.


git-svn-id: svn://10.0.0.236/trunk@32755 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 22:22:23 +00:00
mjudge%netscape.com
85ff7d2a69 reviewed sfraser approved choffman 6771 6762 UMR and Extreemly inefficient table selection code fixed simply
git-svn-id: svn://10.0.0.236/trunk@32354 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 00:52:00 +00:00
karnaze%netscape.com
d6b03337dc support for css padding in table cells
git-svn-id: svn://10.0.0.236/trunk@32042 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 05:18:16 +00:00
karnaze%netscape.com
0c73f5b294 bug 2961 - table desired size considers pass1 size
git-svn-id: svn://10.0.0.236/trunk@31229 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 04:15:44 +00:00
kipp%netscape.com
de60169b67 Reworked frame factory methods; fixed bug 4519
git-svn-id: svn://10.0.0.236/trunk@31154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:03:29 +00:00
karnaze%netscape.com
871f0a7dd9 bug 3103 - resizing table based on height attribute now considers row spans of cells.
git-svn-id: svn://10.0.0.236/trunk@30149 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:15:56 +00:00