Граф коммитов

1587 Коммитов

Автор SHA1 Сообщение Дата
kipp 8de1e92335 Reworked ContentInserted handling 1998-07-03 17:46:44 +00:00
troy a3005d96d4 Changed reflow processing for floaters 1998-06-30 23:19:10 +00:00
troy 08cdd6ebcd Changed anchor frames to forward content notifications to the real frame 1998-06-30 21:35:07 +00:00
kipp 11fba76f60 Use new PropagateContentOffsets API 1998-06-30 20:22:44 +00:00
kipp 9d76dca44e disabled calls to PropagateContentOffsets for now 1998-06-30 20:20:29 +00:00
kipp 7292712c50 Added NS_IS_REFLOW_ERROR; updated reflow status comment to indicate which bits are reserved by nsIFrame API's 1998-06-27 22:54:58 +00:00
kipp cdaedbbf86 Added NS_NewHTMLComment and NS_NewHTMLTitle 1998-06-26 16:12:22 +00:00
kipp 822565e6d7 Removed obsolete justify-reflow method 1998-06-26 15:11:53 +00:00
kipp 396b89b7f9 Added content directory and moved some code 1998-06-26 15:08:55 +00:00
kipp 163249f258 Eliminated IRIX compiler warnings (and a bug) 1998-06-26 15:07:09 +00:00
kipp 4b8864ebbc New and improved (?) line layout 1998-06-25 16:33:10 +00:00
kipp aa980ae438 Assign values to reflow reason so that when printing them numerically it's easier to map the integer back to the enum 1998-06-25 15:03:37 +00:00
kipp cc04a28262 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
karnaze ea5cd1554d named <iframe>s, scrolling attribute, more complete test9.html 1998-06-23 22:25:28 +00:00
troy 2c3c341cda Changed some GetStyleContext/GetStyleData pairs to use nsIFrame::GetStyleData
instead
1998-06-14 05:14:17 +00:00
troy af75aa1015 Changed some pairs of GetStyleContext/GetStyleData calls to a single call
to nsIFrame::GetStyleData
1998-06-14 05:00:38 +00:00
karnaze 6800f5f5d8 initial support for <iframe> 1998-06-11 16:46:33 +00:00
troy 454392645d 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 6c25e7131e Fixed a pending-break clear bug; use new ReflowInlineChild API 1998-06-09 17:47:49 +00:00
kipp 18f4f90dea Added nsIInlineFrame interface 1998-06-09 17:47:20 +00:00
kipp 6b4f435e4f Implement ReflowChild directly so that it uses nsIInlineFrame is available 1998-06-09 17:40:21 +00:00
kipp a07a851265 Implement ReflowInlineChild to check for nsIInlineFrame and use it when available 1998-06-09 17:32:52 +00:00
kipp 6d91246eaa Updated reflow-inline-child to handle the new nsIInlineFrame api 1998-06-09 17:32:27 +00:00
troy 5aeffe1a29 Added nsIReflowCommand interface 1998-06-09 04:51:44 +00:00
kipp bab137bdff Added another tracing log message 1998-06-09 00:49:12 +00:00
kipp 5ca93333aa 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
joki 7aad810a2f Adding new event handling mechanism into raptor. 1998-06-08 00:57:15 +00:00
kipp c76c309fef Revised SizeOf methods to add in nsString's, nsIAtom's and nsVoidArray's properly 1998-06-05 21:50:57 +00:00
kipp 71d12dae58 Sprinkled SizeOf methods around 1998-06-05 21:06:24 +00:00
kipp dfc4dd32ae Added no-wrap support 1998-06-05 17:53:28 +00:00
kipp 19adfee3f3 Added a reminder 1998-06-05 17:53:11 +00:00
peterl 71d5fd1025 sync up to new style data apis 1998-06-05 06:09:09 +00:00
peterl 55904e7030 changed GetStyleData to return const pointers to style structs
new method GetMutableStyleData to get non-const pointer
1998-06-05 05:59:34 +00:00
kipp d0d066dc01 Fixed to return proper reflow status 1998-06-05 00:54:03 +00:00
kipp 5d8ad4e74d Verify that mIsBlock is correct 1998-06-04 23:10:15 +00:00
kipp 2a8c488204 Removed dead code 1998-06-04 23:08:59 +00:00
kipp 35f737aeb1 IMplement ReflowBlockChild 1998-06-04 23:08:49 +00:00
kipp 4c0ffc1125 Added a head part 1998-06-04 21:33:07 +00:00
kipp 6ed0850c2d 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 a130d61779 Made a subclass of nsContainerFrame to deal with PropogateContentOffsets because placeholders contain pseudo-frames 1998-06-04 17:52:02 +00:00
kipp f017361697 Added code to do ebina style margins; perform horizontal alignment and relative positioning for blocks 1998-06-04 17:51:27 +00:00
kipp 952e690f78 Log view creation when it's done; create view when child and parent opacities differ 1998-06-04 17:50:53 +00:00
kipp da9567882e 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 8945757f0d Added mPrevMarginSynthetic flag 1998-06-04 17:49:29 +00:00
kipp b3a0265470 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
michaelp ab13cdae91 added support for handling transparent views to viewmanager. added
transparency query to nsIFrame.
1998-06-03 22:49:45 +00:00
kipp 209e9ca775 new 1998-06-03 18:31:14 +00:00
kipp 7a7d1a61cd Print out view during listings 1998-06-03 15:57:24 +00:00
kipp 7d43cef5b1 Wrap created frames in a view if necessary 1998-06-03 15:57:08 +00:00
kipp 31e0061a0f disable notifies during synthetic content insertion 1998-06-03 15:55:49 +00:00
kipp 4e3f35d542 Print out views during listings 1998-06-03 15:51:17 +00:00
kipp bab6234e9e new 1998-06-03 15:49:00 +00:00
kipp a34b1a43fd IMplement factory in this class; AddRef during QueryInterface like it should; init refcnt in ctor 1998-06-03 15:47:22 +00:00
troy 71d8797ba4 Initialized nsBlockReflowState::mStyleSizeFlags to 0 1998-06-03 02:27:39 +00:00
troy 992a717874 Turned on incremental painting 1998-06-02 05:29:44 +00:00
kipp 76fcd38b25 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 8d21e9ced3 Fixed block frame Clear method to work properly 1998-06-01 23:38:40 +00:00
kipp d4971d7ddc Added SetFirstChild; made line layout a friend of block frame 1998-06-01 23:37:55 +00:00
troy 6158f7cec4 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 581d6444fe Support nsILinkHandler::OnOverLink 1998-06-01 20:55:10 +00:00
troy 9d672d75a1 Work in progress for floaters to handle percentage based
width/height
1998-06-01 19:56:58 +00:00
troy 2f68ab5d3a Added some support for percentage based width/height. Currently only works
for the initial reflow
1998-06-01 19:52:53 +00:00
troy f1bf0636c9 Fixed an assert 1998-05-30 23:56:28 +00:00
kipp 00d8c58559 Updated to new GetDesiredSize api's (so that percentage width's could be properly calculated) 1998-05-30 21:21:11 +00:00
kipp 80acd0c50e Use new cssLayout api 1998-05-30 21:18:32 +00:00
kipp f9cd42fd7b Use new mPendingBreak state 1998-05-30 17:46:11 +00:00
kipp def13663bd Support BR tags in inline frames 1998-05-30 17:45:46 +00:00
kipp 50881dab1b Partial support for BR clear behavior 1998-05-30 17:45:15 +00:00
troy 5c80c8e537 Placeholder now wraps container content in a body pseudo frame 1998-05-29 23:12:26 +00:00
troy 5d79a7eef1 Changed ComputeAvailSpaceRect() to handle the 'OccupiedMultiple' case 1998-05-29 23:05:12 +00:00
troy cee140e58d Changed nsReflowState structs to be linked together 1998-05-29 20:36:05 +00:00
kipp 91eb6b5f64 Consolidated list handling state variables 1998-05-29 18:25:14 +00:00
kipp ee56cc154f Disabled assertions for now (sigh); removed DoResizeReflow and collapsed it into Reflow 1998-05-29 02:34:19 +00:00
kipp 03b868eeb4 Removed some unused list layout cruft 1998-05-29 02:33:50 +00:00
kipp 0a670a18f5 Get initial reflow state set right during child reflow; support list bullets directly 1998-05-29 02:15:46 +00:00
kipp b3f2588ada Pass on initial reflow to ProcessInitialReflow 1998-05-29 02:15:00 +00:00
kipp 189c6d2f00 Added bullet creator 1998-05-29 02:14:41 +00:00
kipp 9287e82ebb Added initial reflow hook; setup list bullets using it 1998-05-29 02:13:25 +00:00
kipp 76f4a551b6 Added initial reflow hook 1998-05-29 02:13:13 +00:00
kipp 0c0146ddcf Added list state for line layout 1998-05-29 02:11:38 +00:00
kipp bbce64b181 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 b6bad15b86 Added another state bit 1998-05-29 02:09:18 +00:00
troy 5acc41f6bd Added some more WillReflow() calls 1998-05-28 20:12:02 +00:00
troy a361eea70c Changed VerifyTree() to check that NS_FRAME_IN_REFLOW isn't set 1998-05-28 19:00:31 +00:00
troy b637ca6f64 Changed Paint() to not check if the frame is a pseudo frame 1998-05-28 04:38:28 +00:00
troy 26579fc14a Added 'ns' prefix to class name 1998-05-28 02:37:37 +00:00
kipp 98e4c731ca Use revised HorziontallyPlaceChildren api 1998-05-28 02:01:50 +00:00
kipp cb7f95262e Set x,y coordinate of frame before reflowing it 1998-05-27 22:24:57 +00:00
kipp beb0e254da 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 c258ad8093 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 784f23e1f6 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 a30748d0f2 Updated to use lineLayout struct changes 1998-05-27 21:05:13 +00:00
peterl 28517de6a1 added visibility style attribute
moved attributes from position to display struct
1998-05-26 23:15:47 +00:00
troy b2296227ff Merged ResizeReflow() and IncrementalReflow() into one Reflow() member function 1998-05-25 17:31:49 +00:00
kipp 864f4e1fc4 Removed some dead code; added code to DidReflow children at a good spot 1998-05-22 18:37:49 +00:00
troy 6d84299cc2 Changed reference to reflow command to a pointer to a reflow command 1998-05-22 04:56:27 +00:00
troy 63046c8bfd Changed splittable enum to be bit flags 1998-05-22 04:54:11 +00:00
troy e6fd0dce2e Changed the nsBandTrapezoid::State enum values to conform to the coding
standard
1998-05-22 04:03:14 +00:00
troy 3148067708 Added new Reflow() member function that will eventually supersede the two
existing reflow functions: ResizeReflow() and IncrementalReflow()
1998-05-22 03:52:51 +00:00
troy 23a25e2268 Some work in progress for incremental floaters 1998-05-22 02:38:41 +00:00
troy a19cf15e0f Fixed some busted code of a bogus type cast 1998-05-22 00:45:34 +00:00
kipp c484dcc24a disabled reflow-mapped-child for now 1998-05-21 16:29:20 +00:00
kipp 06f4a8f316 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 53d901a18b 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 5a96d99f60 Changed GetStyleData to use an enum instead of an nsID 1998-05-21 02:34:13 +00:00
kipp a856223ff7 Disable reflow optimizations for now 1998-05-20 21:51:51 +00:00
kipp 0b5ee49086 Add in will/did reflow calls; add in tracing calls too 1998-05-20 16:28:05 +00:00
kipp e4ff00c95f Use new tracing macros; add in ReflowMappedChild to avoid reflowing children 1998-05-20 16:27:46 +00:00
kipp 37ab909588 Use new tracing macros and verify-tree-enable 1998-05-20 16:27:22 +00:00
kipp 9aa06b9d92 Added in mDeltaWidth to block reflow state 1998-05-20 16:26:46 +00:00
kipp c009bb83d2 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 4f3ea52e14 Added more debugging hooks that use nspr logging 1998-05-20 16:22:15 +00:00
troy a185df6362 Implemented RemoveRegion() 1998-05-20 05:14:14 +00:00
troy ad60772a53 Changes for removing regions 1998-05-19 22:55:40 +00:00
troy 6b32a0861e Work in progress on removing a region 1998-05-19 15:30:10 +00:00
troy c6430d9196 Revamped space manager internals 1998-05-19 03:00:56 +00:00
kipp be831d99f1 Print out state when non-zero 1998-05-18 16:53:09 +00:00
kipp cfda8fbbf0 Call WillReflow before reflowing children 1998-05-18 16:52:57 +00:00
kipp 53e780d9cf dump out state and next-in-flow/prev-in-flow conditionally 1998-05-18 16:52:41 +00:00
kipp bea090f624 Fixed up code that wasn't using the nsReflowStatus constants defined in nsIFrame.h 1998-05-14 00:49:46 +00:00
kipp 87861be535 Flipped state value of NS_FRAME_COMPLETE with NS_FRAME_NOT_COMPLETE; added new methods WillReflow and DidReflow as well as GetFrameState and SetFrameState 1998-05-14 00:47:05 +00:00
peterl af91e8a55f added style size calculation methods
made get style data const
1998-05-13 22:38:09 +00:00
troy 0b813ad3e7 Changes to space manager implementation. 1998-05-13 16:22:44 +00:00
kipp 07ed999729 Fixed ptr compilation bug 1998-05-13 00:13:09 +00:00
kipp a34356a113 Cast lineReflowStatus before comparing for negative values!; eliminated unused variables 1998-05-13 00:11:51 +00:00
kipp 30c8f7a0cb Moved margin code into line layout 1998-05-12 23:49:40 +00:00
scullin 711c0484c4 Release mode fix. 1998-05-12 23:32:59 +00:00
troy 1ac145e853 Space manager API change 1998-05-12 23:02:47 +00:00
troy 92c9ccb54b Added new member functions 1998-05-12 23:02:02 +00:00
peterl a97ac241a7 sync to new spacing apis 1998-05-12 22:28:01 +00:00
troy 87d8314c08 Changed enum to conform with coding standards 1998-05-12 04:38:23 +00:00
troy 3b08586876 Change to nsIFrame API 1998-05-12 04:17:56 +00:00
kipp 9ac5634a00 Added container methods for the singly contained frame 1998-05-12 01:31:22 +00:00
kipp 4b81688d10 Init band data so that zero is returned on failure 1998-05-12 01:30:57 +00:00
troy 89274c06e4 Wrapped VerifyLines() inside of a NS_DEBUG #define 1998-05-11 18:54:15 +00:00
troy eaaa05815e More incremental reflow work. 1998-05-11 18:38:10 +00:00
troy 27dd88d7ae Work in progress on block incremental reflow 1998-05-09 03:52:29 +00:00
kipp cb1358cbb5 Fixed irix bustage 1998-05-08 21:12:12 +00:00
troy 88e5de1f65 Moved ContentChanged() logic to nsFrame since it was completely generic and
serves as reasonable default behavior for all frames
1998-05-08 16:34:27 +00:00
troy d558e0944f Added ContentChanged() member function 1998-05-08 04:56:47 +00:00
troy 8a61897ab0 Added ContentChanged() member function 1998-05-08 04:45:37 +00:00
kipp b00942a319 Support css width&height style properties 1998-05-07 23:38:51 +00:00
kipp b756f040c3 Support width & height ala css1 1998-05-07 21:50:56 +00:00
kipp ec92662afe order sid's alphabeticly 1998-05-07 21:36:41 +00:00
troy 78de74ac42 Work in progress 1998-05-07 21:10:07 +00:00
troy dde4836b65 Started hooking up appended content handler 1998-05-07 20:28:16 +00:00
troy f6e0e4fd8b Work on getting floaters working again 1998-05-07 05:25:08 +00:00
kipp 707a667dd2 Implemented destroy-lines 1998-05-07 03:45:29 +00:00
kipp c07c22af17 Ported to new CreateFrame/CreateContinuingFrame APIs 1998-05-07 00:08:20 +00:00
kipp 0c6469b295 Ported to new CreateFrame/CreateContinuingFrame APIs; removed some debris code 1998-05-07 00:06:53 +00:00
kipp a333c5eda2 Changed CreateContinuingFrame to take a style context argument to reduce style context creation 1998-05-07 00:05:37 +00:00
troy ca23e47c2e Frames no longet store the content index-in-parent 1998-05-05 23:56:50 +00:00
troy af4352b9f4 Work in progress for inserted incremental reflow 1998-05-05 04:47:53 +00:00
troy 049905f1f8 Added ContentInserted handler 1998-05-04 18:32:12 +00:00
troy 9ae1d79f61 Work in progress for incremental reflow (insert) 1998-05-04 17:54:45 +00:00
troy 38acdd1740 Added ComputeDesiredRect() to share some common code between DoResizeReflow()
and IncrementalReflow()
1998-05-03 04:57:29 +00:00
troy 7b7acfc81c Made sure to set previous bottom margin when restoring reflow state 1998-05-03 04:37:56 +00:00
troy 855a687477 Fixed a problem with mY not being updated properly for a bottom
margin
1998-05-03 04:16:13 +00:00
troy df86871d93 Changed body to create block pseudo-frame instead of a column pseudo frame,
and hooked up the reflow appended code
1998-05-03 03:51:48 +00:00
kipp 1dfce13cc2 Spanked nsBlockFrame: newly rewritten, broken into two pieces (see nsLineLayout.h,.cpp for the line layout code) 1998-05-02 00:56:24 +00:00
kipp aef76fa930 Updated 1998-05-02 00:40:25 +00:00
kostello f7b27f2578 Made SetStyleContext take the presentation context as a parameter
Made DidSetStyleContext virtual, since we need to override the behavior in subclasses
1998-05-01 20:43:42 +00:00
kostello 3828837d71 * Made SetStyleContext take the presentation context as a parameter
* Made DidSetStyleContext virtual, since we need to override the behavior in subclasses
1998-05-01 20:43:02 +00:00
kipp 573023df7a new 1998-04-30 23:32:32 +00:00
peterl ede73bb36a updated to new value class api 1998-04-30 19:55:51 +00:00
rods 8e56c8456a added selection classes to makefiles and added the selection object and methods to nsDocument and nsIDocument 1998-04-30 18:21:59 +00:00
rods bda1d7b02a initial check in 1998-04-29 17:08:57 +00:00
troy f4c0f974bb Changed space manager to return a list of available and unavailable trapezoids 1998-04-29 00:58:16 +00:00
buster b03d7357dd sped up nsBlockFrame significantly by reducing the number of times we resolve style by almost 50% on initial layout
(percentage savings go way up as the window is resized)
1998-04-27 22:33:55 +00:00
kipp 86764b175c Fix porting bugs - made it compile on IRIX 1998-04-26 02:59:29 +00:00
kipp 1767b4a8f8 Port to removal of nsStyleMolecule 1998-04-25 18:48:48 +00:00
kipp b5083a9b07 Removed nsStyleMolecule decl 1998-04-25 18:40:17 +00:00
kipp 9fd58ae134 Repaired cursor discovery logic to handle A tag oddities 1998-04-25 18:40:01 +00:00
troy 6d930e9882 Added more position properties and removed some stuff from nsStyleMolecule 1998-04-24 03:50:38 +00:00
troy 1e612802d7 More work on absolute positioning 1998-04-23 22:38:52 +00:00
troy aa7d0f6143 More CSS position work 1998-04-23 15:39:48 +00:00
troy 98001a329a Work in progress on absolutely positioned elements 1998-04-22 16:06:21 +00:00
peterl 64cc4238d1 WIP moving margin, border & padding out of nsStyleMolecule
Switch to nsIPtr for style context ptrs to eliminate leaks
1998-04-22 06:37:57 +00:00
troy 21b7d0a128 Changed space manager to pass in the frame that's associated with a block
of unavailable space
1998-04-21 23:06:41 +00:00
troy 42f3d1a152 Changed the space manager interface to return trapezoids instead
of rects
1998-04-20 23:53:47 +00:00
troy ef8ffb4eb4 Changed to using continuing frames for runaround of left/right floaters 1998-04-20 19:56:35 +00:00
troy 7c5818ac1f Made it so that continuing frames have a top margin of 0 1998-04-20 04:37:49 +00:00
troy 616900b4e4 Fixed a problem where mLastContentIsComplete wasn't getting set right
for block-level elements
1998-04-18 22:06:05 +00:00
troy 91a9babbf7 Changed IsSplittable to have three return values 1998-04-17 23:08:20 +00:00
troy e285e45a5f Cleaned up some logic 1998-04-17 01:47:21 +00:00
troy d504fcfb0c Changed nsIFrame member functions to return a nsresult 1998-04-17 01:41:24 +00:00
kipp 4717009d75 moved to pub 1998-04-13 20:24:54 +00:00