Commit Graph

227 Commits

Author SHA1 Message Date
troy%netscape.com
4b6011fd11 Fixed it so tables that don't want a border don't get a border 1998-07-21 08:12:22 +00:00
troy%netscape.com
109b0e1a4d Commented out code that was forcing the border style to solid rather
than using whatever is in the default ua style sheet (inset)
1998-07-21 07:47:46 +00:00
troy%netscape.com
f657a18800 Changed Paint() to use the parent frame's color style struct. We can't use our
color style struct because we're a pseudo frame and so the style system forces
us to have a transparent background
1998-07-20 23:58:00 +00:00
troy%netscape.com
ebedcce239 Changed Paint() to render the background if there is one 1998-07-20 23:56:17 +00:00
troy%netscape.com
9e7943e565 Changed SetAttribute() to call nsTableTagContent base class version so that
processing of things like "style=" happens
1998-07-20 23:50:46 +00:00
troy%netscape.com
5172d53a31 Changed MapAttributesInto() to call MapBackgroundAttributesInto() so that
the bgcolor attribute is properly handled
1998-07-20 23:30:49 +00:00
buster%netscape.com
ef4c17cfab fixed a space leak/logic error handling colspans
added backwards compatibility for percent width tables inside of auto width tables (see http://webreview.com/wr/pub  warning:  you'll have to look at a local copy until
Troy/Vidur/somebody fixes an image problem.)
1998-07-17 21:02:28 +00:00
buster%netscape.com
516af96c36 fixed table maxElementSize 1998-07-17 17:51:55 +00:00
buster%netscape.com
43e2bfb777 we now allow empty rows 1998-07-17 17:51:43 +00:00
buster%netscape.com
51fe86ee79 fundemental overhaul of the BasicTableLayoutStrategy
We now cache lots of useful info in the colframes
we now properly account for margins just as uniform cellspacing
1998-07-16 23:23:31 +00:00
kipp%netscape.com
8a146ed86e Fix incremental reflow bug 1998-07-16 22:15:02 +00:00
troy
a629312753 Some more changes of nsIPresContext* to nsIPresContext& 1998-07-15 17:05:21 +00:00
troy
afdf23392e Added an XXX to remind me to talk with Cujo about how we determine
whether the column widths have changed...
1998-07-15 04:52:32 +00:00
troy
21525a97ca Turned off some code that was accidently turned on 1998-07-15 04:46:51 +00:00
troy
88ad0371f3 Some improvements to the incremental reflow logic to handle all the
cases handled by resize reflow
1998-07-15 04:45:58 +00:00
troy
d660868bc2 Changed API for CreateContinuingFrame and GetReflowMetrics to take
a reference to a nsIPresContext
1998-07-15 03:23:23 +00:00
troy
a90fe8e1de Changed Reflow() member function to take a reference to a nsIPresContext
instead of a pointer
1998-07-15 02:53:09 +00:00
troy
8fb033f617 Incremental reflow changes 1998-07-14 15:29:50 +00:00
kipp
78d4f7fa5e Added code so that TR VALIGN's will dump properly when content is dumped 1998-07-13 21:16:51 +00:00
buster
6670b21c59 turned debug noise off 1998-07-13 20:44:07 +00:00
buster
d00c767f83 for Nav compatibility, 0-width cells do not have insets 1998-07-13 20:41:38 +00:00
buster
2eb1eecd14 added Nav4 compatibility code for 0-width cells 1998-07-13 19:22:45 +00:00
buster
5be37245a3 fixed 2 minor space leaks having to do with temporary structs allocated
to handle colspans
1998-07-13 18:11:12 +00:00
kipp
a53b58f65f Reflow child when max-element-size is requested (this works around a purify detected crash) 1998-07-12 00:19:17 +00:00
troy
5d8fdf9dd8 Added back in some changes that got lost in the previous
check-in
1998-07-11 04:16:29 +00:00
buster
6e3192f275 fixed unix build, and one small uninitialized variable problem 1998-07-11 00:47:29 +00:00
buster
8ce4ae05e9 *** empty log message *** 1998-07-11 00:08:08 +00:00
buster
3e596fc26a major hackage to the table data structures. slimmer, simpler, faster
this work exposed a few bugs and slow spots, which have been fixed
for the aol page, I added some additional backwards compatibility code
to proportionately distribute width when a fixed-width cell has colspans
1998-07-11 00:00:31 +00:00
troy
786d36083e More code re-shuffling. I need to hurry and check-in before Cujo
whacks the tree
1998-07-10 22:56:13 +00:00
troy
97ae834b23 Deprecated the SetFirstContentOffset/SetLastContentOffset member
functions that take a nsIFrame*
1998-07-10 19:04:06 +00:00
troy
b147b465e4 Changed it so we assume that rows are always complete 1998-07-10 05:23:05 +00:00
troy
4e29404d47 Some incremental improvements 1998-07-10 04:00:38 +00:00
troy
360378b073 Changed it so the inner table is reflowed by using the Reflow()
member function rather than poking the individual pass 1, pass 2, ...
member functions
1998-07-09 14:30:34 +00:00
troy
ff91686953 Changes to the caption handling code 1998-07-08 20:21:17 +00:00
troy
3a510d5648 Tables not allow only one caption 1998-07-08 04:49:01 +00:00
troy
dbb8e4e65a Cleaned up ShrinkWrapChildren so pass 1 doesn't resize the rows 1998-07-07 03:48:21 +00:00
buster
72142b30f4 fixed 3 dumb bugs I introduced recently.
1. cellmap couldn't properly delete CellData because definition was unavailable
2. optimized table cells made taller wouldn't shrink when they should because we were not
remembering the previous desired height of the cell.
3. rows were placing cells on the left edge, and not adding in the left margin.
1998-07-07 01:06:51 +00:00
troy
6d54a65afb More incremental reflow changes 1998-07-07 00:49:07 +00:00
buster
f8cb71dab5 fix for empty tables. we now support tables that have no content. 1998-07-07 00:20:21 +00:00
buster
e90e663a7b fixed a few bugs with distributing excess/restricted space inappropriately.
we now pass around info about whether we're an auto width table.
1998-07-06 22:48:19 +00:00
troy
35c2e6b45c Incremental reflow work-in-progress 1998-07-06 21:39:23 +00:00
buster
5135afe659 added support for "effective column widths", the width of a column pretending that spanning cells have no effect.
this gets us some more Nav4 compatibility.
several minor fixes.
1998-07-06 21:00:11 +00:00
kipp
37213af260 Don't build shared libraries 1998-07-03 23:12:11 +00:00
troy
44b7ebb358 More work-in-progress incremental reflow code 1998-07-02 23:19:31 +00:00
kipp
f0ed6d38a2 Fixed bug where tables weren't returning a proper set of metrics 1998-07-02 21:24:56 +00:00
troy
d138bc14e1 Moved code that resized the table row cells from the row group frame
to the row frame. It's now handled as part of the DidReflow() post-
processing code
1998-07-02 20:35:23 +00:00
buster
b54c4bdc95 added an optimization that skips pass2 cell reflows when the new available width is unchanged
from the prior available width.  Some real-world test cases sped up
1-2 orders of magnitude for resize reflow.  Initial reflow is unchanged because
we still need to get pass1 metrics on all content.
fixed nsCSSBlockFrame.cpp to take margins into account when computing parent's available width
fixed distribution of excess space to table cells when table is bigger than the content it holds.
not quite finished yet, but better.
1998-07-02 17:40:56 +00:00
troy
8df0e96786 Some work-in-progress for incremental reflow 1998-07-02 05:39:10 +00:00
atotic
9689fc070a Fixed the for (PRInt32 i=) problem 1998-07-01 22:40:00 +00:00
troy
183b82a765 Eliminated some usage of ChildAt() 1998-07-01 22:22:28 +00:00
troy
59d4da2785 Some work-in-progress for incremental reflow 1998-07-01 04:55:15 +00:00
troy
aa312a24e8 Removed some vertical margin collapsing stuff that wasn't needed 1998-07-01 03:03:32 +00:00
kipp
541fe9b490 Use new PropagateContentOffsets API 1998-06-30 20:22:44 +00:00
buster
70c232ebd4 fixed-width cells no longer improperly impact the available size
of subsequent cells in reflow pass 1

