927 Commits

Author SHA1 Message Date
attinasi%netscape.com
b65f73a73a Put checks for quirk mode before painting table background back in. Tables now inherit backgrond color and image into the cells and allow them to paint instead in quirks mode (the way it originally was).
git-svn-id: svn://10.0.0.236/trunk@68258 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 21:39:14 +00:00
karnaze%netscape.com
2a4c3e66cc bug 37791 - calculate auto margins during an incremental reflow.
git-svn-id: svn://10.0.0.236/trunk@68238 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 14:49:35 +00:00
troy%netscape.com
31435f5938 b=26792 r=karnaze@netscape.com Change to SplitRowGroup to handle the
case where GetCellInfoAt() returns NULL


git-svn-id: svn://10.0.0.236/trunk@67969 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 23:47:01 +00:00
karnaze%netscape.com
5fa036be77 Removed FixBadReflowState, added an assert if boxes try to set outer table reflow state computed values when a caption is present.
git-svn-id: svn://10.0.0.236/trunk@67700 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 02:25:08 +00:00
karnaze%netscape.com
bd1b930f20 Fix for Linux bustage, bug 37643. Give outer table reflow state initial computed values of 0 to avoid excessive reflows from boxes.
git-svn-id: svn://10.0.0.236/trunk@67684 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-30 22:29:01 +00:00
anthonyd%netscape.com
8922af96b4 r: mjudge
table bacgrounds now sleected properly with disabled selection
(grey selection)


git-svn-id: svn://10.0.0.236/trunk@67671 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-30 18:56:26 +00:00
karnaze%netscape.com
47f205f65f new reflow/layout code for outer table to handle captions and margins. better % height handling.
row groups and rows don't include external cellspacing in there dimensions. r=troy.


git-svn-id: svn://10.0.0.236/trunk@67566 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 21:05:31 +00:00
attinasi%netscape.com
b58f73f0cf Made table backgrounds draw in NavQuirks as well as Standard mode. r=karnaze b=34838
git-svn-id: svn://10.0.0.236/trunk@67558 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 20:40:17 +00:00
rods%netscape.com
a5da60889f Add ifdef'ed Performance Reflow Counting code
git-svn-id: svn://10.0.0.236/trunk@66753 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:36:33 +00:00
mjudge%netscape.com
6737cb1c39 made the table temporarily pull from nsLookandFeel until we get style rule working correctly
git-svn-id: svn://10.0.0.236/trunk@65890 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:39:39 +00:00
mjudge%netscape.com
b5c40f47f1 table cell selection now shows up background. also small fix for nsBlockFrame to do the right thing for mouse capture.
git-svn-id: svn://10.0.0.236/trunk@65860 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:21:32 +00:00
karnaze%netscape.com
4658278093 bug 8398 - correct the placement of the caption during an incremental reflow targeted at the inner table.
git-svn-id: svn://10.0.0.236/trunk@65224 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 00:06:20 +00:00
karnaze%netscape.com
67b057b4e1 bug 2479 - deleting cols and/or colgroups caused incorrect reseting of col group starting index.
git-svn-id: svn://10.0.0.236/trunk@65138 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 04:28:18 +00:00
jim_nance%yahoo.com
b1ccfbf2cb Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
days for module owners to comment on.  r=troy@netscape.com


git-svn-id: svn://10.0.0.236/trunk@64566 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 03:21:26 +00:00
hyatt%netscape.com
d186ab03c3 Patching table memory leak. r=karnaze
git-svn-id: svn://10.0.0.236/trunk@64023 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 08:29:21 +00:00
cmanske%netscape.com
e15bf8d5b3 Added support for Ctrl+Shift+mouseclick to select block of cells. Rewrote nsITableLayout::nsGetCellData() to be much more efficient, eliminating a method in the process. Implemented nsTableCellFrame::Get[Previous|Next]CellInColumn for cursor key navigation in tables. r=mjudge,karnaze.
git-svn-id: svn://10.0.0.236/trunk@63825 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 04:24:58 +00:00
dbaron%fas.harvard.edu
0936aaafab Fix event targetting bugs by using paint layers in GetFrameForPoint, testing for visibility, and trying GetFrameForPoint on additional views if one fails. r=joki@netscape.com(, hyatt@netscape.com) b=12232,20051,21304,24474,26785, and remaining issues from 23161.
git-svn-id: svn://10.0.0.236/trunk@63689 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 02:43:08 +00:00
cmanske%netscape.com
9c9491d705 Fixed bugs in table selection. Added improvements to facilitate row and column selection. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@63550 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 06:04:02 +00:00
pierre%netscape.com
c84deb6d8c Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible).
In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame.

