67 Commits

Author SHA1 Message Date
surkov.alexander%gmail.com
cfdaa9365d Bug 410052 – Fix our nsHTMLAccessibleTable class so GetIndexAt and GetRowAtIndex and GetColumnAtIndex behave consistently, patch=me, marcoz, r=marcoz, me, bernd, sr=roc, blocking1.9+=dsicore
git-svn-id: svn://10.0.0.236/trunk@245101 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-07 07:03:26 +00:00
bzbarsky%mit.edu
cda6f2b142 Don't use a static nsTArray. Bug 369099, r=bernd, sr=roc
git-svn-id: svn://10.0.0.236/trunk@220057 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-13 16:23:19 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
bzbarsky%mit.edu
a99e9b8f80 Fix crash bug 368166. r=bernd, sr=roc
git-svn-id: svn://10.0.0.236/trunk@219071 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-28 16:49:26 +00:00
bzbarsky%mit.edu
3c4a12efcd Address review comment I missed. Bug 367749.
git-svn-id: svn://10.0.0.236/trunk@218849 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-24 20:23:08 +00:00
bzbarsky%mit.edu
0ec062328d Fix various bugs in the column iterator's keeping track of the current row.
Bug 367749, r=bernd, sr=roc


git-svn-id: svn://10.0.0.236/trunk@218847 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-24 20:18:04 +00:00
bzbarsky%mit.edu
3de9b82869 Make it possible for callers who want to iterate all the row groups and
GetMapFor() for all of them do so in about O(N) time instead of O(N^2) (in
number of row groups).  Bug 366892, r=bernd, sr=roc


git-svn-id: svn://10.0.0.236/trunk@218741 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-22 04:35:25 +00:00
bzbarsky%mit.edu
0b6146e808 Have a faster way of iterating down the columns of a table. Bug 352461,
r=bernd, sr=roc


git-svn-id: svn://10.0.0.236/trunk@218739 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-22 04:32:33 +00:00
bmlk%gmx.de
9ddb3480ae Zerorowspans are expanded during cellmap entry creation. There is no need to adapt the rowspan value later, bug 364318 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@217587 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-01 18:18:53 +00:00
bmlk%gmx.de
93402c4df5 rename variable rename mRowCount to mContentRowCount so that it becomes obvious what it contains. Adjust the cellmap grow mechanism to the new nsTArray world bug=363370 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@217417 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 14:04:20 +00:00
bzbarsky%mit.edu
dfc962fee2 Allocate the celldata structs from the presshell arena instead of allocating
them from the malloc heap with new.  Use nsTArray to store them and an nsTArray
to store those arrays instead of using nsVoidArray.  Bug 356335, r=bernd,
sr=sicking


