593 Commits

Author SHA1 Message Date
karnaze%netscape.com
7f20e88284 backing out recent changes that failed table regression tests
git-svn-id: svn://10.0.0.236/trunk@44689 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-26 16:56:42 +00:00
hyatt%netscape.com
badf0ce469 Fix for bug 12887.
git-svn-id: svn://10.0.0.236/trunk@44664 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-26 10:23:49 +00:00
karnaze%netscape.com
42a0e08a9e bug 1271 - percentage height cells, added GetNumCellsOriginatingInRow, fixed GetNumCellsOriginatingInCol
git-svn-id: svn://10.0.0.236/trunk@44534 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 21:49:18 +00:00
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
karnaze%netscape.com
6af013e1ae bug 11026 - rounding error on balancing when max element size is too large.
git-svn-id: svn://10.0.0.236/trunk@44115 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 04:41:30 +00:00
karnaze%netscape.com
2ccead2f78 removed assertions in new incremental layout methods
git-svn-id: svn://10.0.0.236/trunk@44097 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 23:56:39 +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
02a1b27572 changed initial value in ColumnsAreValidFor.
git-svn-id: svn://10.0.0.236/trunk@44036 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 02:36:00 +00:00
troy%netscape.com
88368a0250 Minor cleanup
git-svn-id: svn://10.0.0.236/trunk@44026 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 21:24:42 +00:00
troy%netscape.com
c20a3fb657 Removed some code that was accidentally added back in the previous revisions
git-svn-id: svn://10.0.0.236/trunk@44025 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 21:17:23 +00:00
troy%netscape.com
b583c2d31c Optimized incremental reflow and split some code out into member functions
so there's less dusplication of code


git-svn-id: svn://10.0.0.236/trunk@44017 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:16:32 +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
7ff87b81d8 Optimized CalculateRowHeights() to skip step 2 if there are no cells that
have row spans


git-svn-id: svn://10.0.0.236/trunk@43898 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:27:39 +00:00
brade%netscape.com
14f64deece remove mac compiler warning
git-svn-id: svn://10.0.0.236/trunk@43817 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:32:23 +00:00
brade%netscape.com
65b459575d remove macintosh compiler warnings
git-svn-id: svn://10.0.0.236/trunk@43815 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 13:27:48 +00:00
karnaze%netscape.com
025bd21a33 added null checking
git-svn-id: svn://10.0.0.236/trunk@43775 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 03:30:40 +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
karnaze%netscape.com
90a3fa6104 fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@43670 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 20:36: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
troy%netscape.com
c5f5ea93ed Converted outer table frame code over to new reflow command handling
git-svn-id: svn://10.0.0.236/trunk@42911 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 03:52:15 +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
0bbf61356b commented out print statements when passing a row,col outside of cell map,
since the test case in bug 9024 can cause this condition.


git-svn-id: svn://10.0.0.236/trunk@42889 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 02:43:45 +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
peterl%netscape.com
0f4290ca67 moved scrolled content pseudo atom to layout atoms
git-svn-id: svn://10.0.0.236/trunk@42687 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:19:36 +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
troy%netscape.com
908cf77ed6 Fix for bug #11393
git-svn-id: svn://10.0.0.236/trunk@42599 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 00:31:02 +00:00
troy%netscape.com
3bce3f4d0d Changed reflow command handling over to the new approach
git-svn-id: svn://10.0.0.236/trunk@42453 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 14:34:56 +00:00
cmanske%netscape.com
c43ee147be Added method to nsITableCellLayout. Fixed QI bug
git-svn-id: svn://10.0.0.236/trunk@42080 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 02:04:45 +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
karnaze%netscape.com
b8128f70c5 replace assertions with printf statements until bug 10911 gets resolved
git-svn-id: svn://10.0.0.236/trunk@42059 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 23:17:50 +00:00
karnaze%netscape.com
c2ec915226 figuring a col's adj min width from a colspan uses adj min width
git-svn-id: svn://10.0.0.236/trunk@42055 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 23:16:43 +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
troy%netscape.com
9733d9f0ae Changed to new command reflow handling
git-svn-id: svn://10.0.0.236/trunk@41933 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 02:41:27 +00:00
troy%netscape.com
947840fcba Finished cleanup of reflow command handling
git-svn-id: svn://10.0.0.236/trunk@41780 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 02:18:33 +00:00
troy%netscape.com
b015e5f569 Reflow command cleanup
git-svn-id: svn://10.0.0.236/trunk@41774 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 22:21:03 +00:00
troy%netscape.com
6287040813 Work-in-progress for table handling of reflow commands
git-svn-id: svn://10.0.0.236/trunk@41773 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 22:01:37 +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
karnaze%netscape.com
b7f79a3328 fixes related to crash in AC_Wrapup on optimized builds.
git-svn-id: svn://10.0.0.236/trunk@41479 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 19:43:37 +00:00