In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701.


git-svn-id: svn://10.0.0.236/trunk@63284 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 10:15:13 +00:00
karnaze%netscape.com
cf5fcc4348 bug 30273 - removing the last remaining cell in a row caused the cell map to remove the row during an incremental reflow. r=attinasi.
git-svn-id: svn://10.0.0.236/trunk@63123 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 02:21:43 +00:00
troy%netscape.com
00091b65e3 b=24343 r=karnaze@netscape.com Changes so we properly lay out after changing
the font using the pref UI. Block and table code changed to handle
eReflowReason_StyleChange


git-svn-id: svn://10.0.0.236/trunk@63049 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:16:03 +00:00
karnaze%netscape.com
f325f1e22d fix warnings. submitted by jeroen@vangelderen.org, r=karnaze
git-svn-id: svn://10.0.0.236/trunk@63005 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 04:50:25 +00:00
karnaze%netscape.com
effb882b96 PDT+ bug 30559 - incorrect inclusion of table margin when placing row group. r=buster, a=rickg.
git-svn-id: svn://10.0.0.236/trunk@62934 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 14:42:25 +00:00
karnaze%netscape.com
7e4d5fb87f PDT+ bug 29429 - incremental reflow and nested tables, r=troy, a=rickg
git-svn-id: svn://10.0.0.236/trunk@62467 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-09 08:45:26 +00:00
karnaze%netscape.com
576537d306 PDT+ bug 28933 - check for null pointer. r=attinasi, a=rickg
git-svn-id: svn://10.0.0.236/trunk@62192 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-04 01:05:18 +00:00
karnaze%netscape.com
2599026f49 PDT+ bug 28341 - Destroy caption frame when outer table frame is destroyed. Add caption to outer frame rather than inner frame. r=troy, a=rickg
git-svn-id: svn://10.0.0.236/trunk@62032 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 06:09:37 +00:00
hyatt%netscape.com
e01b1a8a8f Fix for 28856. r=karnaze,troy a=jar
git-svn-id: svn://10.0.0.236/trunk@61937 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-01 02:35:14 +00:00
karnaze%netscape.com
f6b927ffae PDT+ bug 27124 - correctly handle child frames that are not row groups. r=troy, a=rickg
git-svn-id: svn://10.0.0.236/trunk@61772 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-27 22:36:42 +00:00
jdunn%netscape.com
659b2712ed Fix problem with NS_IF_ADDREF on member variables inside of const
member functions.  This includes removing all references to
NS_DEF_PTR and the including of nsIPtr.h

r=troy@netscape.com,dougt@netscape.com,scc@netscape.com
# 28114
a=chofmann@netscape.com


git-svn-id: svn://10.0.0.236/trunk@61237 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 23:19:18 +00:00
karnaze%netscape.com
3be962e028 bug 7112, PDT+ 1802 - added custom style rule to handle <th> text alignment. Other text alignment changes. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@60992 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 01:08:54 +00:00
karnaze%netscape.com
19635b17c5 bug 10636, 15499(partial) - correctly get margin,border,padding from reflow info. calculate it for percentage padding when reflow state not available. r=troy
git-svn-id: svn://10.0.0.236/trunk@60564 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 01:55:40 +00:00
karnaze%netscape.com
3348645b69 bug 8524 - don't use -moz-bg-inset in standard mode. r=troy
bug 10269 - renamed RequiresPass1Layout to IsAutoLayout and have it force a fixed layout table (not tree) to be auto layout if the table is auto width.


