Commit Graph

457 Commits

Author SHA1 Message Date
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
atotic
f125653c3e First Checked In. 1998-06-24 01:41:16 +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
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
2a5b7ac3b2 Changed TextFrame to implement ContentChanged() notification and generate
a reflow command
1998-06-20 00:04:22 +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
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
2d47074d07 Changed RootContentFrame to correctly set the reflow reason for the
initial reflow
1998-06-12 03:02:15 +00:00
karnaze
0ccd357a8f initial support for <iframe> 1998-06-11 16:46:33 +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
troy
66b6882d23 Added nsIReflowCommand interface 1998-06-09 04:51:44 +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
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
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
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
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
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
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
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
cc0ee570ee Made a subclass of nsContainerFrame to deal with PropogateContentOffsets because placeholders contain pseudo-frames 1998-06-04 17:52:02 +00:00
kipp
382a176fe8 Added code to do ebina style margins; perform horizontal alignment and relative positioning for blocks 1998-06-04 17:51:27 +00:00
kipp
c8f38f4ede Log view creation when it's done; create view when child and parent opacities differ 1998-06-04 17:50:53 +00:00
kipp
b6726ddcb7 Draw a different colored border when showing visual frame boundaries if the frame has a view; only draw if rectangle has area; create scroll frame when requested stylistically 1998-06-04 17:50:19 +00:00
kipp
e3bb53161d Added mPrevMarginSynthetic flag 1998-06-04 17:49:29 +00:00
kipp
e6457a74ec Added a hack to only do incremental painting for the block whish is reflowing the html BODY; improved trace msgs; added code to collapse into nothingness empty blocks 1998-06-04 17:49:15 +00:00
kipp
6b1e29aa2c Add scroll frame to build 1998-06-04 17:48:08 +00:00
kipp
fad8e7548d new 1998-06-04 17:47:49 +00:00
kmcclusk
700d4dd6f8 Added nsLineLayout.cpp to linux makefile 1998-06-03 21:59:53 +00:00
kipp
8e9e2049c7 Fixed install bug on unix 1998-06-03 20:50:02 +00:00
kipp
a8a149cb50 Install broke-image.gif 1998-06-03 18:56:45 +00:00
kipp
411f94f0a8 Avoid scaling image when rendering the broken-image image 1998-06-03 18:56:11 +00:00
kipp
6df0b683f0 new 1998-06-03 18:31:14 +00:00
kipp
1fa3083a46 Fixed so that document still gets set even when notify is false 1998-06-03 18:31:07 +00:00
kipp
9a2095a7f5 Fixed up usage of insert/append/remove/replace api return values in dom methods 1998-06-03 18:09:17 +00:00
kipp
a5e8fccf79 When root content frame doesn't have any children make sure the aDesiredSize out parameter is properly setup 1998-06-03 17:44:23 +00:00
kipp
23f0bd06ee Fixed logging messages to say Reflow not ResizeReflow 1998-06-03 15:57:39 +00:00
kipp
aa7da9b898 Print out view during listings 1998-06-03 15:57:24 +00:00
kipp
bdcfe7d55f Wrap created frames in a view if necessary 1998-06-03 15:57:08 +00:00
kipp
a749574762 Added GetLoadImageFailed method 1998-06-03 15:56:50 +00:00
kipp
1c6861fba0 Create view for the image always; update to use new API's; use nsHTMLFrame to create view 1998-06-03 15:56:40 +00:00
kipp
d97f2b9aa8 Implement stubs for revised insert/delete/remove/append api's 1998-06-03 15:56:15 +00:00
kipp
00e2688516 disable notifies during synthetic content insertion 1998-06-03 15:55:49 +00:00
kipp
2febe0edb4 Implement revised COMized API 1998-06-03 15:54:57 +00:00
kipp
138dca2e43 Print out view during listings; try to support broken image handling better 1998-06-03 15:52:01 +00:00
kipp
f7b56628c8 Print out views during listings 1998-06-03 15:51:17 +00:00
kipp
8308f1bd45 Implement ListTag; print out view during listings 1998-06-03 15:50:58 +00:00
kipp
51129651d4 Added nsHTMLFrame to build 1998-06-03 15:49:09 +00:00
kipp
9460911cbf new 1998-06-03 15:49:00 +00:00
troy
9deea435e6 Initialized nsBlockReflowState::mStyleSizeFlags to 0 1998-06-03 02:27:39 +00:00
troy
bc86a5f750 Changed Paint() to use GetCoordValue() instead of GetIntValue() 1998-06-03 00:11:15 +00:00
troy
50a9cf0e4b Changed GetReflowMetrics() to initial maxElementSize to (0,0) 1998-06-02 23:57:03 +00:00
kipp
71956a68ac removed 1998-06-02 16:33:52 +00:00
troy
26602e0734 Turned on incremental painting 1998-06-02 05:29:44 +00:00
troy
a2fd8036ca Fixed a problem that was causing a crash 1998-06-02 02:11:26 +00:00
kipp
d2caf8b43e Make bullets transparent to whitespace compression 1998-06-02 01:43:02 +00:00
kipp
9176bca6d6 Set first child during reflow unmapped; leave white space compression flag alone for zero sized frames 1998-06-01 23:39:40 +00:00
kipp
29847f56c9 Map DIR attribute into style 1998-06-01 23:38:55 +00:00
kipp
f7574b4cbd Fixed block frame Clear method to work properly 1998-06-01 23:38:40 +00:00
kipp
9be24b0fac Added SetFirstChild; made line layout a friend of block frame 1998-06-01 23:37:55 +00:00
troy
63d19a37ca Changed nsLeafFrane's GetdesiredSize() to not pass in the max size
since it's now part of nsReflowState
1998-06-01 23:31:30 +00:00
kipp
4222da36de Support nsILinkHandler::OnOverLink 1998-06-01 20:55:10 +00:00
troy
a63afc80fc Work in progress for floaters to handle percentage based
width/height
1998-06-01 19:56:58 +00:00
troy
99a5451cee Added some support for percentage based width/height. Currently only works
for the initial reflow
1998-06-01 19:52:53 +00:00
kipp
cefa24d0c1 Updated to new GetDesiredSize api's (so that percentage width's could be properly calculated) 1998-05-30 21:21:11 +00:00
kipp
89fa391100 fixed value to string for percentages to include the '%' 1998-05-30 21:20:07 +00:00
kipp
b13aa91034 Removed dead code 1998-05-30 21:19:36 +00:00
kipp
acae2baa96 Updated to new GetDesiredSize API; reworkd width handling 1998-05-30 21:19:11 +00:00
kipp
1ce91917a8 Use new cssLayout api 1998-05-30 21:18:32 +00:00
kipp
014fd2716d Use new mPendingBreak state 1998-05-30 17:46:11 +00:00
kipp
ea63db96a3 Support BR tags in inline frames 1998-05-30 17:45:46 +00:00
kipp
9191e6894f Partial support for BR clear behavior 1998-05-30 17:45:15 +00:00
kipp
d7b2db76d0 Cleaned up; use new slot in nsLineLayout state to support clear semantics 1998-05-30 17:44:50 +00:00
kipp
3a6dc218b6 NS_IMETHOD'd some of the API's 1998-05-30 01:36:47 +00:00
kipp
0a09bfc52f NS_IMETHOD'd some of the API's; rewrote insert/delete/append/replace dom methods so they actually work 1998-05-30 01:36:00 +00:00
kipp
55fb96306e Add attributes to result in ToHTML 1998-05-30 01:34:56 +00:00
kipp
7415276d6f Added QuoteForHTML method 1998-05-30 01:34:03 +00:00
kipp
ad65ae2c8c process DIR attribute and lang attribute 1998-05-30 01:32:50 +00:00
kipp
d25f654f17 updated 1998-05-30 01:32:10 +00:00
troy
a4f359a574 Placeholder now wraps container content in a body pseudo frame 1998-05-29 23:12:26 +00:00
troy
710593c695 Changed ComputeAvailSpaceRect() to handle the 'OccupiedMultiple' case 1998-05-29 23:05:12 +00:00
troy
7a485fcc40 Changed nsReflowState structs to be linked together 1998-05-29 20:36:05 +00:00
kipp
24a708a050 Consolidated list handling state variables 1998-05-29 18:25:14 +00:00
kipp
80e1675e3e Disabled assertions for now (sigh); removed DoResizeReflow and collapsed it into Reflow 1998-05-29 02:34:19 +00:00
kipp
a73cb55e80 Disabled assertions for now (sigh) 1998-05-29 02:34:02 +00:00
kipp
8bf7e83385 Removed some unused list layout cruft 1998-05-29 02:33:50 +00:00
kipp
c76134da19 nuked 1998-05-29 02:18:17 +00:00
kipp
59784b7f81 Get initial reflow state set right during child reflow; support list bullets directly 1998-05-29 02:15:46 +00:00
kipp
0ad4885eb9 Pass on initial reflow to ProcessInitialReflow 1998-05-29 02:15:00 +00:00
kipp
47b716e3b4 Added bullet creator 1998-05-29 02:14:41 +00:00
kipp
12ecea6824 Revised image loader API slightly 1998-05-29 02:14:30 +00:00
kipp
a5ddf1f970 Revised image loader API slightly and used it to setup url spec via src attr 1998-05-29 02:14:17 +00:00
kipp
e34cb470d5 stub out IsSynthetic API 1998-05-29 02:13:50 +00:00
kipp
8bb1a77086 Added initial reflow hook; setup list bullets using it 1998-05-29 02:13:25 +00:00
kipp
3e79bff40b Added initial reflow hook 1998-05-29 02:13:13 +00:00
kipp
5e78243075 Treat list-item like block when creating frames 1998-05-29 02:12:59 +00:00
kipp
fd620819d3 Assert that reflow reason is correct 1998-05-29 02:11:50 +00:00
kipp
b9d5409399 Added list state for line layout 1998-05-29 02:11:38 +00:00
kipp
16955787c4 Set list state in block reflow state for line layout; assert that reflow reason is correct; pass initial reflow into ProcessInitialReflow hook 1998-05-29 02:11:27 +00:00
kipp
cccee9e040 Removed nsListItemFrame and added nsHTMLBullet 1998-05-29 02:10:51 +00:00
kipp
7324c17c8c new 1998-05-29 02:01:43 +00:00
buster
aad54b07f6 set the groundwork for handling COLS attribute, and attributes on COLGROUP and COL tags. WIP.
set the groundwork for handling percentage-width tables.  Troy is adding a hook for me to get the correct width info from the parent.  WIP.
1998-05-28 21:39:22 +00:00
troy
b8095d0814 Added some more WillReflow() calls 1998-05-28 20:12:02 +00:00
kipp
8e2d9f2551 Added STYLE= support (partially) 1998-05-28 19:44:36 +00:00
troy
d6ceb1bcea Changed VerifyTree() to check that NS_FRAME_IN_REFLOW isn't set 1998-05-28 19:00:31 +00:00
troy
27c2f0230b Added WillReflow() calls around reflowing of child frame 1998-05-28 18:37:56 +00:00
kipp
fb946f0303 Default alignment of HR's is center 1998-05-28 17:10:17 +00:00
kipp
d76ff4688e Support sizing properly; support width/height css (and attribute) style; elminate manual attribute storage 1998-05-28 17:05:39 +00:00
troy
bc548de161 Make sure we set the (x,y) before reflowing the frame 1998-05-28 05:41:59 +00:00
troy
fa0cc22098 Changed Paint() to not check if the frame is a pseudo frame 1998-05-28 04:38:28 +00:00
troy
4910a3a407 Added 'ns' prefix to class name 1998-05-28 02:37:37 +00:00
kipp
e3c2b23d0a Use revised HorziontallyPlaceChildren api 1998-05-28 02:01:50 +00:00
kipp
a51ed32383 Set x,y coordinate of frame before reflowing it 1998-05-27 22:24:57 +00:00
kipp
a164d4ab41 Use new line layout struct; pass in word break info to line layout 1998-05-27 21:07:30 +00:00
kipp
a69a1eb394 Moved certain line layout state into a state struct that can be saved/restored for word breaking 1998-05-27 21:07:10 +00:00
kipp
739607faa8 Moved certain line layout state into a state struct that can be saved/restored for word breaking; updated code to use it; fixed up split line logic to use state to compute push count; added in word breaking logic; eliminated old word break code 1998-05-27 21:06:55 +00:00
kipp
43d9780a05 Added DidFit/CanFit predicates; removed cruft 1998-05-27 21:06:03 +00:00
kipp
ff32f375c6 Removed cruft; fixed to use canfit/didfit predicates that check on word-breaking state; fixed long standing bug with last-content-complete in pullup code 1998-05-27 21:05:47 +00:00
kipp
7435c759b9 Updated to use lineLayout struct changes 1998-05-27 21:05:13 +00:00
kipp
05ea401f56 nop 1998-05-27 21:04:53 +00:00
michaelp
b5140d2751 added support for front-to-back view rendering. 1998-05-27 02:13:28 +00:00
peterl
9067bd0670 added visibility style attribute
moved attributes from position to display struct
1998-05-26 23:15:47 +00:00
kostello
cb198187a9 Moved Get3DColors from HRPart to CSSRendering. 1998-05-26 20:52:12 +00:00
troy
3ea1d2d8e3 Merged ResizeReflow() and IncrementalReflow() into one Reflow() member function 1998-05-25 17:31:49 +00:00
kipp
eb7c893d4f Fixed windows cvpack problem 1998-05-22 18:41:08 +00:00
kipp
483d1c66ad Support LI's with padding instead of UL padding 1998-05-22 18:38:11 +00:00
kipp
8e4689245f Removed some dead code; added code to DidReflow children at a good spot 1998-05-22 18:37:49 +00:00
kipp
52a57efacd Removed some includes 1998-05-22 18:37:25 +00:00
kipp
abe10706b7 Removed an include 1998-05-22 18:37:15 +00:00
kipp
9094e7ca15 Declare nsStylePosition 1998-05-22 18:37:04 +00:00
troy
6204c78831 Changed splittable enum to be bit flags 1998-05-22 04:54:11 +00:00
troy
a1ab3d3e9a Changed the nsBandTrapezoid::State enum values to conform to the coding
standard
1998-05-22 04:03:14 +00:00
troy
d0e4da316d Some work in progress for incremental floaters 1998-05-22 02:38:41 +00:00
kipp
2addaf04c8 disabled reflow-mapped-child for now 1998-05-21 16:29:20 +00:00
kipp
7a14b3c74d Not quite functional handling of line state during GetReflowMetrics 1998-05-21 16:12:31 +00:00
kipp
460f3aac59 better handle reflow avoidance; factored align children slightly different so that more code is shared between ResizeReflow and IncrementalReflow; fixed more cases where reflow is required 1998-05-21 16:12:10 +00:00
kipp
d0c79cf1df Added a few more fields to better handle reflow avoidance; factored align children slightly different so that more code is shared between ResizeReflow and IncrementalReflow 1998-05-21 16:11:29 +00:00
peterl
7168f94691 Changed GetStyleData to use an enum instead of an nsID 1998-05-21 02:34:13 +00:00
kipp
32a594133f Disable reflow optimizations for now 1998-05-20 21:51:51 +00:00
troy
6d72ec886b Cleaned up performance 1998-05-20 21:40:00 +00:00
kipp
a2e476cd11 Add in will/did reflow calls; add in tracing calls too 1998-05-20 16:28:05 +00:00
kipp
bd4c33187c Use new tracing macros; add in ReflowMappedChild to avoid reflowing children 1998-05-20 16:27:46 +00:00
kipp
a7357787d6 Use new tracing macros and verify-tree-enable 1998-05-20 16:27:22 +00:00
kipp
4478350128 Added in mDeltaWidth to block reflow state 1998-05-20 16:26:46 +00:00
kipp
299a819b30 Fixed GetReflowMetrics to return something; use new tracing methods and verify-tree-enable; compute delta width for line layout logic 1998-05-20 16:26:34 +00:00
kipp
9cf0e6fdfb GetReflowMetrics now updates the reflow state 1998-05-20 16:25:40 +00:00
peterl
f589d457b0 added pseudo-class atoms 1998-05-19 00:08:16 +00:00
peterl
c440da74c3 added pseudo style support 1998-05-18 21:06:33 +00:00
kipp
f51cf58f63 Print out state when non-zero 1998-05-18 16:53:09 +00:00
kipp
14b025d540 Call WillReflow before reflowing children 1998-05-18 16:52:57 +00:00
kipp
6b6f893f40 dump out state and next-in-flow/prev-in-flow conditionally 1998-05-18 16:52:41 +00:00
karnaze
8939828111 initial support for <input type=file>, combo box use of widget init data for sizing 1998-05-18 16:39:42 +00:00
kipp
f738f9e8a0 nuked 1998-05-14 02:46:28 +00:00
kipp
280ccad41e Fixed up code that wasn't using the nsReflowStatus constants defined in nsIFrame.h 1998-05-14 00:49:46 +00:00
peterl
02a464b6c3 added style atom 1998-05-13 23:42:40 +00:00
peterl
7904fe7c25 remove spacing cache invalidate 1998-05-13 22:39:41 +00:00
karnaze
68b9679002 more select/option support 1998-05-13 17:43:35 +00:00
kipp
7b6e94cec4 Fixed coord to be setup properly 1998-05-13 00:33:34 +00:00
kipp
51fdf4da25 Fixed ptr compilation bug 1998-05-13 00:13:09 +00:00
kipp
186c393da1 Removed unused variable 1998-05-13 00:12:54 +00:00
kipp
0ed8466178 Removed unused variable; fixed assingment into error return status 1998-05-13 00:12:40 +00:00