Commit Graph

1506 Commits

Author SHA1 Message Date
pierre%netscape.com
3f9af48eda added nsHTMLGenericContent.cpp + nsHTMLHR.cpp 1998-08-29 01:27:11 +00:00
kipp%netscape.com
595b3252f4 Use -Zi and PDB's for dll creation too 1998-08-28 23:32:47 +00:00
kipp%netscape.com
80a9283964 Stub out new nsIHTMLContent methods 1998-08-28 23:32:27 +00:00
kipp%netscape.com
1302b87842 Added AttributeToString and StringToAttribute methods 1998-08-28 23:31:44 +00:00
kipp%netscape.com
107b4e64b1 Export new HTML-HR factory method 1998-08-28 23:31:28 +00:00
kipp%netscape.com
82e5ea0a85 Stub out StringToAttribute 1998-08-28 23:31:12 +00:00
kipp%netscape.com
04f5a93e36 Implement StringToAttribute; AttributeToString is now public 1998-08-28 23:30:50 +00:00
kipp%netscape.com
c679a3de4a Make AttributeToString abstract 1998-08-28 23:30:22 +00:00
kipp%netscape.com
3a7297b0ef Removed content code and exposed a factory method for creating HR frames; made the HR frame code content neutral 1998-08-28 23:29:36 +00:00
kipp%netscape.com
d0fc3679c2 Added new atoms 1998-08-28 23:29:05 +00:00
kipp%netscape.com
eb4f73dcef Use new factory method for HR's 1998-08-28 23:27:55 +00:00
kipp%netscape.com
651812302d new 1998-08-28 23:27:19 +00:00
kipp%netscape.com
ec3d735ab2 Added new source files to the build 1998-08-28 23:25:56 +00:00
kipp%netscape.com
99da657d8a Use kIHTMLContentSinkIID so that inferior compilers will work 1998-08-28 21:29:50 +00:00
rods%netscape.com
98b6b776be Fixed ref count problem in FindNext (should be able to switch docs now) 1998-08-28 19:55:03 +00:00
rods%netscape.com
4980b2afad Added a couple of data members to the header and cleanup some of the
ref count problems
1998-08-28 18:15:14 +00:00
kipp%netscape.com
05a470d0c4 Spanked hard to support multiple sink contexts; incremental reflow now happens only on WillInterrupt 1998-08-28 16:20:16 +00:00
kipp%netscape.com
a8da89f89a Avoid a crash bug 1998-08-28 16:19:38 +00:00
kipp%netscape.com
9025e2afbd Added a new atom 1998-08-28 16:19:27 +00:00
rods%netscape.com
ab772c2369 Added selection code that is currently ifdef out (but it is needed) 1998-08-28 16:06:22 +00:00
rods%netscape.com
ad87b994a1 Fixed up some of the selection methods 1998-08-28 16:02:33 +00:00
rods%netscape.com
78631b45db Added FindNext method 1998-08-28 15:59:24 +00:00
rods%netscape.com
40296b5ea1 Adjusted the method signatures on most of the Selection methods 1998-08-28 15:58:37 +00:00
rods%netscape.com
3e6872d273 Added FindNext Method for Find/Search 1998-08-28 15:57:59 +00:00
rods%netscape.com
3c8ae291d0 Fixed bugs and adjusted TextFrame to match revised method signatures 1998-08-28 15:56:40 +00:00
rods%netscape.com
4a8c2454f5 Added Find/Search capability and supporting methods 1998-08-28 15:55:31 +00:00
troy%netscape.com
b242b51732 Changed nsIFontCache to conform to XPCOM standards 1998-08-28 05:16:41 +00:00
troy%netscape.com
6cb09b5132 Changed nsIViewManager interface to conform to XPCOM conventions 1998-08-28 04:56:56 +00:00
michaelp%netscape.com
ca017f19d0 DeleteFrame() now takes a pres context. 1998-08-28 03:02:39 +00:00
michaelp%netscape.com
1be78b877e added support for view observer. 1998-08-28 02:54:06 +00:00
michaelp%netscape.com
b595789ff2 DeleteFrame() now takes a pres context. now uses view's setclientdata(). 1998-08-28 02:52:54 +00:00
michaelp%netscape.com
cccee92638 deleteframe() now takes a pres context. 1998-08-28 02:50:17 +00:00
michaelp%netscape.com
342c9f13ca made resizereflow() an ns_imethod. 1998-08-28 02:49:49 +00:00
michaelp%netscape.com
558f6ef045 changed to pass in prescontext to deleteframe(). 1998-08-28 02:49:15 +00:00
troy%netscape.com
cfeab4e543 More changes to nsIDeviceContext interface 1998-08-27 22:45:35 +00:00
pierre%netscape.com
13da22ca6f added nsHTMLLayer.cpp 1998-08-27 22:09:02 +00:00
troy%netscape.com
4b29cb414e API change to nsIDeviceContext 1998-08-27 20:45:56 +00:00
troy%netscape.com
c8e5750085 More API changes to nsIDeviceContext 1998-08-27 20:43:04 +00:00
troy%netscape.com
e0116d3fe9 Another attempt 1998-08-27 20:31:39 +00:00
troy%netscape.com
6d2245e203 Combined GetScrollBarWidth/GetScrollBarHeight into one function
GetScrollBarDimensions
1998-08-27 18:30:55 +00:00
troy%netscape.com
c01afd5fbf Made sure that _I32_MIN is defined (it appears to be a Windows only thing) 1998-08-27 05:28:32 +00:00
troy%netscape.com
0d39ae026f Changed nsIDeviceContext interface to conform [more] with COM conventions 1998-08-27 05:05:03 +00:00
peterl%netscape.com
c10bc7add2 added default attribute handling 1998-08-27 00:57:24 +00:00
peterl%netscape.com
8d66d72540 no longer force unique style contexts 1998-08-27 00:57:05 +00:00
peterl%netscape.com
12d7adf11e remove text attribute processing 1998-08-27 00:56:17 +00:00
peterl%netscape.com
49156048a3 removed hack attibute
removed attribute propogation form rows & row groups
1998-08-27 00:55:30 +00:00
peterl%netscape.com
bd68b9452b added table dir to includes 1998-08-27 00:51:11 +00:00
peterl%netscape.com
a6fe8afb6d added table cell style rule inheritance 1998-08-27 00:50:52 +00:00
peterl%netscape.com
a71cd5de1d reversed rule ordering 1998-08-27 00:49:55 +00:00
peterl%netscape.com
2da00e6501 made col tag be handled as a leaf 1998-08-27 00:48:53 +00:00
peterl%netscape.com
143049029c added td & th 1998-08-27 00:48:06 +00:00
peterl%netscape.com
1361e6230c reversed sheet/rule ordering
added backstop rule count
1998-08-27 00:47:15 +00:00
peterl%netscape.com
0b78c480f4 commented on sheet/rule ordering 1998-08-27 00:46:34 +00:00
peterl%netscape.com
7924ed75b2 added backstop rule count 1998-08-27 00:46:13 +00:00
michaelp%netscape.com
dbd23b1190 killed viewmanager SetRootWindow() call. 1998-08-26 21:24:19 +00:00
buster%netscape.com
4ef0888af9 fixed a minor bug handling tables with COLS attribute 1998-08-26 17:53:47 +00:00
buster%netscape.com
7b6c525170 more content decoupling
support work for style optimizations
fixed a bug in table columns  -- the attribute repeat defaults to 1, not 0
1998-08-26 17:26:38 +00:00
troy%netscape.com
2d3c1481fd Added nsHTMLLayer.cpp 1998-08-26 02:24:18 +00:00
troy%netscape.com
23feb93c16 Work in progress for LAYER tag 1998-08-26 02:23:21 +00:00
troy%netscape.com
84b6735333 Changed ParseValueorPercent() to return a PRBool 1998-08-23 02:10:44 +00:00
troy%netscape.com
b491633bcf Changed ParseValue() to return a PRBool result 1998-08-22 04:55:28 +00:00
troy%netscape.com
3c2ba03cf7 Made sure clipChildren member of widget init data is initialized 1998-08-21 23:06:01 +00:00
joki%netscape.com
46137420c0 Modifying nsIContent's AppendChild -> AppendChildTo to stop conflict with
DOM interfaces.
1998-08-21 21:38:26 +00:00
joki%netscape.com
4182fe9745 Modify mouseover url messages to send empty string when leaving links. 1998-08-21 03:28:44 +00:00
jevering%netscape.com
315a575c78 Moved the ART image hack to the tip. 1998-08-20 22:10:06 +00:00
karnaze%netscape.com
360f6023d3 checked for null form manager & fixed memory leak in win95 hack code 1998-08-20 18:27:13 +00:00
buster%netscape.com
8bbbded0c7 verify that proportionate-width columns (1* format, or COLS attribute)
get sized to at least their minimum width
1998-08-20 17:31:20 +00:00
rpotts%netscape.com
f206c224ca moving 3.23.4.1 to the tip... 1998-08-20 06:16:32 +00:00
scullin%netscape.com
9893a4e5b9 Fix hack incompatibility. 1998-08-20 00:33:26 +00:00
scullin%netscape.com
eea08fe2e2 Move form element hack from branch. 1998-08-20 00:24:29 +00:00
karnaze%netscape.com
3caa200a93 removed calls to DidReflow on browse button and text area 1998-08-19 21:43:46 +00:00
buster%netscape.com
ed605f9f6e fixes a layout bug where subsequent cells in a column when colspans are involved
could select the wrong starting width for the column, causing it to have the
wrong ending width.
1998-08-19 20:41:06 +00:00
buster%netscape.com
1e386bbc7c modified the resize reflow optimization so max element size is returned
if requested without triggering a reflow if the width hasn't changed.
1998-08-19 18:40:33 +00:00
troy%netscape.com
8f260929b1 Re-ordered code that adds loader object to the array of loaders 1998-08-19 18:07:27 +00:00
troy%netscape.com
c3adb596d7 Changed call to UpdateView() to be synchronous. This keeps us from
going re-entrant
1998-08-19 17:45:28 +00:00
buster%netscape.com
2515e08aee improved colspan handling.
cells with colspans and specified widths divide their width provisionally between the columns they span. This provisional division is ammended by any cell in any of the effected columns that:
1) has a colspan=1, and
2) has a width specified
the widths of all other columns must be adjusted for cells like these.  Further complicating matters is that it seems <faith> that if multiple colspanning cells intersect a column and each has a width
specified such that the column would have a different width depending on which is used, only the first such cell is used </faith>.  I can neither confirm nor deny this reading the mozilla code.

