201 Commits

Author SHA1 Message Date
troy%netscape.com
8934624982 Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters


git-svn-id: svn://10.0.0.236/trunk@20199 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:42:56 +00:00
kipp%netscape.com
5bebf0d77c Renamed RemoveFrame to RemoveAFrame to reduce compiler warnings
git-svn-id: svn://10.0.0.236/trunk@19695 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:27:18 +00:00
karnaze%netscape.com
f728c86270 work in progress for table visibility=collapse
git-svn-id: svn://10.0.0.236/trunk@19604 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:54:32 +00:00
kipp%netscape.com
4e355995e6 Spanked away SizeOf methods and nsIListFilter
git-svn-id: svn://10.0.0.236/trunk@17895 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-16 00:00:50 +00:00
kipp%netscape.com
c3040176bf Used revised version of nsContainerFrame that uses an nsFrameList instead of a raw nsIFrame*
git-svn-id: svn://10.0.0.236/trunk@17883 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 22:52:05 +00:00
troy%netscape.com
ecc9f6f19d Removed the content-parent frame pointer. Now we just have the one geometric
parent


git-svn-id: svn://10.0.0.236/trunk@17702 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 05:16:23 +00:00
troy%netscape.com
641be3028f Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"


git-svn-id: svn://10.0.0.236/trunk@17201 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-05 23:31:18 +00:00
buster%netscape.com
82750b9744 fixed a bug in fixed layout initial reflow with spanning cells
git-svn-id: svn://10.0.0.236/trunk@17077 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-03 19:20:13 +00:00
troy%netscape.com
c22f41cbf9 Changed width/height constraints in nsHTMLReflowState struct
git-svn-id: svn://10.0.0.236/trunk@16998 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-30 17:50:00 +00:00
troy%netscape.com
9a7f94d20b Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code


git-svn-id: svn://10.0.0.236/trunk@16924 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-29 03:38:16 +00:00
buster%netscape.com
f0d639e1bc 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.


git-svn-id: svn://10.0.0.236/trunk@16742 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-21 06:38:18 +00:00
kipp%netscape.com
eaee82d4b3 Revised frame Paint API
git-svn-id: svn://10.0.0.236/trunk@16666 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-18 15:54:23 +00:00
troy%netscape.com
70e0a8cddb Fixed a crash when display www.sjmercury.com paginated, because we thought
we could re-use our cached cell desired info and we couldn't because there
was a next-in-flow frame and so we needed to reflow the cell frame and pull-up
its next-in-flow child frames


git-svn-id: svn://10.0.0.236/trunk@16496 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:41:57 +00:00
troy%netscape.com
a8a9f7aeaa Changed SetRowIndex() to be inline and non-virtual
git-svn-id: svn://10.0.0.236/trunk@16494 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 04:31:38 +00:00
troy%netscape.com
45e2d974e8 Some improvements to the row splitting code
git-svn-id: svn://10.0.0.236/trunk@16490 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 03:46:03 +00:00
troy%netscape.com
e02d2dc1c0 Work-in-progress for splitting of table row frames
git-svn-id: svn://10.0.0.236/trunk@16442 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 16:39:09 +00:00
buster%netscape.com
be457e5620 fixed a minor bug in incremental reflow where the reflow state's "widthConstraint" wasn't getting set
git-svn-id: svn://10.0.0.236/trunk@16268 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-11 18:54:58 +00:00
buster%netscape.com
415d59aa67 tables can now have independent horizontal and vertical cell spacing
("cellspacing" HTML attribute == "border-spacing" CSS property, go figure...)


git-svn-id: svn://10.0.0.236/trunk@16037 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 06:37:18 +00:00
buster%netscape.com
9b1c517bdf 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


git-svn-id: svn://10.0.0.236/trunk@15824 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 05:27:21 +00:00
troy%netscape.com
01f27b2a31 Added Init() member function to nsIFrame
git-svn-id: svn://10.0.0.236/trunk@15682 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:31:43 +00:00
wtc%netscape.com
d45ab8ecf7 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.


git-svn-id: svn://10.0.0.236/trunk@15625 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:45:20 +00:00
buster%netscape.com
37ca805909 bug 1520 (www.mirabilis.com)
the problem was the way table layout apportioned height from a rowspanning cell.
Now, we do 2 things correctly:
1) we handle rows with rowspanning cells and no other cells.
2) we divide the height of a rowspanning cell proportionately to the rows spanned, where the proportion is defined by
the max height of a cell in that row that has no effective rowspan.

the partial fix for bug 1431 has to do with dividing width between percent-width and fixed-width columns in the same
table. You won't see any better layout for this page (ww.boston.com) as a result of the code I added.  The rest of this
fix is a bit risky, so I'm waiting until after stability push.


git-svn-id: svn://10.0.0.236/trunk@15257 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 19:41:33 +00:00
buster%netscape.com
3c5a5e590a changed the logic for reflowing cells whose height is changed due to a
height attribute.


git-svn-id: svn://10.0.0.236/trunk@15187 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:07:40 +00:00
buster%netscape.com
6f5b201dbe implemented table height algorithms. also made a slight modification to
the way a table finds its container's width.