git-svn-id: svn://10.0.0.236/trunk@216628 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-07 02:32:57 +00:00
bmlk%gmx.de
f21795364a Revert a old design decision how to expand zero colspans in the cellmap. Once a cellmap hole was hit via the GetDataAt function the old code tried to repair this cellmap position by walking up and left till a possible origin of a zero span was hit. The new code uses a mark and sweep approach, which should remove the burden that ordinary tables without zero spans but large cellmap holes have to pay. bug 351942 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@213902 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-20 07:37:24 +00:00
bmlk%gmx.de
3f15d7b9d7 fix a coding error in the patch for bug 339246 bug 343588 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@206389 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-02 12:02:37 +00:00
bmlk%gmx.de
6cff3ed2bf fix cellmap errors with the num of rows in the cellmap vs the num of rows in the content bug 344000 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@206388 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-02 11:57:48 +00:00
bmlk%gmx.de
8e040e2ee9 reset column info for all cellmaps if they need to be reset, bug 339246 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@201118 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 18:56:10 +00:00
bmlk%gmx.de
eaa542d299 reorder cellmaps if the rowgroup order might have changed bug 339130 r7sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@200567 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 04:19:36 +00:00
bzbarsky%mit.edu
4c22ca3414 Make sure to call the right destructor on cellmap info structs. Bug 302725,
r=bernd, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@187593 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-13 21:08:17 +00:00
bmlk%gmx.de
a9a12da5e7 insert new rowgroup cellmaps in the order predicted by OrderRowGroups, bug=317554 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@186183 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-16 19:10:56 +00:00
bmlk%gmx.de
f45b33da68 limit search for real table cells to place where they can be expected, bug 313295 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@184151 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 18:41:32 +00:00
gerv%gerv.net
2ac510b678 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
bmlk%gmx.de
50ee50ad30 move HasMoreThanOneCell from nsTableRowGroupFrame.cpp into nsCellMap.cpp where it belongs. Don't try to repair the cellmap on every reflow, this might help with with large table rendering performance, bug 240318 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@154778 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 06:21:16 +00:00
bmlk%gmx.de
018f4cb8aa when dead cells are replaced in the cellmap, the corresponding column should be informed that it now contains one more cell bug 235535 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@153486 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-03 17:45:50 +00:00
bmlk%gmx.de
a316af5457 remove unneccesary prescontext arguments bug 230923 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@151492 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:28:40 +00:00
dbaron%dbaron.org
e6a2b29ebf Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
bernd.mielke%snafu.de
2cf71c064f fix for a O2(n) dependency when adding a row to a table, bug 85755 r=karnaze sr=brendan
git-svn-id: svn://10.0.0.236/trunk@136591 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 14:02:52 +00:00
karnaze%netscape.com
430941b018 bug 41262 - new table border collapsing code. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@114937 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 15:48:28 +00:00
karnaze%netscape.com
0fcba4eb02 bug 110523 - Get the correct starting row index when inserting a new row in a tbody that is not the first one. sr=atinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@108515 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 00:58:53 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
rjesup%wgate.com
8b0885ab65 bug 92573: VoidArray->AutoVoidArray changes for layout/*. r=kin, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102448 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:11:44 +00:00
karnaze%netscape.com
d94c44446b bug 74731 - remove extraneous cols at end of cell map rows, keep table cols and cell map cols in synch. sr=attinasi, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@95252 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 12:40:27 +00:00
karnaze%netscape.com
51812fbe96 bug 44523 - Get the actual rg from the cell in AppendCell rather than use the row index. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90688 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-28 21:25:13 +00:00
karnaze%netscape.com
c76866e3ea table reflow coalescing, table reflow face lift. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89462 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:38:59 +00:00
karnaze%netscape.com
a7ed9d39d0 bug 46623 - allocate proportional and auto cols together when balancing columns. (sr=buster, r=peterl)
allow columns (due to colspan) containing no originating cols at the end of the table to exist


git-svn-id: svn://10.0.0.236/trunk@84899 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 23:07:54 +00:00
karnaze%netscape.com
192b42b445 bug 30418, 47252 - order row groups before performing most operations. r=attinasi.
git-svn-id: svn://10.0.0.236/trunk@79091 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 06:49:47 +00:00
anthonyd%netscape.com
20e7680b7c r:mjudge
fix for bug# 29785, keyboard navigation of tables in editor
not completely fixed, tables with row|column span do not navigate correctly


git-svn-id: svn://10.0.0.236/trunk@69124 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 01:04:39 +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
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
karnaze%netscape.com
ff253260b5 bugs 19061, 9879 - each top level row group gets its own cell map; CellData reduced to 4 bytes.
git-svn-id: svn://10.0.0.236/trunk@57635 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 05:29:38 +00:00
karnaze%netscape.com
500ae7bed9 bug 22246 - row/col span changes on cell alter cell map and reflow table. r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@56722 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-04 05:31:56 +00:00
karnaze%netscape.com
9729119ade removed caching of collapsed rows and cols as a likely fix for non reproducable bug 21652. a=hofmann, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@56075 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-16 01:51:06 +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
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
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
putterman%netscape.com
c46467d214 Fix for 14386. Prevent memory corruption when opening and closing an account.
Approved = leaf. Reviewed -= karnaze.


git-svn-id: svn://10.0.0.236/trunk@48928 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 22:44:47 +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
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
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
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