Commit Graph

634 Commits

Author SHA1 Message Date
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
buster
3fe1fe2844 made tables quiet again 1998-06-01 21:07:56 +00:00
kipp
85370222ed Removed some debug printfs 1998-06-01 20:55:28 +00:00
kipp
4222da36de Support nsILinkHandler::OnOverLink 1998-06-01 20:55:10 +00:00
buster
3086966c54 much better fixed and percentage width layout 1998-06-01 20:21:05 +00:00
troy
a63afc80fc Work in progress for floaters to handle percentage based
width/height
1998-06-01 19:56:58 +00:00
kipp
5fda0b28cd updated 1998-06-01 19:53:38 +00:00
kipp
a244a4fe53 Updated LoadURL API to take an nsIStreamListener 1998-06-01 19:53:27 +00:00
kipp
b328c87dfc Updated LoadURL API to take an nsIStreamListener; pass on listener to parser 1998-06-01 19:53:19 +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
db0df5f7c3 Revised LoadURL to take an nsIStreamListener; removed old document load hooks 1998-06-01 19:52:39 +00:00
troy
35e6293e4b Added a comment to GetStyleDimension indicating that computed percentage
values are being handled incorrectly
1998-05-31 04:45:21 +00:00
troy
d870f336d8 Fixed an assert 1998-05-30 23:56:28 +00:00
kipp
669da95542 Revised API so that correct percentage width/height could be computed 1998-05-30 21:22:17 +00:00
kipp
9a2d1c3765 Updated a few table API's so that percentage width could be properly computed 1998-05-30 21:21:51 +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
kipp
33f579eb13 enter/exit reflow lock automatically in content changed (temporary maybe) 1998-05-30 01:31:04 +00:00
kipp
7baf3bcb5b new 1998-05-30 00:44:38 +00:00
troy
a4f359a574 Placeholder now wraps container content in a body pseudo frame 1998-05-29 23:12:26 +00:00
troy
b33d67da1e Changed ReflowChild() to handle the 'OccupiedMultiple' case 1998-05-29 23:06:08 +00:00
troy
710593c695 Changed ComputeAvailSpaceRect() to handle the 'OccupiedMultiple' case 1998-05-29 23:05:12 +00:00
karnaze
4de74d7ac1 event improvements 1998-05-29 22:44:13 +00:00
michaelp
739c83297e fixed over-releasing of views in DeleteFrame(). 1998-05-29 22:36:21 +00:00
buster
a58280cec0 some proportional column balancing now works
the <TABLE> COLS attribute is supported via proportional column balancing.
1998-05-29 22:08:19 +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
42884324fa pass url into image loader 1998-05-29 02:16:46 +00:00
kipp
e6a44c24b8 Use outside bullets again 1998-05-29 02:16:29 +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
b31171c2f2 IMplement new content method 1998-05-29 02:10:27 +00:00
kipp
66d92c9bb7 Clear both frame-in-reflow and frame-first-reflow bits on finished didreflow 1998-05-29 02:10:12 +00:00
kipp
cb30a1fea6 Added a new content method to see if a piece of content is synthetic or not 1998-05-29 02:09:38 +00:00
kipp
e4431fe3a2 Added another state bit 1998-05-29 02:09:18 +00:00
kipp
7324c17c8c new 1998-05-29 02:01:43 +00:00
troy
5cecc918fd Changed it so we don't position or size the view while in the middle
of reflowing. Now that's done in DidReflow()
1998-05-28 21:55:13 +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
3b43bc8d84 Use mOpacity as a float in the nsStyleColor struct 1998-05-28 19:55:42 +00:00
kipp
b4112aff11 Set value to 1.0F as a float 1998-05-28 19:55:15 +00:00
kipp
5aa4fad9a2 Simplified mOpacity to a float 1998-05-28 19:54:50 +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
kipp
203aea26bd Port to new parser API 1998-05-28 18:40:23 +00:00
kipp
a88bdc9acc Revised argument handling and added code to test the ParseDeclarations css parser capability 1998-05-28 18:40:07 +00:00
kipp
b20743e28a Revised API to be com-ish and added ParseDeclarations; implement ParseDeclartions using basic declaration handling routines 1998-05-28 18:39:42 +00:00
kipp
d9e2ce27b1 Revised API to be com-ish and added ParseDeclarations 1998-05-28 18:39:08 +00:00
troy
27c2f0230b Added WillReflow() calls around reflowing of child frame 1998-05-28 18:37:56 +00:00
kostello
a080d1c9b5 Fix crasher loading mozilla.org page 1998-05-28 18:31:44 +00:00
kipp
fb946f0303 Default alignment of HR's is center 1998-05-28 17:10:17 +00:00
kipp
74805620cf Fixed infinite loop in GetStyleSize code 1998-05-28 17:06:43 +00:00
kipp
f285347b6d Eliminated bogus style from HR rule 1998-05-28 17:06:15 +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
karnaze
2c631dde65 fix bug in get submission 1998-05-28 16:00:15 +00:00
rickg
31e784bf95 fixed class name crasher 1998-05-28 07:38:28 +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
72d77edcbb Added style support for the new css opacity property 1998-05-28 02:02:43 +00:00
kipp
f8872f1a9f Revised HorizontallyPlaceChildren API to support a default alignment based on the layout direction 1998-05-28 02:02:22 +00:00
kipp
e3c2b23d0a Use revised HorziontallyPlaceChildren api 1998-05-28 02:01:50 +00:00
kipp
024ff28d3a Use default text alignment; setup opacity properly 1998-05-28 02:01:19 +00:00
kipp
13cab9bf52 Added text_align_default for better direction handling 1998-05-28 02:00:59 +00:00
kipp
51e93a2d77 Added mOpacity to nsStyleColor 1998-05-28 01:59:38 +00:00
kipp
b82103d694 new 1998-05-28 01:58:58 +00:00
kipp
6de497e240 Added a new property 1998-05-28 01:11:30 +00:00
karnaze
c56719fbe8 fixed memory leak from prev checkin 1998-05-28 00:42:26 +00:00
karnaze
dc7da6fe8a gui events store nsISupports; improved forms event handling 1998-05-27 23:58:07 +00:00
kipp
9be967661a Parse (and ignore) important declarations 1998-05-27 23:38:16 +00:00
kipp
1e2925019e new 1998-05-27 23:37:21 +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
kipp
a4ac37270f Only perform horizontal alignment when there is room to do it 1998-05-27 21:04:33 +00:00
karnaze
ace4017e75 removed printf 1998-05-27 21:04:23 +00:00
karnaze
75f0765630 fix irix build 1998-05-27 19:57:03 +00:00
karnaze
f1382417c0 post submission, file content submission 1998-05-27 17:51:41 +00:00
michaelp
b5140d2751 added support for front-to-back view rendering. 1998-05-27 02:13:28 +00:00
buster
11d1544188 fixed case-sensitive include 1998-05-26 23:28:48 +00:00
peterl
613e577b7d added visibility style attribute 1998-05-26 23:17:29 +00:00
peterl
3fd983bcd3 moved attributes around 1998-05-26 23:16:55 +00:00
peterl
9067bd0670 added visibility style attribute
moved attributes from position to display struct
1998-05-26 23:15:47 +00:00
peterl
3ce1b73e85 use context graph for finding contexts 1998-05-26 23:14:56 +00:00
peterl
ef2b8c8f94 cleaned up visibility 1998-05-26 23:14:29 +00:00
peterl
8dea0e7806 reworked up reset code
added child list
1998-05-26 23:14:09 +00:00
peterl
8ab27e1cb9 cleanup 1998-05-26 23:13:26 +00:00
peterl
45e4d76785 moved overflow from position to display struct 1998-05-26 23:13:15 +00:00
peterl
ffff5d5941 documented reset vs inherited attributes
shuffled some attributes around
1998-05-26 23:12:14 +00:00
buster
2104457c96 table width computation using style system (more than it used to, at least) 1998-05-26 22:03:16 +00:00
kostello
e1dc943664 Updated Table Border code to render HTML3.2 compatible borders (no longer using the cool,
CSS borders).
Fixed Table but submitted by Isaac David Guedalia <daniel_sh@gezernet.co.il>.
1998-05-26 20:57:24 +00:00
kostello
843b8a3ff9 Moved Get3DColors from HRPart to CSSRendering.
Modified Border Drawing Code to use Get3DColors for backwards compatibility purposes.
1998-05-26 20:52:59 +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
e5b0ee397f Removed a pile of includes 1998-05-22 18:39:28 +00:00
kipp
ca9dfd762d Move padding out of UL/OL and into LI's that are in UL/OL's 1998-05-22 18:39:11 +00:00
kipp
3505e0b3cc Use new GetVisibleArea API 1998-05-22 18:38:33 +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
kipp
f2ba7b689f Removed includes; updated GetVisibleArea API 1998-05-22 18:36:40 +00:00
kipp
ec47208d0c updated GetVisibleArea API 1998-05-22 18:36:27 +00:00
kipp
8daaf04ddd Removed includes 1998-05-22 18:28:40 +00:00
kipp
b5a42fbb0a Only verify last is complete when enabled 1998-05-22 18:28:29 +00:00
kipp
619abbfb24 Removed unneeded include 1998-05-22 18:28:02 +00:00
kipp
73c89fcb92 Repaired GetVisibleArea API 1998-05-22 18:27:48 +00:00
kipp
74275a09e5 new 1998-05-22 18:27:25 +00:00
jevering
8be66e8b53 Fixed about: URL's from crashing the viewer. 1998-05-22 18:10:08 +00:00
troy
9b54fbae32 Changed reference to reflow command to a pointer to a reflow command 1998-05-22 04:56:27 +00:00