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

1322 Коммитов

Автор SHA1 Сообщение Дата
peterl%netscape.com e75a76898d sync to new attribute api 1998-12-20 01:21:23 +00:00
kipp%netscape.com 60100e4875 Display inline borders/background during content painting, not during background painting (per css2 spec) 1998-12-18 22:12:15 +00:00
kipp%netscape.com 12fb04dd78 Fixed numerous compiler warnings (hopefully) from the mac build 1998-12-18 17:34:34 +00:00
kipp%netscape.com 27f0cfe8cc Revised frame Paint API 1998-12-18 15:54:23 +00:00
kipp%netscape.com 0fb65cd204 Disabled skid marks 1998-12-17 19:10:53 +00:00
kipp%netscape.com cabc48d518 Clean up max-element-size computations; added code to remove empty lines (disabled for now) 1998-12-17 18:52:10 +00:00
kipp%netscape.com 0367907f31 Moved floater reflow out of PlaceFloater and into AddFloater so that floaters are only reflowed during reflow, not during placement; Added code to support css 10.3.5; reflow floaters more often so that % width values are recomputed properly 1998-12-15 04:20:54 +00:00
kipp%netscape.com 714bcb7b4a Fixed rendering problems with lines with outside children; repaired code (currently unused an ifdef'd) to compute the lines outside children state 1998-12-15 00:14:09 +00:00
kipp%netscape.com 307deab2f2 Reworked incremental reflow floater handling to place floaters as their state is recovered instead of moving them 1998-12-12 19:19:11 +00:00
troy%netscape.com 4da5dc8e56 Changed inline and block reflow code to reset reflow state's isTopOfPage
data member based on whether IsAdjacentWithTop() is true
1998-12-12 17:59:30 +00:00
kipp%netscape.com 7128e63df5 Compute correct Y coordinate after clear floaters; fixed bullet positioning bug when placing a bullet next to a block frame that has a carried-out top margin 1998-12-11 22:26:45 +00:00
kipp%netscape.com 745995739c Removed bogus assert that was tripping on spacer-frames; fixed up justification behavior (thanks harish!) 1998-12-11 15:49:07 +00:00
troy%netscape.com 2a501cc669 Added new atoms to nsLayoutAtoms for additional named frame child lists 1998-12-09 05:30:17 +00:00
kipp%netscape.com 00165848ff Factored out the block-band-data class; fixed a bug with treating block objects that weren't really nsBlockFrame's like they were (bug #1713) 1998-12-08 21:43:15 +00:00
kipp%netscape.com ef43e0bd4f Fixed bug #1621 - if a floater was too wide and it was right aligned it would end up positioned off the left edge of the block 1998-12-08 03:57:12 +00:00
kipp%netscape.com 0d7c32d9ad Removed check for a band count of when when clearing floaters because if the floater is large the band may only have one trapezoid in it 1998-12-08 03:47:44 +00:00
kipp%netscape.com dc53d20c74 Disabled fixed height/width ignoring code for shrink-wrap blocks; fixed crash bug with premature deleting of a line 1998-12-07 22:28:55 +00:00
kipp%netscape.com e7aee39193 Major spankage; refactored code; common base class for block/inline frames 1998-12-05 16:02:08 +00:00
troy%netscape.com bd58bde76d Moved view creation to frame construction code. Also moved wrapping of
floated and absolutely positioned elements to frame construction code
1998-12-04 19:03:44 +00:00
troy%netscape.com 53cb72de5e Removed explicit call of base class constructor because it was
making Unix compilers unhappy
1998-12-03 07:20:59 +00:00
troy%netscape.com d97a31f115 Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
kipp%netscape.com a67079f75c Disable fixed behavior when we are shrink wrapping so that floating tables (for example) can ignore their width if necessary 1998-11-20 22:24:20 +00:00
kipp%netscape.com 64d09e5c2b Added support for StyleChanged reflow reason 1998-11-20 17:41:44 +00:00
kipp%netscape.com 1dcf401615 Use revised API's to get percentage padding/borders value right 1998-11-20 17:18:58 +00:00
kipp%netscape.com 318a5e31e4 Override FrameForPoint so that floaters/bullets get events 1998-11-19 18:09:57 +00:00
kipp%netscape.com 63107e9026 Added DumpRegressionData; revised ListTag; added GetFrameName 1998-11-19 17:22:29 +00:00
troy%netscape.com 82e5ab4bdd Fixed it so that we don't ignore painting child frames of a parent frame
thas has "visibility:hidden", because child elements can override their
parent's visibility
1998-11-19 03:52:29 +00:00
troy%netscape.com 63dc45e1f2 Added some constants to use when referring to child list name indices 1998-11-18 06:13:58 +00:00
joki%netscape.com 7716dc91e8 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)
1998-11-18 05:25:26 +00:00
kipp%netscape.com 02b071a3cc Revised max-element-size computation somewhat so that floaters are accounted for better 1998-11-17 22:28:51 +00:00
kipp%netscape.com fc05c445ab Fixed up incremental reflow for content-changed and removed floaters 1998-11-17 01:04:45 +00:00
troy%netscape.com 3aedaace4d Split class declaration out into a separate header file so the body frame
can be a derived class
1998-11-16 17:11:12 +00:00
kipp%netscape.com c2f5352414 Removed extraneous bullet padding that was left-over from the pre-pseudo-style days 1998-11-15 01:17:05 +00:00
kipp%netscape.com 32ac80c46e Fixed frame-removed crash case (when we run out kids); bug #691 1998-11-14 21:57:38 +00:00
kipp%netscape.com 6a5fdb0d24 Basic support for :first-letter pseudo-elements 1998-11-14 21:01:26 +00:00
kipp%netscape.com 06f4321aef Modified List code to list floater list and bullet better; support multiple child lists; manage floater list properly 1998-11-14 19:28:11 +00:00
troy%netscape.com 2b86b49c95 Cleaned up the way construction of the root frame happens for XML documents.
We no longer create a pseudo root element
1998-11-12 23:03:35 +00:00
kipp%netscape.com 803e6b8d23 Fixed margin collapsing bug 1998-11-12 22:24:46 +00:00
kipp%netscape.com b8e7c399a3 Fixed some serious bugs in list bullet placement that prevented some relatively easy cases from working at all; this fixes up most outside list bullet cases 1998-11-12 18:19:22 +00:00
kipp%netscape.com 364129b3c8 Fixed list numbering to work again (whoops!); added support for display: compact (just the beginnings); more work-in-progress for :first-letter support 1998-11-12 16:32:56 +00:00
kipp%netscape.com 2035e515d7 Added a sleazy implementation of css2's run-in display type 1998-11-11 03:55:55 +00:00
kipp%netscape.com ebf7629df3 Tidy up by removing some old junky code 1998-11-10 18:03:29 +00:00
troy%netscape.com fd34820203 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list
1998-11-10 06:05:32 +00:00
troy%netscape.com 02915d3677 First of a few changes to allow frames to have multiple child lists.
FirstChild() now takes an additional argument which is the name of the
child list.
1998-11-09 19:40:27 +00:00
kipp%netscape.com 777b189df1 Disabled some more dubious br/margin code 1998-11-09 17:54:37 +00:00
kipp%netscape.com bb0641ee17 Fixed nowrap support by computing max-element-size better 1998-11-06 02:09:21 +00:00
kipp%netscape.com bb4b401919 Temporary fix to get rid of the green text 1998-11-05 19:38:32 +00:00
kipp%netscape.com 2a74a81c52 Fixed a few more floater bugs; fixed incremental reflow bug with regards to BR tags (clear=all for example); support :first-line properly; work in progress on :first-letter 1998-11-05 19:33:01 +00:00
peterl%netscape.com 776a2683ef sync to style resolution api changes 1998-11-03 20:33:43 +00:00
troy%netscape.com 10c06c1b72 Renamed HaveConstrainedWidth() and HaveConstrainedHeight() to HaveFixedContentWidth()
and HaveFixedContentHeight()
1998-11-01 01:29:00 +00:00
kipp%netscape.com 769f9406a0 nit changes 1998-10-31 22:53:00 +00:00
kipp%netscape.com 09cf8e7724 Reworked floater support somewhat now that blocks manage them instead of body frames; fixed up painting to use the outside-children data; support the visibility property; fixed bug #624,#628 1998-10-30 22:10:10 +00:00
michaelp%netscape.com 10921d7b0b changes to support nsIRenderingContext that conforms to COM conventions. 1998-10-30 02:08:25 +00:00
kipp%netscape.com 22764e9c4f Added justification support 1998-10-27 16:51:02 +00:00
buster%netscape.com 8c8a2f20a6 changed base code so only frames with 0 width AND 0 height are ignored.
this fixes http://home.netscape.com among others that use content-free
nested tables to generate background colors and other evil tricks.
1998-10-22 22:00:50 +00:00
kipp%netscape.com 98c55e2533 Use TextRun API instead of no-longer public variables 1998-10-20 00:21:54 +00:00
kipp%netscape.com 9a401ecee4 Use :BULLET style information to place bullets instead of hard coding off of the padding (Bug #1119) 1998-10-16 22:39:11 +00:00
kipp%netscape.com d83756adae Support CSS2 floater placement by not allowing them on top of each other; fixed a bug with floater incemental reflow and spacemanager management 1998-10-16 20:22:39 +00:00
kipp%netscape.com a85dafdfb7 Support clear attribute on floaters; nicer ListTag method 1998-10-15 23:27:12 +00:00
kipp%netscape.com 727f7cef52 Create views when necessary; fixed code to avoid IsLeftMostChild when checking during flow floater placement (now that the childs rect is deferred until vertical alignment the code in IsLeftMostChild is no longer valid) 1998-10-14 20:10:08 +00:00
kipp%netscape.com 3a4c8d38f4 Update frame count when frames are pushed to a new line so that alignment behaves properly 1998-10-12 18:43:07 +00:00
kipp%netscape.com e3998954e5 Removed nsCSSLayout::GetStyleSize and converted callers to use state in the html reflow state 1998-10-12 17:00:32 +00:00
kipp%netscape.com 05a50b6ce3 Added an nsIPresContext& to html-reflow-state's ctors and used it to implement better percentage width/height handling 1998-10-12 14:48:02 +00:00
kipp%netscape.com 6c09387c60 Pass through text-runs to the line layout engine; removed a debug printf 1998-10-10 04:33:06 +00:00
kipp%netscape.com 28f8cdcf94 Removed skid marks; implement FindTextRuns again 1998-10-09 23:46:02 +00:00
kipp%netscape.com ede047ed44 Mork work on floaters; support for clear style property 1998-10-09 22:58:25 +00:00
troy%netscape.com cc44601bb8 Removed GetContentIndex() from nsIFrame 1998-10-08 20:35:16 +00:00
kipp%netscape.com 521315cebe Disabled overflow:visible handling for now 1998-10-06 21:00:58 +00:00
kipp%netscape.com 507002c027 Cleaned up margin handling some more; added flags to control behavior of the block frame; fixed table reflow bug 1998-10-06 00:38:56 +00:00
troy%netscape.com 5eae9d2705 Removed nsIInlineReflow and folded it into nsIHTMLReflow 1998-10-03 04:28:05 +00:00
kipp%netscape.com 5684b8ab62 Preliminary support for negative top/bottom margins 1998-10-03 00:17:44 +00:00
kipp%netscape.com 750fa1536a Reworked vertical margin collapsing 1998-10-02 21:50:53 +00:00
troy%netscape.com f095846367 Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
michaelp%netscape.com 7b7efc8d89 modified for new fontmetrics/renderingcontext. 1998-10-02 01:12:39 +00:00
troy%netscape.com 8b034f4950 Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface
1998-10-01 04:46:11 +00:00
kipp%netscape.com 95214f1753 Add in a bottom-line-margin when dealing with a zero-height line that contains a BR frame 1998-09-29 22:32:56 +00:00
troy%netscape.com 097535bdf9 Added back in support for absolutely positioned frames 1998-09-29 04:47:59 +00:00
kipp%netscape.com dc4362fa13 Changed factory method to parameterize the shrink wrapping behavior 1998-09-29 03:44:25 +00:00
troy%netscape.com f16e96f86c Fixed some bustage I introduced with the factoring 1998-09-29 02:18:09 +00:00
troy%netscape.com 7ede838ed2 Partially enabled support for absolutely positioned elements 1998-09-28 23:24:37 +00:00
kipp%netscape.com d5368292ee Cleaned up and repaired floater placement and spacemanager manipulation; the comments clearly (hopefully!) state whats going on... 1998-09-28 18:50:59 +00:00
kipp%netscape.com a9a9b3e33a Fixed up list ordinal handling so that negatives don't work for roman numerals or for alphabetics, and that alphabetics count properly (a==1); this fixes bugzilla bug#589 1998-09-26 20:05:09 +00:00
kipp%netscape.com 893dc326bb use image-loader call back to trigger bullet frame reflows 1998-09-26 18:36:01 +00:00
kipp%netscape.com d7c69dee34 Use modified css rendering API 1998-09-26 17:17:20 +00:00
kipp%netscape.com 9632c87bbf Fixed memory leak (bug #910) 1998-09-26 00:37:26 +00:00
kipp%netscape.com b549d341b5 Added support for percentage base margins to the root, root-content and block frames 1998-09-25 23:47:59 +00:00
kipp%netscape.com 856e3e82e5 Support break-before/after for block frames 1998-09-25 17:50:09 +00:00
kipp%netscape.com cde642e1d6 Support (weakly) style-changed reflow and fixup naming of frame-removed methods 1998-09-25 16:10:10 +00:00
troy%netscape.com 318174a3d8 Moved ContentDeleted() document notification code to the style system which
generates the reflow command
1998-09-25 05:13:06 +00:00
kipp%netscape.com 04604ad3be Removed bullet pseudo-content and instead use pseudo style to process bullets properly 1998-09-24 21:32:39 +00:00
kipp%netscape.com a491a713e9 Fixed block's max-element-size computation for child inline frames 1998-09-24 17:47:25 +00:00
troy%netscape.com 79eb911422 Removed some XXX CONSTRUCTION code that was work-in-progress, but is
no longer needed
1998-09-24 03:49:45 +00:00
kipp%netscape.com 09c2bd18a7 Implement bullets here; implement list renumbering cleanly instead of having the bullets blindly do it (fixes a crash and several pagination bugs) 1998-09-23 20:10:40 +00:00
kipp%netscape.com 383af639b3 Spanked hard to reorg code around nsInlineReflow; rework list handling; rework factoring of inline/block reflow 1998-09-23 02:25:26 +00:00
troy%netscape.com 9955ac85ce Removed farme enumeration member functions for indexed access, last child,
and child count
1998-09-19 03:24:26 +00:00
troy%netscape.com c24f15c230 Removed CreateFrame() from nsIHTMLContent 1998-09-18 18:04:42 +00:00
troy%netscape.com b6c1cfd2b8 Removed content delegates 1998-09-18 17:18:37 +00:00
troy%netscape.com 163bcce1ad Removed code that's no longer needed now that tables are using new
frame construction code
1998-09-17 23:46:16 +00:00
troy%netscape.com 740f73d46a Cleaned up frame construction code 1998-09-17 04:07:58 +00:00
kipp%netscape.com 46acb2313a Removed css/layout directory 1998-09-15 00:19:49 +00:00
kipp 4b8864ebbc New and improved (?) line layout 1998-06-25 16:33:10 +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 a07a851265 Implement ReflowInlineChild to check for nsIInlineFrame and use it when available 1998-06-09 17:32:52 +00:00
troy 5aeffe1a29 Added nsIReflowCommand interface 1998-06-09 04:51:44 +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
kipp d0d066dc01 Fixed to return proper reflow status 1998-06-05 00:54:03 +00:00
kipp 35f737aeb1 IMplement ReflowBlockChild 1998-06-04 23:08:49 +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
kipp 4e3f35d542 Print out views during listings 1998-06-03 15:51:17 +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 8d21e9ced3 Fixed block frame Clear method to work properly 1998-06-01 23:38:40 +00:00
kipp 80acd0c50e Use new cssLayout api 1998-05-30 21:18:32 +00:00
kipp 50881dab1b Partial support for BR clear behavior 1998-05-30 17:45:15 +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 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
troy a361eea70c Changed VerifyTree() to check that NS_FRAME_IN_REFLOW isn't set 1998-05-28 19:00:31 +00:00
troy 26579fc14a Added 'ns' prefix to class name 1998-05-28 02:37:37 +00:00
kipp a30748d0f2 Updated to use lineLayout struct changes 1998-05-27 21:05:13 +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 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 23a25e2268 Some work in progress for incremental floaters 1998-05-22 02:38:41 +00:00
peterl 5a96d99f60 Changed GetStyleData to use an enum instead of an nsID 1998-05-21 02:34:13 +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 53e780d9cf dump out state and next-in-flow/prev-in-flow conditionally 1998-05-18 16:52:41 +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
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
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 b756f040c3 Support width & height ala css1 1998-05-07 21:50:56 +00:00
troy 78de74ac42 Work in progress 1998-05-07 21:10:07 +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 0c6469b295 Ported to new CreateFrame/CreateContinuingFrame APIs; removed some debris code 1998-05-07 00:06:53 +00:00
troy ca23e47c2e Frames no longet store the content index-in-parent 1998-05-05 23:56:50 +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
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
peterl ede73bb36a updated to new value class api 1998-04-30 19:55:51 +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
troy 6d930e9882 Added more position properties and removed some stuff from nsStyleMolecule 1998-04-24 03:50:38 +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 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