Commit Graph

210 Commits

Author SHA1 Message Date
buster%netscape.com
d1810c5bd8 made auto-width tables that have all-fixed-width columns act like
fixed-width tables.
1998-08-01 20:31:40 +00:00
buster%netscape.com
a45b2ebb58 *** empty log message *** 1998-08-01 02:36:31 +00:00
buster%netscape.com
1d94952b0c *** empty log message *** 1998-08-01 02:32:27 +00:00
buster%netscape.com
c0e2de3c56 fixed cases where we were not computing the table width correctly
fixed cases where we were inappropriately portioning out
a spanning cell's min width to the columns it spanned.
1998-08-01 02:31:55 +00:00
buster%netscape.com
705f18b571 fixed a memory leak on a style context 1998-08-01 02:30:35 +00:00
peterl%netscape.com
714146a525 rounding support 1998-07-31 23:34:45 +00:00
buster%netscape.com
ff35c20a64 we now paint backgrounds regardless of our content. Cell borders are
still conditionally painted based on whether the cell's content has
0=size or not.
1998-07-31 00:32:27 +00:00
buster%netscape.com
0e9212b3a8 fixed an error where min width of col spanners were getting proportionately distributed
only desired width gets distributed, not min size.
1998-07-31 00:31:09 +00:00
troy%netscape.com
961f75c4e0 Changed BuildCellMap() to iterate table cell frames using the sibling
list instead of ChildAt()
1998-07-30 04:50:38 +00:00
troy%netscape.com
3766ec4048 Changed nsString to nsAutoString to eliminate heap allocation 1998-07-30 02:49:13 +00:00
kipp%netscape.com
7ff5d0e7ce Remove most compiler warnings on IRIX 1998-07-29 20:19:08 +00:00
buster%netscape.com
906c36bf12 fix for distributing spanned width that is less than the column minimums it spans. 1998-07-28 00:23:01 +00:00
buster%netscape.com
ef37113511 more span fixes 1998-07-27 23:47:54 +00:00
kostello%netscape.com
f6774809de Added support for the copy command (converting the selection to XIF)
Changed XIF interface
1998-07-27 18:11:14 +00:00
buster%netscape.com
fb448713fb empty cells do not render border or background color 1998-07-27 07:37:57 +00:00
buster%netscape.com
01cb1091bc minor fixes for spans 1998-07-27 07:20:03 +00:00
buster%netscape.com
4aa30464e2 cleaner version of earlier code. still buggy on some pages for no apparent reason. 1998-07-27 05:32:50 +00:00
buster%netscape.com
5bc08af6bc *** empty log message *** 1998-07-27 03:02:32 +00:00
buster%netscape.com
b0820f4994 much better handling of tables who have fixed-width columns that make the table wider than it is allowed to be
added some sanity checking in BalanceColumnWidths be ensure that a column width
can never be less than the minimum element in that column.
1998-07-27 02:15:37 +00:00
buster%netscape.com
cb77901bc4 COLS attribute ignored if any column width info is specified (like <TD width=100>)
fixed lots of COLS related bugs.
handle min width spec (<TD width=0 or width=0% or width=0*>)
major fix to colspan handling
1998-07-26 04:23:01 +00:00
buster%netscape.com
c2cb496f85 NOWRAP turned off in fixed-width cells for backwards compatibility
we handle inconsistent width attributes better
1998-07-24 23:26:23 +00:00
buster%netscape.com
ccdd156af5 turn off debug 1998-07-24 17:15:12 +00:00
buster%netscape.com
cc50c03239 GetColCount now returns the effective column count of the table, adjusted
for nonsense COLSPANs at the edge of a table.  Fixed some bugs this uncovered
where the cell was being asked for its colspan attribute rather than the table
being asked for the cell's effective col span.
1998-07-24 16:51:16 +00:00
buster%netscape.com
8194f070cf fixed column balancing for case where minColWidth > specifiedFixedColumnWidth 1998-07-24 03:53:59 +00:00
buster%netscape.com
911380aeb5 any table with a nonsense rowspan lays out better 1998-07-24 00:43:09 +00:00
buster%netscape.com
4ad5fcf455 completed AdjustTableThatIsTooWide, now gets the table down to the right width. 1998-07-23 21:55:45 +00:00
peterl%netscape.com
2207f21400 factored backgound finding code to nsStyleUtil 1998-07-23 18:05:03 +00:00
buster%netscape.com
bf6286bcc1 fixed-width columns now respected when their content desired width exceeds
the specified width.
1998-07-22 20:06:31 +00:00
buster%netscape.com
250fdeafde BasicTableLayoutStrategy::Initialize now properly re-iinitializes instance variables 1998-07-22 18:22:12 +00:00
buster%netscape.com
35edf8df81 fixed table width problems when there are colspanning cells 1998-07-22 05:38:41 +00:00
troy%netscape.com
048270ffb0 Changed PaintBorder() to use the (x,y) that's passed in 1998-07-22 05:02:07 +00:00
buster%netscape.com
878f3fa809 * reworked the way colspan and rowspans are handled in table layout strategy. We do less work, and we look better.
* fixed more margin code.  we're inching towards correctness.
* the width contributed by a colspanning cell is now proportionately distributed to the columns based on the columns "effective width"
* added logic for handling illegal COLS attribute on a table (like COLS=4 in a 3-column table).  See nsTableFrame::GetEffectiveCOLSAttribute()
* added logic for handling illegal COLSPAN attribute on a cell (like COLSPAN=4 in a 3-column table).  See nsTableFrame::GetEffectiveColSpan().  This is wrong, and will get reworked soon.
* added the ability for cell width attributes to effect column width like Nav4.
1998-07-22 03:53:43 +00:00
troy%netscape.com
789a2dbe45 Changed nsCSSRendering::PaintBorder() so the entire rect is used
and not just the width and height
1998-07-22 02:46:00 +00:00
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