git-svn-id: svn://10.0.0.236/trunk@14973 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 01:01:25 +00:00
kipp%netscape.com
b527c7f026 Added DumpRegressionData; revised ListTag; added GetFrameName
git-svn-id: svn://10.0.0.236/trunk@14946 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:22:29 +00:00
joki%netscape.com
f1462f4d55 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)


git-svn-id: svn://10.0.0.236/trunk@14864 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:25:26 +00:00
buster%netscape.com
ed61619f6b fixed a tiny bug in handling unexpected frames in a row
git-svn-id: svn://10.0.0.236/trunk@14521 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 21:04:41 +00:00
troy%netscape.com
1c0da71da3 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list


git-svn-id: svn://10.0.0.236/trunk@14333 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 06:05:32 +00:00
troy%netscape.com
cdf69643a6 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.


git-svn-id: svn://10.0.0.236/trunk@14289 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 19:40:27 +00:00
buster%netscape.com
96b01811a9 fixed the bug where events were not getting passed down to content inside
of cells with rowspans.  Basically, I just override HandleEvent() in nsTableRowGroupFrame
to ask nsTableRowFrame::Contains(), rather than the default action which is to
just use the child's rect.


git-svn-id: svn://10.0.0.236/trunk@14218 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 00:36:37 +00:00
buster%netscape.com
d2ee90c6f6 removed some inefficiencies in finding the parent table frame.
Now the parent table frame is cached in the reflow state.


git-svn-id: svn://10.0.0.236/trunk@14097 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 20:09:19 +00:00
peterl%netscape.com
93d3fcc553 sync to style resolution api changes
git-svn-id: svn://10.0.0.236/trunk@14009 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-03 20:33:43 +00:00
buster%netscape.com
1d02eeaa85 fixed rowspan/cell height problem where subsequent rowspanning cells can
effect previous cell heights.


git-svn-id: svn://10.0.0.236/trunk@13889 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-02 18:32:14 +00:00
buster%netscape.com
1249f0b7be implemented basic attribute changed handling. most things currently work, those that don't will work better after Peter
lands some style context resolution changes.


git-svn-id: svn://10.0.0.236/trunk@13764 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 23:08:34 +00:00
buster%netscape.com
cf08e060ad some extremely preliminary work for styleChanged incremental reflow
git-svn-id: svn://10.0.0.236/trunk@13722 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 07:57:44 +00:00
michaelp%netscape.com
29bd495725 changes to support nsIRenderingContext that conforms to COM conventions.
git-svn-id: svn://10.0.0.236/trunk@13703 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 02:08:25 +00:00
buster%netscape.com
ebc6d89a67 fixed bug 1180 (mozilla.org) and all tables that have nonsense colspans
git-svn-id: svn://10.0.0.236/trunk@13459 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-26 18:42:22 +00:00
buster%netscape.com
67cffb963d fixed bug 1112 - form submission within a table sometimes doesn't work
because the form doesn't get a reflow command.  Now it does.


git-svn-id: svn://10.0.0.236/trunk@13378 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-23 17:24:57 +00:00
buster%netscape.com
37467e85ac just debug info
git-svn-id: svn://10.0.0.236/trunk@13336 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-22 21:59:13 +00:00
buster%netscape.com
065cfb55ee fixed a bug where columns were not always created as needed during incremental appends
added some extra debugging and support methods


git-svn-id: svn://10.0.0.236/trunk@13305 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-22 05:27:11 +00:00
buster%netscape.com
cf798f296d fixed several incremental reflow bugs
git-svn-id: svn://10.0.0.236/trunk@13285 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-21 22:29:00 +00:00
buster%netscape.com
f3b963f1b8 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


git-svn-id: svn://10.0.0.236/trunk@13210 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-20 20:05:44 +00:00
buster%netscape.com
75468d7b44 all containers now decend from nsHTMLContainerFrame
all "unknown frame" incremental reflow support methods now
replaced with nsHTMLContainerFrame::AddFrame and ::RemoveFrame


git-svn-id: svn://10.0.0.236/trunk@13209 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-20 17:45:07 +00:00
buster%netscape.com
066a8fdc3f incremental reflow now includes insert/append/delete cell
git-svn-id: svn://10.0.0.236/trunk@13201 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-20 15:59:56 +00:00
buster%netscape.com
4a9bcccc01 lots of work for incremental reflow when the target frame is a table frame
git-svn-id: svn://10.0.0.236/trunk@12807 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-14 16:32:45 +00:00
kipp%netscape.com
3af8f78a16 Added an nsIPresContext& to html-reflow-state's ctors and used it to implement better percentage width/height handling
git-svn-id: svn://10.0.0.236/trunk@12575 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-12 14:48:02 +00:00
troy%netscape.com
ab9971c67b Removed GetContentIndex() from nsIFrame
git-svn-id: svn://10.0.0.236/trunk@12307 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-08 20:35:16 +00:00
troy%netscape.com
f910aa1e8b Changed ReflowChild() to send the WillReflow() notification as well
git-svn-id: svn://10.0.0.236/trunk@11982 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-06 00:27:22 +00:00
troy%netscape.com
31a923050a 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()


git-svn-id: svn://10.0.0.236/trunk@11891 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-05 00:58:32 +00:00
buster%netscape.com
68bbfa7e34 minor interface cleanup
git-svn-id: svn://10.0.0.236/trunk@11797 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-02 20:36:35 +00:00