I also taught the cell map how to deal with this situation:

 colspan=1 | colspan=2 | colspan=1
 colspan=1 | colspan=2 | colspan=1

This table "really" has 4 columns, but the middle cells are treated as if they have no colspan.
Trust me, it matters.  The original colspan attributes can't simply be thrown away because Mr. DOM
could come along at any time and add/remove a cell that would make them important.
1998-08-19 15:43:51 +00:00
peterl%netscape.com
bb68bab7e9 handle body's marginwidth/height via a special style rule 1998-08-19 01:16:40 +00:00
peterl%netscape.com
82c8546be9 handle marginwidth/height via a special style rule 1998-08-19 01:16:21 +00:00
karnaze%netscape.com
6884445c0a marginwidth, marginheight set in <frame> is passed to sub doc and added to padding 1998-08-18 22:02:23 +00:00
troy%netscape.com
8b23990b90 Changed destructor to Interrupt() image group before realeasing reference 1998-08-18 01:43:35 +00:00
buster%netscape.com
a42be9cf57 fixed nested tables for the case where both parent and child table are %-width,
and the columns are any variety of width types
1998-08-17 23:37:04 +00:00
buster%netscape.com
49d858783e fixed a memory leak where a style context was not being released when
the table cell set the table column's style.
1998-08-17 19:03:36 +00:00
karnaze%netscape.com
40765150cf removed text field and browse button of <input type=text> from content model. 1998-08-17 17:46:08 +00:00
troy%netscape.com
695e20e125 Destructor now releases ref to image maps 1998-08-15 16:25:33 +00:00
troy%netscape.com
af9e04cf14 Added missing NS_INIT_REFCNT() 1998-08-15 03:24:27 +00:00
scullin%netscape.com
39b83242e3 Checked in api changes and some other small changes from the branch. 1998-08-14 23:08:54 +00:00
troy%netscape.com
fadc4d4beb Changed destructor to release reference to child form element, and
changed Release() to not check for external references to child form
elements
1998-08-14 21:03:16 +00:00
troy%netscape.com
98936027ef Changed NS_NewHTMLInputFile() to release reference to onput text and
input browse content objects
1998-08-14 20:36:36 +00:00
buster%netscape.com
c024161837 * migrated and improved some fixes from the branch to the tip
* fixes sample6, yahoo resizing
* added BasicTableLayoutStrategy::ColIsSpecifiedAsMinimumWidth helper function,
which tells us if the given column has a width attribute that means "make me as small as possible"
* nsTableFrame methods now no longer use mCellMap directly, they ask for it from
GetCellMap which gets the cell map from the first-in-flow.  Only the first-in-flow has a
cell map because the cellmap refers to the table as a single object, not to each table frame.
* Likewise, continuing table frames do not call BalanceColumnWidths or SetTableWidth
which are "global" operations.  Responsibility for these lies with the first-in-flow.
1998-08-14 16:16:43 +00:00
troy%netscape.com
358b26c689 Added NS_RELEASE in ProcessTEXTAREATag(). This fixes a problem with
text area content objects being leaked
1998-08-14 05:21:43 +00:00
troy%netscape.com
c161f261c1 Added NS_RELEASE of list box widget interface pointer 1998-08-14 04:45:30 +00:00
troy%netscape.com
c804eb4ad1 Added NS_IF_RELEASE(mAttributes) to destructor 1998-08-14 03:32:39 +00:00
joki%netscape.com
a185078042 Adding more window properties and slightly refCnt declaration. 1998-08-13 23:37:54 +00:00
valeski%netscape.com
f93dea794e 310133 - Injected code into HTMLContentSink::ProcessMETATag() to check for an "http-equiv" header (specifically the Refresh header). If found, an nsIHTTPUrl interface is retrieved so the "http-equiv" header can be added to the url struct. 1998-08-13 20:09:10 +00:00
vidur%netscape.com
824d631d5e Implemented document.location. 1998-08-13 19:08:01 +00:00
joki%netscape.com
c316d58438 Adding url and lineno to script evaluation 1998-08-12 23:37:50 +00:00
joki%netscape.com
3c6cb25a6b Fix script src equals problem when src contained in quotes. 1998-08-12 22:28:50 +00:00
karnaze%netscape.com
73e4145994 fixed destructor problems causing www.goto.com to crash when hitting a link 1998-08-12 21:50:11 +00:00
rods%netscape.com
4d6426e924 Change the calculation of how big the dropdown list should be. The max size
is now 20.
1998-08-12 20:05:25 +00:00
peterl%netscape.com
189579e0f1 made parse color compress whitespace first 1998-08-12 18:28:55 +00:00
kipp%netscape.com
7cfac8916c Use new forwarding macros 1998-08-12 18:00:04 +00:00
vidur%netscape.com
b7ad94a52c Correctly deal with BODY tag BACKGROUND attribute that is an empty string. 1998-08-12 17:51:31 +00:00
troy%netscape.com
9fcc472d50 Fixed leak of an HTML Meta content object 1998-08-12 05:27:21 +00:00
troy%netscape.com
44835d4e51 Made sure event state manager was always released 1998-08-12 05:09:07 +00:00
joki%netscape.com
edb8b34146 Adding partial load event support, removing script context Run_GC method adding partial script error support 1998-08-12 04:56:40 +00:00
troy%netscape.com
d8d09aa319 Eliminated circular reference between table row and table cell 1998-08-12 04:45:17 +00:00
troy%netscape.com
82af4aaaf5 Added release of row group context object 1998-08-12 04:09:43 +00:00
troy%netscape.com
b690d7b15c Eliminated memory leak of a content object in ProcessInitialReflow() when
doing special processing for list-item containers
1998-08-12 03:22:24 +00:00
karnaze%netscape.com
4a849eba9d ref counting, destruction fixes 1998-08-12 02:04:41 +00:00
troy%netscape.com
08a675a1ca Fixed a leak of the HTML title 1998-08-12 01:36:25 +00:00
troy%netscape.com
639e969509 Fixed leak of a bullet content object 1998-08-12 01:26:25 +00:00
troy%netscape.com
46c56f731a Added NS_RELEASE in FlushText() of interface returned from QueryInterface() 1998-08-11 22:44:28 +00:00
karnaze%netscape.com
3d225ad8ac removed references to nsIWebFrame 1998-08-11 21:13:37 +00:00
karnaze%netscape.com
4d747b5c56 put back previous sizing of text fields due to changes in fixed width font 1998-08-11 19:07:25 +00:00
karnaze%netscape.com
6695e6c177 removed nsIWebFrame 1998-08-11 18:52:35 +00:00
buster%netscape.com
fad1e52668 first cut at implementing %-width columns inside of auto-width tables.
This is about 50% done, which covers about 90% of the cases.
1998-08-11 18:42:10 +00:00
kipp%netscape.com
432127395e Work around frame-appended reflows that don't grow the child of the body 1998-08-11 17:38:46 +00:00
karnaze%netscape.com
1c9c06291f added missing NS_RELEASE statements 1998-08-11 16:52:05 +00:00
kipp%netscape.com
1a2351620b Elminated top/bottom margins around center tags 1998-08-11 15:32:12 +00:00
kipp%netscape.com
bcf5a7235b Make sure text at the end of the document is reflowed properly 1998-08-11 00:19:11 +00:00
peterl%netscape.com
bc1110caa7 connected LINKed style sheets 1998-08-10 23:02:39 +00:00
peterl%netscape.com
3276d26bc6 connect marginwidth & marginheight in body tag 1998-08-10 21:50:32 +00:00
rods%netscape.com
3e77497f64 Fixed edge case for selection, selection at starting of line and moving to new content. 1998-08-10 17:46:34 +00:00
kipp%netscape.com
bc2b4662fd Fixed documents w/o titles bug #313016 1998-08-10 17:39:48 +00:00
karnaze%netscape.com
1e4f857439 fixed "return" submission on a single text field 1998-08-10 17:26:20 +00:00
karnaze%netscape.com
6837a9ba6b adjusted sizing for text controls; default control is text; assertion cleanup 1998-08-10 04:28:17 +00:00
joki%netscape.com
ec9313f3d7 Move disassociation of frame from view up from destructor to DeleteFrame to prevent event entrance during destruction 1998-08-10 02:28:23 +00:00
buster%netscape.com
0824132571 percent-width nested tables in fixed-width cells now use the computed
column width if available for computing their own width.
1998-08-10 02:16:18 +00:00
karnaze%netscape.com
2638dac692 added GetMarginWidth, SetMarginWidth, GetMarginHeight, SetMarginHeight to web widget, frameset codes calls it. 1998-08-10 01:01:27 +00:00
joki%netscape.com
b45f46d744 Partial fix for frame based and general memory leaks of webshells and prescontexts 1998-08-09 07:43:22 +00:00
troy%netscape.com
acaa6d2f0e Change to object lifetime management. Views are no longer ref counted 1998-08-08 04:23:33 +00:00
vidur%netscape.com
b1f5f748ae Implemented additional document and form interfaces. Implemented named elements for documents and forms. nsInput now implements nsIDOMHTMLInputElement. 1998-08-07 23:08:00 +00:00
buster%netscape.com
43c4537038 bug #312932. fixes nested tables with percent widths that also have
content with percent widths.
1998-08-07 21:53:27 +00:00
rods%netscape.com
8dace2bf02 Shift click (without first clicking) no longer crashes the viewer 1998-08-07 20:15:36 +00:00
rods%netscape.com
41198541c5 Select All no turns on selection in the document and renders it selected. 1998-08-07 20:14:39 +00:00
troy%netscape.com
a09b9a211e Removed MoveTo() and SizeTo() member functions that were for debug
purposes, and are no longer needed
1998-08-07 18:17:34 +00:00
karnaze%netscape.com
6dd5e7e32f removed overloaded GetAttribute on nsInput 1998-08-07 17:39:27 +00:00
rods%netscape.com
aa71eea6d7 Bug fixes for memory crash, and added blue triangle instead of red line 1998-08-07 16:14:07 +00:00
joki%netscape.com
c947a7da15 Fix mouseover in url messages by initializing event result messages. 1998-08-07 08:11:20 +00:00
joki%netscape.com
c6c0021911 Added support for click event on form buttons 1998-08-07 05:19:07 +00:00
joki%netscape.com
9cb79b1687 Adding window.open method, fixing editormode in release builds, various event fixes 1998-08-07 04:45:03 +00:00
peterl%netscape.com
7c644d95bd fixed processing of font face (preserve original quotes) 1998-08-07 02:17:56 +00:00
peterl%netscape.com
184554a885 save quote char on string tokens 1998-08-07 02:17:10 +00:00
peterl%netscape.com
711e9a2d5e fixed font face support 1998-08-07 02:16:38 +00:00
buster%netscape.com
79c1b74a7a synch with branch
fixed the following bugs: 312653 312656 312655
the fixes were:

1. cells now inherit their bgcolor from the row, if available.  This is the
Nav4 way of drawing row bgcolor, rather than having the row paint its own bgcolor. (Troy, I intend to make this conditional
based on the compatibility mode)

2. colspans across cols that are all specified width no longer try to proportionately
divide the width of the span between the cols.  see http://www.city.net (now it's really fixed, without breaking nested tables in
constrained situations.)  A happy side effect is nested tables in general behave better when constrained.

3. min table sizes are fixed, so min width changes to content now effect the
table correctly during incremental reflow.  This fixes the table layout portion of the bugs on the http://www.aol.com/corp tree.
Rick will check in the other half of this fix soon.  Until then, don't expect to see much improvement.

4. fixed bug 312799.  Table cell now always reserve at least the maxElementSize
of its content, fixing problems when desiredSize<maxElementSize
1998-08-07 02:11:51 +00:00
kipp%netscape.com
ed342c9a6c Fixed embed/flush-text bug #312433 1998-08-07 01:49:12 +00:00
kipp%netscape.com
8a88e31cb1 Landed changes made on branch (bug #312572) 1998-08-06 19:52:48 +00:00
karnaze%netscape.com
a906af34fb implemented border, frameborder attributes in <frameset> 1998-08-06 19:40:37 +00:00
rods%netscape.com
5fccb3fd81 Memory Leak in selection and a crash bug where a stack varible is being deleted. 1998-08-06 19:28:44 +00:00
rods%netscape.com
cc8fe3270d Fixed: Links now work.
Fixed: Selection cursor no longer shows when clicking on a link.
(These are the same fixes as Stability branch bugs 312562 and 312563)
1998-08-06 16:29:45 +00:00