253 Commits

Author SHA1 Message Date
karnaze%netscape.com
33c20babf3 bug 17826, removed buggy/unnecessary RecomputeAdjustedMinIfNecessary, r=attinasi
git-svn-id: svn://10.0.0.236/trunk@59448 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:48:30 +00:00
karnaze%netscape.com
28c87201ae bug 24880 colspan/rowspan=0 handling, bug 22122 handle *0 proportional width; r=kmcclusk.
git-svn-id: svn://10.0.0.236/trunk@59353 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 03:23:29 +00:00
troy%netscape.com
60471abd92 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.


git-svn-id: svn://10.0.0.236/trunk@58373 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 01:16:50 +00:00
karnaze%netscape.com
b431334299 fixed printing assertions; more throughly check cell map usage for contuining frames;
fixed bug 24057; r=kmcclusk,cmanske; could not run mail smoke tests due to prior bustage.


git-svn-id: svn://10.0.0.236/trunk@57952 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 20:10:00 +00:00
troy%netscape.com
4e81ba6679 b=20772. Changed ColumnsAreValidFor() so that it correctly handles the case
where the cell's desired width shrinks


git-svn-id: svn://10.0.0.236/trunk@57573 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 21:53:55 +00:00
karnaze%netscape.com
0fb9049272 fixed tinderbox warnings
git-svn-id: svn://10.0.0.236/trunk@56650 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-03 00:56:12 +00:00
karnaze%netscape.com
619f9e6d57 bug 12287 - honors mComputed values in reflow state and uses CSS box-sizing property.
git-svn-id: svn://10.0.0.236/trunk@56648 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-02 22:55:48 +00:00
troy%netscape.com
06d04c2e58 Reduced size of table cell member data by 4 bytes by only storing the
maximum width and not both the width and height. The height was never used
so this wans't an issue


git-svn-id: svn://10.0.0.236/trunk@56529 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-24 03:46:21 +00:00
karnaze%netscape.com
6ffe908f39 incremental cell map, columns. Bugs 12122, 21544. r=troy,hyatt a=hofmann
git-svn-id: svn://10.0.0.236/trunk@55939 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-13 22:56:31 +00:00
karnaze%netscape.com
6c106ec216 removed allocation warning messages
git-svn-id: svn://10.0.0.236/trunk@53513 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 15:42:20 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
karnaze%netscape.com
49e55fa057 bugs 17138, 17168 and others - col allocation involving colspans honors constraints; pct colspans were allocating incorrectly if pct cols existed.
git-svn-id: svn://10.0.0.236/trunk@52879 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 22:36:59 +00:00
tbogard%aol.net
aa0f04f201 Changed NS_ASSERTION to NS_WARN_IF_FALSE to avoid crashing people when condition is met. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@52509 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 05:14:27 +00:00
karnaze%netscape.com
f98a03f3ac bug 16284, 14159 nested auto table with percent cells was not growing auto table. nested coord or percent table was only getting min size.
git-svn-id: svn://10.0.0.236/trunk@51767 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:49:51 +00:00
karnaze%netscape.com
46cade08ac bug 5799 - considers percentage width of multiple cells when figuring width of auto table.
git-svn-id: svn://10.0.0.236/trunk@51705 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:34:28 +00:00
kipp%netscape.com
2ed3a3fc6a Removed some more warnings
git-svn-id: svn://10.0.0.236/trunk@51530 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 14:51:41 +00:00
karnaze%netscape.com
a2ae4b6656 bug 5799 - width of auto width table considers percentage cells when they are small relative to the rest of the table. r=dcone
git-svn-id: svn://10.0.0.236/trunk@51443 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:36:21 +00:00
karnaze%netscape.com
905268d150 added #ifdef for debug printing.
git-svn-id: svn://10.0.0.236/trunk@50983 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 13:48:19 +00:00
kipp%netscape.com
6b0a23c77d Nuke some more warnings
git-svn-id: svn://10.0.0.236/trunk@50855 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:18:32 +00:00
karnaze%netscape.com
d0d34df829 bug 11026 - AllocateUnconstrained was off by 1 twip in some cases. bug 14159 - cell is not fixed width if an auto cell in the same col has a larger desired size for backward compatibilty.
git-svn-id: svn://10.0.0.236/trunk@50599 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 14:44:22 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
karnaze%netscape.com
c3e71c904f column allocation does fixed and adjusted fixed (colspans) in separate steps. Simplified AllocateConstrained. Fixed bug 14332.
git-svn-id: svn://10.0.0.236/trunk@49714 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 05:19:32 +00:00
karnaze%netscape.com
3d4aa5c477 bug 10009 - uses width set on <td> in figuring width of nested table
git-svn-id: svn://10.0.0.236/trunk@49247 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:57:44 +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
01b3d1f82d bug 13683 - fixed memory leak.
git-svn-id: svn://10.0.0.236/trunk@47853 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:24:03 +00:00
karnaze%netscape.com
cb8caac5a9 removed border subtraction from out table frame and adjusted in layout strategy.
git-svn-id: svn://10.0.0.236/trunk@47175 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 21:45:58 +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
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
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
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
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
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
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
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
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
shaver%netscape.com
d786ea88d0 zero out colInfo wehen allocated to avoid startup crash and other badness
git-svn-id: svn://10.0.0.236/trunk@41478 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 18:52:04 +00:00
karnaze%netscape.com
53bf90aac1 fix mac breakage, hopefully
git-svn-id: svn://10.0.0.236/trunk@41460 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 09:13:44 +00:00
warren%netscape.com
d9f0756d1e Attempt to fix the mac build.
git-svn-id: svn://10.0.0.236/trunk@41459 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 08:56:12 +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
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
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
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
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
7ba719a0eb bug 6184 - reworked alogrithm for reallocating space to auto width columns.
git-svn-id: svn://10.0.0.236/trunk@30937 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-10 19:23:09 +00:00
karnaze%netscape.com
6645b27fa6 code clean up, use of macros for table debugging
git-svn-id: svn://10.0.0.236/trunk@26180 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-03 23:02:43 +00:00
troy%netscape.com
cc2323242f Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references


git-svn-id: svn://10.0.0.236/trunk@21702 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 04:48:08 +00:00
kipp%netscape.com
9b917419dc COMized nsIPresShell and nsIPresContext
git-svn-id: svn://10.0.0.236/trunk@20570 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:45:58 +00:00
buster%netscape.com
3dbeb7eb3f changed getters to be XP_COM-like, with out-params instead of return values.
this is so these getters can be bound to an XPCOM interface, nsITableCellLayout


git-svn-id: svn://10.0.0.236/trunk@20326 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:16:28 +00:00