Commit Graph

547 Commits

Author SHA1 Message Date
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
buster
3780538b44 a variety of fixes and optimizations
together with a fix troy just checked in, this makes a lot of real-world tables look a whole lot better
1998-06-03 00:43:53 +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
buster
3fe1fe2844 made tables quiet again 1998-06-01 21:07:56 +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
troy
35e6293e4b Added a comment to GetStyleDimension indicating that computed percentage
values are being handled incorrectly
1998-05-31 04:45:21 +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
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
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
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
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
3b43bc8d84 Use mOpacity as a float in the nsStyleColor struct 1998-05-28 19:55:42 +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
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
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
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
jevering
8be66e8b53 Fixed about: URL's from crashing the viewer. 1998-05-22 18:10:08 +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
buster
aafa0d6ab4 made nsTableCaptionFrame a subclass of nsBodyFrame 1998-05-22 00:05:22 +00:00
kostello
193764594a * Added Support for cell spacing
* NOTE: due to changes in the style system -- things won't look correct right away.
1998-05-21 23:43:18 +00:00
rickg
c13fe13cdd moved to new incremental API 1998-05-21 20:37: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
peterl
745e32a18d made it build on irix 1998-05-20 21:28:36 +00:00
peterl
c33cdeff7c added rule hash table to speed up style resolution 1998-05-20 20:34:17 +00:00
kipp
90e9083b3a Added rule for MULTICOL 1998-05-20 16:28:19 +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
karnaze
57a66855f7 temp hack to test post submission 1998-05-20 00:10:42 +00:00
thom
aa407491f5 fixed compile errors for mac 1998-05-19 23:11:28 +00:00
karnaze
cbc1ada4b8 better layout, sizing of select 1998-05-19 17:51:21 +00:00
peterl
194cc28a2d added pseudo-class rule matching 1998-05-19 00:09:29 +00:00
peterl
f589d457b0 added pseudo-class atoms 1998-05-19 00:08:16 +00:00
peterl
47db0f2192 added pseudo frame support 1998-05-18 21:11:08 +00:00
peterl
0528c87a0a cleaned up list output 1998-05-18 21:10:44 +00:00
peterl
e8e82334f0 pseudo frame support 1998-05-18 21:10:19 +00:00
peterl
0018dab23e correct case of selectors
skip empty selectors
better pseudo-class support
1998-05-18 21:09:43 +00:00
peterl
93ce222761 added pseudo element support 1998-05-18 21:07:54 +00:00
peterl
5119956475 fixed memory leak
fixed uninitialized memory read
1998-05-18 21:07:24 +00:00
peterl
c440da74c3 added pseudo style support 1998-05-18 21:06:33 +00:00
karnaze
1189d589e3 fixed nsInputFile::SizeTo 1998-05-18 18:07:01 +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
kmcclusk
1d7e22a70f Added widget specific init structs 1998-05-14 21:34:08 +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
kipp
f8feba0fad Removed some useless code 1998-05-14 00:49:11 +00:00
peterl
7d16a4af74 added HTML CSS style sheet (for STYLE= attributes) 1998-05-13 23:43:44 +00:00
peterl
02a464b6c3 added style atom 1998-05-13 23:42:40 +00:00
peterl
c7341728eb added HTML CSS style sheet 1998-05-13 23:42:18 +00:00
peterl
7474aa1932 renamed getSupportsValue to getISupportsValue 1998-05-13 23:42:01 +00:00
peterl
df793a8c99 attribute fix for kostello 1998-05-13 22:41:15 +00:00
peterl
89e961b03f fixed bug in parse declaration block, we now discard empty declarations
tweaked position
1998-05-13 22:40:54 +00:00
peterl
8f8eedabf5 fixed position 1998-05-13 22:40:17 +00:00
peterl
7904fe7c25 remove spacing cache invalidate 1998-05-13 22:39:41 +00:00
michaelp
d55497643c added gamma correction methods to the device context. the windows rendering context now
gamma corrects colors. fixed tablecellframe to call the right nsStyleCoord constructor.
1998-05-13 18:15:06 +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
kipp
2eceaceee2 Cast lineReflowStatus before comparing for negative values!; eliminated unused variables 1998-05-13 00:11:51 +00:00
kipp
6433e66bdc Fixed vertical alignment bug: lines that contained bottom aligned objects would add in too much height 1998-05-12 23:53:37 +00:00
kipp
21bdb6a41c Removed dead code 1998-05-12 23:52:45 +00:00
kipp
5f6c659450 Use code in nsHTMLImageLoader to share code and fix image bugs in image buttons; removed some tabs in the source; get image border handled right 1998-05-12 23:52:33 +00:00
kipp
cff0f74180 Removed special code for mWidth/mHeight handling 1998-05-12 23:51:46 +00:00
kipp
432fe2b0c5 Removed mWidth and mHeight; use base class handling of that now 1998-05-12 23:51:30 +00:00
kipp
245009e879 Removed IMG rule 1998-05-12 23:51:09 +00:00
kipp
13d6a1b006 Make image borders work when html attribute is defined 1998-05-12 23:50:54 +00:00
kipp
e8951cc3fd Use nsHTMLImageLoader to share code 1998-05-12 23:50:28 +00:00