git-svn-id: svn://10.0.0.236/trunk@60554 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 00:58:38 +00:00
troy%netscape.com
1b7a0dd5ff r=karnaze@netscape.com Performance improvement for tables. During the initial
reflow we skip the pass2 reflow if it's an unconstrained reflow


git-svn-id: svn://10.0.0.236/trunk@60427 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 03:55:33 +00:00
karnaze%netscape.com
d05a3a002f bug 18770, no percent calcs on unconstrained width, better allocation to cols.
git-svn-id: svn://10.0.0.236/trunk@60237 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 14:22:00 +00:00
karnaze%netscape.com
80375a5194 bug 7714 - better row height allocation for rows with no cells originating in them, r=attinasi
git-svn-id: svn://10.0.0.236/trunk@59720 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 02:49:27 +00:00
karnaze%netscape.com
c07a74ff39 bug 8411 - the outer table cannot be made narrower than the captions min width, r=attinasi
git-svn-id: svn://10.0.0.236/trunk@59719 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 02:47:13 +00:00
jst%citec.fi
e4f760e7d6 Fixing linux build bustage, added missing .get()'s on nsCOMPtr's. r=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@59652 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 15:41:04 +00:00
karnaze%netscape.com
4b40120aae bug 7741 - handling of overlapping rowspans, r=troy.
git-svn-id: svn://10.0.0.236/trunk@59648 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 14:04:49 +00:00
pp%ludusdesign.com
a2927ce43e Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
karnaze%netscape.com
b3279d2e4c bug 25148, AppendCell grows its rows before figuring the starting col index, r=attinasi
git-svn-id: svn://10.0.0.236/trunk@59466 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 01:56:46 +00:00
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
cmanske%netscape.com
5aa1e950e3 Part of composer table edit work (bug 20973): Return NS_TABLELAYOUT_CELL_NOT_FOUND instead of error when a cell isn't found at a cellmap location. r=mjudge.
git-svn-id: svn://10.0.0.236/trunk@59434 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 23:39:37 +00:00
troy%netscape.com
bac9e93e77 b=25834 r=karnaze@netscape.com Changed to ignore the reflow status when
reflowing an unknown frame (i.e., a frame that isn't a row group)


git-svn-id: svn://10.0.0.236/trunk@59360 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 04:30:04 +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
karnaze%netscape.com
d7b3bc8f7b bug 1809, 0 width tables (not trees) become auto, r=dcone, (hyatt)
git-svn-id: svn://10.0.0.236/trunk@59078 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 15:43:25 +00:00
karnaze%netscape.com
e8ff8bb21f bug 24037 r=attinasi; nsOuterTableFrame handles bad incremental reflow by using the height of its rect.
bug 23235 r=attinasi; nsTableRowFrame requests max element size when reflowing cell for the 1st time.
bug 24410 r=attinasi; nsTableCellFrame reflow always checks width and height and updates the content empty flag.
bug 3305 r=troy,hyatt; table frame constructor cleanup, put caption in its own child list.


git-svn-id: svn://10.0.0.236/trunk@58996 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 02:19:45 +00:00
troy%netscape.com
95e05d4062 r=karnaze@netscape.com Removed some code that was removed but then added
again by mistake


git-svn-id: svn://10.0.0.236/trunk@58891 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 05:54:17 +00:00
troy%netscape.com
9adaaaf84a r=nisheeth@netscape.com Added asserts to help catch the case of poorly
targeted reflow commands


git-svn-id: svn://10.0.0.236/trunk@58817 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:11:47 +00:00
cmanske%netscape.com
3cebe089c4 Table editing (bug 20973): return reported and actual rowspan and colspan values from GetCellDataAt(), r=karnaze
git-svn-id: svn://10.0.0.236/trunk@58783 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 14:56:06 +00:00
troy%netscape.com
175e0dc98f b=22325. When resizing the row groups and rows because the table has an
explict height, we need to make sure any child views are re-positioned.
This doesn't solve the flicker problem but now edit fields are all in
the right place, and it's good enough that Buster can do his clothes
shoping


git-svn-id: svn://10.0.0.236/trunk@58536 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 03:11:24 +00:00