we correctly distribute extra space in a table proportionately.
We try to give the extra space to auto-width columns first,
and if there are none we distribute it to all columns.
The percentage is based on the cell content's desired size.
1998-06-30 20:12:45 +00:00
troy
add97af1d2 Moved shrink wrap code from table frame to table row group frame 1998-06-30 02:11:07 +00:00
buster
5a4c2d4364 columns that are fixed-width due to an attribute on the corresponding cell in the first row
now work correctly.
extra space is now properly apportioned in the "table fits" case when the table contains auto-width cells.
1998-06-30 00:37:03 +00:00
buster
1f0d9a91f1 cells no longer monkey with their available width based on attribute constraints.
The row does this work now. This makes table layout more properly top-down.
1998-06-29 20:38:22 +00:00
buster
705daa1418 minor tweaks for table layout 1998-06-29 03:09:14 +00:00
atotic
1437970bf6 That for (int i)... problem fix 1998-06-27 02:49:36 +00:00
atotic
12f2a33570 Another class reference inside class declaration problem class A { void A:method }; is bad 1998-06-27 02:48:39 +00:00
atotic
afb360e8c5 Fixed mac warnings 1998-06-27 02:47:44 +00:00
buster
471f5b46a8 support for Nav4 compatibility -- auto-width cells with 0-width content are 1 pixel wide 1998-06-26 23:31:33 +00:00
kipp
b00f7215a5 Eliminated IRIX compiler warnings (and a bug) 1998-06-26 15:07:09 +00:00
buster
d7cca42032 fixed some nested table bugs and made some minor adjustments to Kipp's new line layout code. 1998-06-26 00:48:44 +00:00
troy
04e9ce1a5f Added some asserts to the incremental reflow code 1998-06-24 22:05:59 +00:00
buster
ba02200c08 fixed some bugs related to rowspans. This gets us closer on pages like Mozilla.org that were getting wild table heights. 1998-06-24 19:13:19 +00:00
troy
48262a93f9 Changed to make sure we set the (x,y) for the frame before we reflow it 1998-06-24 18:09:47 +00:00
troy
d8ba6d4919 Changed to make sure we link the child frame into the list of frames before
we reflow it
1998-06-24 16:35:21 +00:00
troy
9419e27a89 Some incremental reflow changes 1998-06-24 04:38:52 +00:00
buster
9605fb0d2f now tables with precent width nested within tables with auto width work 1998-06-24 00:40:33 +00:00
buster
aca4c96fbe lots of nested tables look much better
misc. nav4 compatibility enhancements
added the ability to QueryInterface for some specific table frame types
1998-06-23 23:23:21 +00:00
troy
0ba0825eb4 Initialized mColLayoutData to nsnull 1998-06-23 22:45:26 +00:00
vidur
b5f413930d Added autogeneration of XPCOM headers and JavaScript stub classes. Added better masking of JS-specific structures in generic interfaces. Creation of a scripting global object interface. 1998-06-23 18:43:06 +00:00
troy
ea085cab4b Some work-in-progress for table incremental reflow 1998-06-23 05:43:27 +00:00
troy
7d13a4fd7f Eliminated mFirstPassValid and changed code to key off the reflow
reason
1998-06-22 21:59:43 +00:00
troy
14b98d4773 Started hooking up incremental reflow. So far we only handle changed
captions
1998-06-22 05:34:17 +00:00
troy
36e45e1fac Work in progress for incremental reflow 1998-06-19 05:21:45 +00:00
troy
3456471e4f Eliminated nsTableCaptionFrame and now we just use a nsBodyFrame instead 1998-06-19 00:34:12 +00:00
buster
3d98654938 minor updates and fixes 1998-06-17 19:51:51 +00:00
buster
288d645ae3 Separated table content from table layout. This paves the way for XML/CSS-2 tables.
Lots and lots of optimizations.
1998-06-17 16:38:24 +00:00
troy
16ea80e42f Addded some helper functions to determine whether a content object is
a table cell
1998-06-17 15:21:02 +00:00
troy
4f0977b3b9 Changed cast of content objects to nsTableContent* to query interface
of nsITableContent
1998-06-17 05:28:36 +00:00
troy
0257810c1e Changed PaintChildren() to only paint those children that intersect
the dirty rect
1998-06-14 00:45:21 +00:00
troy
635160598d Changed ResizeReflowPass1() to default to the reflow reason that was
passed in and not resize
1998-06-12 04:28:07 +00:00
troy
0a13434a4d Fixed some places where the reflow reason wasn't getting correctly set for
the initial reflow
1998-06-12 04:11:41 +00:00
troy
6e3ac5fd90 Changed how cell layout data is accessed 1998-06-11 22:51:54 +00:00
troy
421b1e3377 Eliminated FindCellLayoutData() and changed code to use GetCellLayoutData()
instead
1998-06-11 18:50:17 +00:00
buster
f1483bd22e more separation between table content and frames 1998-06-11 17:50:51 +00:00
buster
9034e41c54 continuing work to separate content from frames 1998-06-11 15:46:37 +00:00
troy
63f9e5f77a Added some XXX performance reminders 1998-06-11 04:57:56 +00:00
buster
d3d2d16edd more cleanup and frame/content separation 1998-06-11 00:41:09 +00:00
buster
2d31c54583 some tentative steps towards content/frame separation in tables 1998-06-11 00:13:18 +00:00
troy
66b6882d23 Added nsIReflowCommand interface 1998-06-09 04:51:44 +00:00
buster
eebf3db2c1 backed out an inline for UNIX build 1998-06-09 03:53:35 +00:00
rods
19bb8ad4ac moved inlined SetCellAt to body 1998-06-08 22:07:15 +00:00
buster
d80cb849ee less inlining, for UNIX and Linux builds 1998-06-08 20:53:43 +00:00
buster
469b205bb3 most HTML 4 attributes supported (though some are still ignored)
lots of methods made inline
1998-06-08 19:57:04 +00:00
buster
48aad57390 complete HTML 3.2 attribute support 1998-06-08 17:19:26 +00:00
buster
0197ad9b72 more attributes: cell nowrap, caption align, some misc HTML 4 attributes too 1998-06-08 15:47:03 +00:00
kipp
0528089f8d Fixed table cell's so that translate valign back to a string properly 1998-06-06 01:48:10 +00:00