Commit Graph

679 Commits

Author SHA1 Message Date
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
kipp
9d7cab2d27 Made sub/sup look more like navigator 1998-06-29 16:10:41 +00:00
kipp
d16b98213b Fixed bug where percentage width in an unconstrained situation was yielding a bad size 1998-06-29 16:09:44 +00:00
buster
705daa1418 minor tweaks for table layout 1998-06-29 03:09:14 +00:00
kipp
4cbc340e2c Take text content and join it together so reduce the size of the content model 1998-06-27 22:57:52 +00:00
kipp
cc4cdf6b7e Use revised inline reflow status; fixed bug in pre-return status to indicate when continuations are needed after line breaks 1998-06-27 22:57:26 +00:00
kipp
f0202fa3dd Use revised inline reflow status 1998-06-27 22:56:59 +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
troy
09eaa8f230 Changed absolutely positioned elements to have the body as their
geometric parent
1998-06-26 18:49:30 +00:00
kipp
5c09f13bd0 Make a title object that's a child of the head when we get a title 1998-06-26 16:12:51 +00:00
kipp
c33d44d4ed Added NS_NewHTMLComment and NS_NewHTMLTitle 1998-06-26 16:12:22 +00:00
kipp
6eb5fb1cd9 new 1998-06-26 16:11:41 +00:00
kipp
b2066141e4 new files 1998-06-26 16:11:26 +00:00
kipp
794a360e5c Removed stale reference to nsHTMLMeta 1998-06-26 15:15:58 +00:00
kipp
4e73a0df94 Added content directory and moved some code 1998-06-26 15:08:55 +00:00
kipp
b00f7215a5 Eliminated IRIX compiler warnings (and a bug) 1998-06-26 15:07:09 +00:00
peterl
5e48108666 added ! important support 1998-06-26 05:51:55 +00:00
peterl
d1e43f5eac fixed equal weight rule ordering 1998-06-26 05:50:10 +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
vidur
3f8df8346d Hooked up SCRIPT tag evaluation. Added the nsIScriptContextOwner interface. 1998-06-25 22:26:52 +00:00
kipp
689607ad40 Fixed images/form-elements in tables being incorrectly positioned by preventing nested body's from pre-maturely DidReflowing their children 1998-06-25 22:26:35 +00:00
kipp
4d3b8a3643 Change ParseColor to be more compatible with navigator 1998-06-25 21:37:07 +00:00
kipp
91faf6c911 Support text attribute in body tags 1998-06-25 21:36:51 +00:00
kipp
e23973dc33 Fixed irix build bustage 1998-06-25 17:23:32 +00:00
kipp
1a446c2e3f New and improved (?) line layout 1998-06-25 16:33:10 +00:00
kipp
e4f5e7bf4b Added missing include line; minor tidy up as well 1998-06-25 15:01:13 +00:00
kipp
a7d4787477 Made unknown image size be 1,1 twips instead of 0,0 so that other code doesn't eliminate images; added left and right margins around floating images ala ebina 1998-06-25 14:56:46 +00:00
kipp
b3611ffa22 Added CreateFrame method 1998-06-25 14:55:15 +00:00
kipp
b3cf3affc7 Added the same skip-over-non-body-content code that's in the root content frame code 1998-06-25 14:53:45 +00:00
michaelp
ec4811f612 added init() method to prescontext.
creator of prescontext is responsible for initializing pres context.
devicecontext is now init()ed with a nsNativeWidget.
removed hacky X Display stuff from device context and font metrics.
removed hacky code from windows font metrics.
changed nsNativeWindow to be nsNativeWidget.
added more code for compositor back-to-front pass.
improved text performance on X.
changed nsHTMLTagContent.cpp so that it will build with MSVC 4.1.
1998-06-25 04:24:45 +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
atotic
f125653c3e First Checked In. 1998-06-24 01:41:16 +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
karnaze
3074df2576 named <iframe>s, scrolling attribute, more complete test9.html 1998-06-23 22:25:28 +00:00
joki
e820a618d7 Event handling additions for DOM suport. Adding additional event pathway through HandleDOMEvent 1998-06-23 21:53:02 +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
rickg
4b202376f1 added support for doc quality 1998-06-23 01:34:25 +00:00
rickg
68c01dae1a added a new secret argument to Parse() 1998-06-23 00:52:21 +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
2a5b7ac3b2 Changed TextFrame to implement ContentChanged() notification and generate
a reflow command
1998-06-20 00:04:22 +00:00
rods
2d98f633a6 add XP_UNIX size temporary fixes 1998-06-19 20:07:35 +00:00
troy
36e45e1fac Work in progress for incremental reflow 1998-06-19 05:21:45 +00:00
rickg
60ebe042b1 more bug fixes; changed nsHTMLParser to nsParser. 1998-06-19 01:00:27 +00:00
troy
3456471e4f Eliminated nsTableCaptionFrame and now we just use a nsBodyFrame instead 1998-06-19 00:34:12 +00:00
karnaze
505cf9d7ac fixed divide by zero, test9 has sub sub doc. 1998-06-18 18:33:34 +00:00
rods
05c08ed4cb changed AToms to Atoms in include 1998-06-18 13:58:19 +00:00
troy
948d7d756a Fixed a problem with thick left border edges being the wrong thickness 1998-06-18 05:43:32 +00:00
karnaze
126dc3a360 added tst9, improvements to <iframe> 1998-06-18 00:47:18 +00:00
rickg
9150405dab huge refactoring effort; transient style support; tables fixes, and more 1998-06-17 23:13:28 +00:00
troy
b66023d41f Reduced the number of polygon calls 1998-06-17 22:14:20 +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
karnaze
ac7b31acf6 fixed makefile to recognize html/document/public 1998-06-16 22:57:51 +00:00
atotic
12a0dd0ae6 First Checked In. 1998-06-16 22:55:47 +00:00
karnaze
2d970249d6 added 1998-06-16 21:55:52 +00:00
atotic
7eb5972b2a static void nsHTMLTagContent::ParseValueOrPercentOrProportional(const nsString& aString, is not legal C++ inside a class declaration. 1998-06-16 21:45:10 +00:00
atotic
393e51f686 Mac needed a definition of PR_GetEnv 1998-06-16 21:44:38 +00:00
atotic
2b30eaf7bd First Checked In. 1998-06-16 21:39:13 +00:00
karnaze
b9a228a2b2 more <iframe> support 1998-06-16 21:32:54 +00:00
michaelp
60977b0c20 the view manager is now used when manipulating views. 1998-06-16 16:51:01 +00:00
kmcclusk
1b812ba2a7 Added makefile directive to copy ua.css to $(DIST)/bin/res 1998-06-15 23:07:41 +00:00
kipp
7af507cf8e Revised keyword tables 1998-06-15 20:40:27 +00:00
troy
8dbcb4c135 Changed some GetStyleContext/GetStyleData calls to use nsIFrame::GetStyleData
instead. This saves the AddRef/Release overhead
1998-06-14 05:23:59 +00:00
troy
7bbe992c0b Changed some GetStyleContext/GetStyleData pairs to use nsIFrame::GetStyleData
instead
1998-06-14 05:14:17 +00:00
troy
8bfcb70b73 Changed some pairs of GetStyleContext/GetStyleData calls to a single call
to nsIFrame::GetStyleData
1998-06-14 05:00:38 +00:00
troy
1afc3a4b00 Changed a GetStyleContext/GetStyleData pair to use the nsIFrame::GetStyleData
member function instead. This saves a pair of AddRef/Release calls
1998-06-14 04:40:52 +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
2d47074d07 Changed RootContentFrame to correctly set the reflow reason for the
initial reflow
1998-06-12 03:02:15 +00:00
karnaze
0035015744 initial loading of <iframe> documents 1998-06-11 23:29:15 +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
karnaze
0ccd357a8f initial support for <iframe> 1998-06-11 16:46:33 +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
f8b11bcac8 Changed block to do the initial reflow of a floater. Also fixed a problem
with floated tables crashing
1998-06-10 05:33:38 +00:00
kipp
b02da4eaf2 Set maxwordwith whenever we are not wrapping 1998-06-09 17:48:54 +00:00
kipp
f0d910ed4b Set width properly when not wrapping 1998-06-09 17:48:02 +00:00
kipp
944ae7d0f1 Fixed a pending-break clear bug; use new ReflowInlineChild API 1998-06-09 17:47:49 +00:00
kipp
094bbe0290 Added nsIInlineFrame interface 1998-06-09 17:47:20 +00:00
kipp
565dbd1fbe Implement ReflowChild directly so that it uses nsIInlineFrame is available 1998-06-09 17:40:21 +00:00
kipp
a276d8c409 new iids 1998-06-09 17:39:42 +00:00
kipp
56c2b9603b Implement ReflowInlineChild to check for nsIInlineFrame and use it when available 1998-06-09 17:32:52 +00:00
kipp
cacb19b895 Updated reflow-inline-child to handle the new nsIInlineFrame api 1998-06-09 17:32:27 +00:00
kipp
071d132c21 Made BRFrame implement nsIInlineFrame 1998-06-09 17:31:59 +00:00
kipp
0d61200514 Added rules to make TD's, TH's behave more like navigator 1998-06-09 17:31:34 +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
kipp
80f5fb359a Added another tracing log message 1998-06-09 00:49:12 +00:00
kipp
44b669c0f8 Updated tracing messages; fixed bugs where things that shouldn't be pulled up were (blocks, BR's) 1998-06-09 00:48:56 +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
joki
10ffd04c8c Adding new event handling mechanism into raptor. 1998-06-08 00:57:15 +00:00
kipp
92cfe5b226 Made option code more robust 1998-06-06 20:25:11 +00:00
kipp
ca76f69d6c Don't strip trailing whitespace otherwise underlines render wrong; set max element width properly when not wrapping 1998-06-06 01:54:20 +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
kipp
dcc388075e Fixed options to have their text stripped of junk and whitespace compressed before creating the widget 1998-06-06 01:08:43 +00:00
kipp
f1a935eb02 Fixed GetContent/SetContent to be virtual making Option tags provide the proper text content for display 1998-06-06 01:06:52 +00:00
buster
e5144b1a9c clean up, and still better cell width attribute layout 1998-06-05 22:50:03 +00:00
kipp
a69369de69 Revised SizeOf methods to add in nsString's, nsIAtom's and nsVoidArray's properly 1998-06-05 21:50:57 +00:00
kipp
591b2ccd11 Sprinkled SizeOf methods around 1998-06-05 21:06:24 +00:00
buster
f56ca7d23b column widths with cells that span columns now work in most cases, for pixels and percents
not yet implemented for the "constrained" case
1998-06-05 18:11:20 +00:00
kipp
63b4b0d1d0 Use serif instead of times roman directly 1998-06-05 17:53:46 +00:00
kipp
0e01e46467 Added no-wrap support 1998-06-05 17:53:28 +00:00
kipp
9d27a37eb9 Added a reminder 1998-06-05 17:53:11 +00:00
kipp
7d260e253b Set family when PRE VARIABLE is used 1998-06-05 17:53:02 +00:00
peterl
91c5893512 sync up to new style data apis 1998-06-05 06:09:09 +00:00
peterl
2427d97445 added accessor to rules for save code 1998-06-05 06:07:08 +00:00
peterl
119198c615 now track rules by insertion order as well as weighted order
added accessor to rules for save code
1998-06-05 06:06:50 +00:00
buster
9b8b9a672d cells with colspans and width attributes now work correctly 1998-06-05 02:50:46 +00:00
buster
07076ff7cf cell width calculations are working (not for colspan cells yet)
some bug fixes and optimizations
some of the more elaborate test cases are closer to Nav4-compatible
1998-06-05 02:36:25 +00:00
kipp
33afc7a9cc WIP checkin 1998-06-05 01:02:30 +00:00
kipp
6f00af11ec Fixed to return proper reflow status 1998-06-05 00:54:03 +00:00
kipp
9ece420342 Fixed spacer to work again 1998-06-04 23:10:26 +00:00
kipp
aec0b7c844 Verify that mIsBlock is correct 1998-06-04 23:10:15 +00:00
kipp
1426c55b58 Pass through x,y events to an imagemap that is a map but doesn't use a named map 1998-06-04 23:09:52 +00:00
kipp
731de410d3 Removed dead code 1998-06-04 23:08:59 +00:00
kipp
107fb3d1e9 IMplement ReflowBlockChild 1998-06-04 23:08:49 +00:00
karnaze
b289931045 radio, checkbox padding done through MapAttributesInto 1998-06-04 21:34:41 +00:00
kipp
80db5ff5ad Create head part and insert it into the model 1998-06-04 21:33:44 +00:00
kipp
3bf2f977ba Only layout the body child in the root part 1998-06-04 21:33:23 +00:00
kipp
087c0f5463 Added a head part 1998-06-04 21:33:07 +00:00
kipp
193e9322c8 new 1998-06-04 21:32:50 +00:00
kipp
8f956b9c41 Work around body bug with placeholder code to avoid dup free's of placeholder's child frame 1998-06-04 21:04:50 +00:00
kipp
4915c6ac35 Pass through style rules 1998-06-04 21:04:22 +00:00
kipp
14d2243da5 Made absolute frame a container too to work around the pseudo-frame problem 1998-06-04 21:04:07 +00:00
kmcclusk
a1fce54624 Added nsAbsoluteFrame to the make for Linux 1998-06-04 19:49:19 +00:00
kipp
86a147a5f6 Updated tracing; if the body has no children then collapse to nothingness 1998-06-04 18:03:14 +00:00
kipp
8eb86c6579 Eliminate css margins around block elements (so that ebina margins are used instead) 1998-06-04 17:52:22 +00:00