Граф коммитов

262 Коммитов

Автор SHA1 Сообщение Дата
karnaze%netscape.com 4a096a53f7 scrollable row groups 1999-01-17 23:35:56 +00:00
kipp%netscape.com 06d2d8efb3 Spanked away SizeOf methods and nsIListFilter 1999-01-16 00:00:50 +00:00
kipp%netscape.com 8dba97945a Used revised version of nsContainerFrame that uses an nsFrameList instead of a raw nsIFrame* 1999-01-15 22:52:05 +00:00
troy%netscape.com 5284506712 Fix for bug #1998. Now we render the background image over the padding area and not over the border area 1999-01-15 18:25:58 +00:00
troy%netscape.com 5d8b4656eb Removed the content-parent frame pointer. Now we just have the one geometric
parent
1999-01-14 05:16:23 +00:00
troy%netscape.com 59d1bc8ea5 Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"
1999-01-05 23:31:18 +00:00
troy%netscape.com f7d81d6dbe Cleaned up some old references to margins which aren't applicable to row group
frames and row frames (because internal table elements don't have margins)
1999-01-05 00:41:40 +00:00
buster%netscape.com f8695f8fd5 collapsing border bug fixes 1998-12-30 23:23:45 +00:00
buster%netscape.com 8408f40b9f collapsing borders with odd width have correct width now 1998-12-30 22:40:36 +00:00
troy%netscape.com 781a43ae69 Changed width/height constraints in nsHTMLReflowState struct 1998-12-30 17:50:00 +00:00
buster%netscape.com 8f9e87593a collapsing border computation and conflict resolution 1998-12-30 06:48:15 +00:00
troy%netscape.com e1f9e8b29f Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code
1998-12-29 03:38:16 +00:00
buster%netscape.com 6c425dcc97 WIP for collapsing borders 1998-12-23 15:47:43 +00:00
buster%netscape.com cfac258007 WIP for collapsing borders. 1998-12-21 19:20:37 +00:00
buster%netscape.com 33c0b915d2 collapsing borders now do rounding of odd-thickness borders correctly
at the pixel level.  The odd pixel is always given to the right and bottom
cell borders whenever possible, and to the top and left table border otherwise.
1998-12-21 18:54:23 +00:00
buster%netscape.com 1999604fcc beginnings of collapsing borders now implemented. Doesn't work for spanning cells yet,
and doesn't measure borders where the width changes along a shared edge yet.
1998-12-21 06:38:18 +00:00
kipp%netscape.com 27f0cfe8cc Revised frame Paint API 1998-12-18 15:54:23 +00:00
buster%netscape.com 996b306dd3 WIP on border collapsing 1998-12-17 22:59:40 +00:00
buster%netscape.com 233bb9ce0f more WIP, no new code operational 1998-12-17 07:56:24 +00:00
buster%netscape.com 00e0a65bb7 WIP collapsing border implementation
added CompareBorderStyles, GetWidthForSide, ComputeCollapsedBorderSegment
we're now computing the left edge segments somewhat correctly.
1998-12-17 07:04:42 +00:00
buster%netscape.com 2ed8bdee7a WIP collapsing border work 1998-12-16 22:19:23 +00:00
buster%netscape.com 5859d1c4da WIP on collapsing borders 1998-12-16 17:05:14 +00:00
troy%netscape.com 778a4ee8a2 Tables now clear the isTopOfPage when appropriate 1998-12-14 01:24:11 +00:00
buster%netscape.com ffb50a065b tables can now have independent horizontal and vertical cell spacing
("cellspacing" HTML attribute == "border-spacing" CSS property, go figure...)
1998-12-09 06:37:18 +00:00
troy%netscape.com 2a501cc669 Added new atoms to nsLayoutAtoms for additional named frame child lists 1998-12-09 05:30:17 +00:00
troy%netscape.com e56553b995 Initial table pagination support 1998-12-08 17:57:45 +00:00
buster%netscape.com 6093d1b292 fixed a bug in table-layout:fixed mode
fixed bug fixed a few small bugs
1998-12-08 01:00:14 +00:00
harishd%netscape.com 1e21693ed2 changed the code that previously accessed mBorderStyle and mBordercolor
with new methods added in nsStyleSpacing
1998-12-07 19:07:45 +00:00
buster%netscape.com bee46015b7 fixed cellspacing and cellpadding handling
default cellspacing and cellpadding now comes from the table frame itself
other frames on longer look at the "tableStyle" struct for these values
1998-12-05 05:27:21 +00:00
wtc%netscape.com d6d1f8940d The second argument for GetStyleData needs to be 'const'. 1998-12-05 01:47:37 +00:00
troy%netscape.com a3ea4ddad7 Added NS_RELEASE of col frame pseudo element style context. This fixes a memory leak 1998-12-04 03:39:05 +00:00
troy%netscape.com df01f21fdb Changed table frame code to call DeleteFrameList() so that the col group
frames are deleted
1998-12-04 03:14:28 +00:00
buster%netscape.com a15dfd9f3a the inner table frame now maintains 2 child lists: the main child lists that holds rowgroups and unknown frame
types, and mColGroups. Besides being cleaner and easier to maintain, this should speed some things up slightly
     because I don't have to check display types every time I iterate through colgroup frames.  I *know*
     mColGroups contains only colgroups.  I might do the same for rowgroups (that is, keep unknown frame types
     in their own list as well.)  But that's optional.
the inner table frame used to incorrectly create actual content objects for anonymous colgroups and cols.  Now,
     it just creates frames as appropriate, not content.  To support this, I added some pseudo style contexts and
     related atoms.
1998-12-03 18:01:35 +00:00
troy%netscape.com d97a31f115 Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
wtc%netscape.com ccf7f3277f This checkin (under mozilla/layout) is all about 'const'. Digital Unix's
C++ compiler is strict about getting 'const' right.  Most of the changes
are to add 'const' to the type casts for the second argument of the
GetStyleData method, which wants a const reference.
1998-12-02 16:45:20 +00:00
buster%netscape.com 892f7b866f fixed some nested table layout problems 1998-11-30 15:10:20 +00:00
buster%netscape.com e2fcfeebdf 2 Nav4 compatibility additions:
1. width=0 is treated as width=auto, not width=min
2. empty cells <td></td> are assigned a width of (2*borderWidth + 2*cellspacing + 3) pixels
The "3" is a fudge factor added by Nav and IE.
1998-11-25 18:43:56 +00:00
buster%netscape.com c85d0477a1 implemented table height algorithms. also made a slight modification to
the way a table finds its container's width.
1998-11-20 01:01:25 +00:00
kipp%netscape.com 63107e9026 Added DumpRegressionData; revised ListTag; added GetFrameName 1998-11-19 17:22:29 +00:00
buster%netscape.com 8e34bbc78e irrationally-specified table (one where the width attributes of various rows don't add up to the same value,
and/or to the width attribute on the table itself), the rule is to try to give the column the largest value
assigned to it by any cell intersecting that column.
Separate storage is maintained for a column's natural desired width (width from any source other than a cell
with a colspan) and the maximum contribution to the column's width from any cell with a colspan.
1998-11-16 06:46:00 +00:00
michaelp%netscape.com f186598ef5 changes for pixel scaling/printing. 1998-11-14 01:52:27 +00:00
buster%netscape.com 9b8264930f col and colgroup attribute handling
colgroup pseudo frame for cols inserted directly into a table.  More like this to come...
1998-11-12 18:37:28 +00:00
buster%netscape.com daf8cc32db support for frame and rules attribute 1998-11-11 19:56:02 +00:00
troy%netscape.com fd34820203 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list
1998-11-10 06:05:32 +00:00
troy%netscape.com 02915d3677 First of a few changes to allow frames to have multiple child lists.
FirstChild() now takes an additional argument which is the name of the
child list.
1998-11-09 19:40:27 +00:00
joki%netscape.com 7e3ff11eff Fixup calls to DumpCellMap() with NS_DEBUG #ifdefs 1998-11-06 02:38:17 +00:00
buster%netscape.com d5affd8ba1 various small fixes and clean up 1998-11-05 21:42:46 +00:00
buster%netscape.com 5c6d17bdd7 in default 2-pass layout, tables with auto width and with all columns coord width now act like auto width tables,
not like specified width (which you might logically expect since all column widths are specified, but sadly that's
not the way Nav or IE interprets this case. )
nsTableFrame's use of IsPseudoFrame has been removed.
1998-11-04 19:33:27 +00:00
peterl%netscape.com 776a2683ef sync to style resolution api changes 1998-11-03 20:33:43 +00:00
buster%netscape.com 8e569cbd83 implemented basic attribute changed handling. most things currently work, those that don't will work better after Peter
lands some style context resolution changes.
1998-10-30 23:08:34 +00:00
buster%netscape.com d8ae00b810 some extremely preliminary work for styleChanged incremental reflow 1998-10-30 07:57:44 +00:00
buster%netscape.com 722c2c87b8 minor tweak to column handling 1998-10-27 08:38:56 +00:00
buster%netscape.com 6f9684a694 fixed bug 1188. Colspans beyond the end of the table were adding entries
into the column cache, which is very, very bad.
1998-10-26 19:15:31 +00:00
buster%netscape.com a813b08b20 fixed bug 1180 (mozilla.org) and all tables that have nonsense colspans 1998-10-26 18:42:22 +00:00
buster%netscape.com e9c6389c50 fixed bug 1112 - form submission within a table sometimes doesn't work
because the form doesn't get a reflow command.  Now it does.
1998-10-23 17:24:57 +00:00
buster%netscape.com a7862f4aa2 minor bug fixes 1998-10-23 03:23:29 +00:00
buster%netscape.com 69279059ed just debug info 1998-10-22 21:59:13 +00:00
buster%netscape.com 125651b7d9 fixed column caching 1998-10-22 06:04:37 +00:00
buster%netscape.com 770456fedd fixed a bug where columns were not always created as needed during incremental appends
added some extra debugging and support methods
1998-10-22 05:27:11 +00:00
buster%netscape.com 113ad4cfe4 fixed several incremental reflow bugs 1998-10-21 22:29:00 +00:00
buster%netscape.com 7072bdfa9c incremental reflow only does pass1 reflow on new frames when necessary
fixed some rotting bits in table frame classes having to do with breaking tables
1998-10-20 20:05:44 +00:00
buster%netscape.com a212d55079 all containers now decend from nsHTMLContainerFrame
all "unknown frame" incremental reflow support methods now
replaced with nsHTMLContainerFrame::AddFrame and ::RemoveFrame
1998-10-20 17:45:07 +00:00
buster%netscape.com 8d417e38eb fixed a bug introduced by a slight change in GetColumnCount() 1998-10-20 05:05:17 +00:00
buster%netscape.com 76b966c73b rows can now be incrementally inserted, appended, and deleted. 1998-10-19 23:43:06 +00:00
buster%netscape.com ffd3e04fed incremental reflow: append/insert/delete row group, append/insert/delete col 1998-10-15 21:07:37 +00:00
buster%netscape.com 8c72377bc6 progress on table incremental reflow of row group insert/append/delete 1998-10-15 07:46:16 +00:00
buster%netscape.com c965ac41d6 nsTableFrame can now incrementally insert, append, and delete colgroups 1998-10-14 22:51:50 +00:00
buster%netscape.com a68c7be529 lots of work for incremental reflow when the target frame is a table frame 1998-10-14 16:32:45 +00:00
kipp%netscape.com 05a50b6ce3 Added an nsIPresContext& to html-reflow-state's ctors and used it to implement better percentage width/height handling 1998-10-12 14:48:02 +00:00
buster%netscape.com bcfb60bde3 WIP for inner table incremental reflow
lots of interface cleanup
1998-10-11 09:18:27 +00:00
buster%netscape.com d3ab71c37f made allocation of mColumnWidths more flexible 1998-10-09 21:53:07 +00:00
buster%netscape.com 37e93ed6b7 support nsTableOuterFrame incremental reflow 1998-10-09 19:59:45 +00:00
troy%netscape.com cc44601bb8 Removed GetContentIndex() from nsIFrame 1998-10-08 20:35:16 +00:00
buster%netscape.com e2da95d0ac all frames properly setting ascent and descent values for reflow
WIP incremental reflow in nsTableOuterFrame
1998-10-08 15:34:48 +00:00
troy%netscape.com f039f11a24 Changed ReflowChild() to send the WillReflow() notification as well 1998-10-06 00:27:22 +00:00
troy%netscape.com 0499b15ed9 Removed calls to MoveTo() BEFORE reflowing a frame. We used to do this
sequence: MoveTo(), Reflow(), SetRect(). Now that we have the WillReflow()/
DidReflow() code sandwhiches we no longer need to do the MoveTo()
1998-10-05 00:58:32 +00:00
buster%netscape.com ac23ef9ea7 merge goof fixed, now works with new reflow API 1998-10-02 21:35:44 +00:00
buster%netscape.com 360bd18d2d minor interface cleanup 1998-10-02 20:36:35 +00:00
troy%netscape.com f095846367 Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
troy%netscape.com 8b034f4950 Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface
1998-10-01 04:46:11 +00:00
buster%netscape.com 3cc5736a1a fixed a minor bug in colspan layout
the layout strategy can now query the outer frame for the caption min width,
and use it to expand the table if necessary
did some related cleanup while I was in there.
1998-09-29 23:15:01 +00:00
buster%netscape.com f6983c2bf8 fixed bug 915. Colgroup frames now get Init() calls properly with
synthesized COLs.
1998-09-28 20:38:10 +00:00
kipp%netscape.com d7c69dee34 Use modified css rendering API 1998-09-26 17:17:20 +00:00
buster%netscape.com b89f1873bc removed lots of assumptions about frame ordering and containership.
table frames no longer assume they are n levels below the inner table frame
table frames no longer assume their child frames are always the expected type of
frame.  Now they check the display type and use that as sufficient proof that the frame
is of the right type.  This implies a heavy reliance on the frame construction code to do
the right thing and always stamp out the right kind of frame for a given display type.
1998-09-24 16:37:22 +00:00
troy%netscape.com 2ed107ad4d Removed IsPseudoFrame() from nsContainerFrame 1998-09-24 04:57:30 +00:00
troy%netscape.com a086892036 Changed signature of PushChildren() member function 1998-09-24 04:18:58 +00:00
troy%netscape.com f5a11ac77b Removed IsLastChild() member function from nsContainerFrame 1998-09-24 04:12:01 +00:00
troy%netscape.com 82c4fa9df0 Removed PreReflowCheck() and PostReflowCheck() from nsContainerFrame 1998-09-24 03:59:30 +00:00
troy%netscape.com 5e4611081b Removed mFirstContentOffset, LastContentOffset, and mLastContentIsComplete
from nsContainerFrame
1998-09-24 03:36:52 +00:00
buster%netscape.com c1981ca059 all frame initialization and related logic has moved into the various table frames' Init() methods
from their respective InitalReflow() methods.
table-layout=fixed now completely skips pass1 reflow and doesn't require maxElementSize
information, saving a tremendous amount of time during initial reflow.
1998-09-23 21:48:26 +00:00
kipp%netscape.com 406e4648c3 Fixed the build 1998-09-23 01:47:17 +00:00
buster%netscape.com 29018c63f5 set all the groundwork for FAST table layout based on CSS-2 table-layout property 1998-09-22 23:36:06 +00:00
troy%netscape.com 528288293f Removed all references to m<First,Last>ContentOffset,mChildCount,mLastContentIsComplete 1998-09-21 03:40:32 +00:00
troy%netscape.com 9955ac85ce Removed farme enumeration member functions for indexed access, last child,
and child count
1998-09-19 03:24:26 +00:00
buster%netscape.com 1595410b34 added ColIsSpannedInto, ColHasSpanningCells
moved *IsSpannedInto and *HasSpanningCells into cellmap, giving us the oppurtunity
to easily cache results if we want.  These methods are still accessed through nsTableFrame.
changed nsTableFrame::GetCellAt to nsTableFrame::GetCellFrameAt to make it more clear what
the method returns:  a frame, not content.
1998-09-18 22:37:14 +00:00
troy%netscape.com 52eb998d8f Removed nsIContentDelegate.h 1998-09-18 17:34:48 +00:00
troy%netscape.com b6c1cfd2b8 Removed content delegates 1998-09-18 17:18:37 +00:00
troy%netscape.com a753f54fe4 Removed some commented out code that's not needed now that we're using the
new frame construction
1998-09-18 00:49:40 +00:00
troy%netscape.com 494c808426 Clean up work 1998-09-16 20:27:30 +00:00
troy%netscape.com abdd161d93 Frame construction changes for tables 1998-09-16 17:19:20 +00:00