troy%netscape.com
70a3da2b30
Space reductions, r=karnaze@netscape.com
...
Eliminated one data member, moved one to flag frame state, and changed mBorderEdges
to be heap allocated (only for collapsing border model)
git-svn-id: svn://10.0.0.236/trunk@50117 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:38:50 +00:00
karnaze%netscape.com
89bd8c3bc9
fixed assertion in viewer sample 4. AdjustForCollapsingCols was incorrectly counting as columns frames which were not of display type NS_STYLE_DISPLAY_TABLE_COLUMN and something must have changed elsewhere to tickle this.
...
git-svn-id: svn://10.0.0.236/trunk@49948 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:59:07 +00:00
troy%netscape.com
9598e1278f
Checked in workaround for tree-view/apprunner problem of assert in GetColumnWidth()
...
git-svn-id: svn://10.0.0.236/trunk@49787 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 02:41:36 +00:00
troy%netscape.com
4f1bf46f5d
Space optimization for nsTableFrame. r=karnaze@netscape.com
...
- changed mBorderEdges to be heap allocated (only needed for collapsing border model)
- made the 8 boolean data members into bitfields
- changed mColumnWidths to be as small as necessary instead of defaulting its size to 100 elements
git-svn-id: svn://10.0.0.236/trunk@49748 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:48:05 +00:00
troy%netscape.com
4e1923d3ad
Hooked up SizeOf() for cell map and table layout strategies. Also added in
...
some table frame data that was missed
git-svn-id: svn://10.0.0.236/trunk@49622 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:02:54 +00:00
mjudge%netscape.com
124711cde1
changes to selection code to stop a never ending loop
...
git-svn-id: svn://10.0.0.236/trunk@48665 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:58:14 +00:00
mjudge%netscape.com
cbf04231bb
adding change for selection. modifing inside out behavior for table selection. drawing tables being seleted different.
...
git-svn-id: svn://10.0.0.236/trunk@48081 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:33:39 +00:00
kipp%netscape.com
8ebf1dd75a
Squish a warning or two
...
git-svn-id: svn://10.0.0.236/trunk@48002 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:16:37 +00:00
karnaze%netscape.com
d7c9692b2e
bug 13135, removed unused code
...
git-svn-id: svn://10.0.0.236/trunk@47248 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 01:27:40 +00:00
troy%netscape.com
0bfb91d8a1
Added support for incremental table painting
...
git-svn-id: svn://10.0.0.236/trunk@47088 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 03:19:39 +00:00
karnaze%netscape.com
9f24e29442
fixed bug in debug output for reflow
...
git-svn-id: svn://10.0.0.236/trunk@46766 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 13:03:32 +00:00
karnaze%netscape.com
0cba8f36fe
bugs 965, 1053, 1163 - improved handling of borders; bug 10216 align, text-align on caption.
...
git-svn-id: svn://10.0.0.236/trunk@45580 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 00:07:14 +00:00
mjudge%netscape.com
fa54e221ee
getting rid of build warnings
...
git-svn-id: svn://10.0.0.236/trunk@45528 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 21:37:32 +00:00
troy%netscape.com
34b68e1b56
Added definition for RowHasSpanningCells()
...
git-svn-id: svn://10.0.0.236/trunk@45436 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 04:36:47 +00:00
kipp%netscape.com
eea3ab916a
Updated SizeOf methods to not waste space when doing a non-debug build
...
git-svn-id: svn://10.0.0.236/trunk@45397 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:02:16 +00:00
troy%netscape.com
3f3a37b810
Changed ReflowMappedChildren() to reset max element size to 0 for an
...
incremental reflow
git-svn-id: svn://10.0.0.236/trunk@45302 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 05:55:33 +00:00
kipp%netscape.com
c9002f20df
Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot
...
git-svn-id: svn://10.0.0.236/trunk@45274 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 03:09:40 +00:00
troy%netscape.com
c45af7c51f
Changing tables to return max element size during an incremental reflow
...
git-svn-id: svn://10.0.0.236/trunk@45209 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 22:30:32 +00:00
hyatt%netscape.com
0cf34ce7ba
Changes to the cell map to support incremental insertion and removal of rows. Currently
...
only used by the tree widget.
git-svn-id: svn://10.0.0.236/trunk@45097 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 00:01:09 +00:00
karnaze%netscape.com
5daea56f8b
bug 12287 - removed nsTableFrame::GetContainerWidth, renamed TableIsAutoWidth to IsAutoWidth and simplified.
...
git-svn-id: svn://10.0.0.236/trunk@44899 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 21:15:21 +00:00
karnaze%netscape.com
7cecd8f2db
bug 12590 - vertical-align:middle working on cell
...
git-svn-id: svn://10.0.0.236/trunk@44748 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 04:29:05 +00:00
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
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