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

573 Коммитов

Автор SHA1 Сообщение Дата
dmose%mozilla.org 42fc94a6ec updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
kipp%netscape.com ec28ac0c5c r=troy; remove another 4 bytes from each block frame for a total of 10% today :-) 1999-11-03 00:42:12 +00:00
kipp%netscape.com 2bacd78cfe r=troy; Shrink block frames by 4 bytes per instance by making the overflow-lines instance variable a frame property 1999-11-02 23:42:52 +00:00
kipp%netscape.com d4c6233f05 r=troy; fixed bugs 2636 and 17636 - line layout issues for some more edge cases (nobr's with floaters in them) and handling of nbsp 1999-11-02 15:44:57 +00:00
troy%netscape.com 04accb3de6 Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +00:00
kipp%netscape.com 0699f8cc22 r=troy; reworked the way that blocks inside of inline elements are handled. It's all in the frame construction code now (bugs 15999, 16737) 1999-11-01 15:24:57 +00:00
troy%netscape.com effb3aefb7 Folded reflow functions into nsIFrame and eliminated nsIFrameReflow and
nsIHTMLReflow. This saves 4 bytes per frame and cleans things up
1999-10-30 02:52:11 +00:00
kipp%netscape.com 50dc6c6dba r=troy; cleaned up resize reflow optimization logic and prepared it for fixing bug #17737 (not yet fixed!) 1999-10-29 14:34:53 +00:00
troy%netscape.com a47e8db44b Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
troy%netscape.com 918255682c Removed 5 convenience functions from nsIFrame 1999-10-22 14:53:52 +00:00
kipp%netscape.com 3587210728 r=troy; bugs: 15153, 13196; fixed problem with style-change reflows not being propogated properly; also fixed floating table reflow issues found in 13196 by storing floater max-element-size for later retrieval 1999-10-21 20:43:48 +00:00
kipp%netscape.com db2e83b3f1 Fixed O(N^2) debug logic bug; speed up paint loop by avoiding painting too much now that we have combined-area (bug 7455, 12297) 1999-10-19 23:04:19 +00:00
kipp%netscape.com 88cf2d89c8 r=troy; fixed bug 7093 by carefully pre-computed the collapsed top margin before reflowing the child block and then using that value to properly acquire the available space; In addition, I had to fix an incremental reflow bug associated with this problem 1999-10-15 23:35:10 +00:00
peterl%netscape.com 757c0b5f01 Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153
r=troy
1999-10-15 23:16:45 +00:00
mjudge%netscape.com 9cf7094f5f oops. for got to check this in last time. bug number is 14795 1999-10-14 23:52:42 +00:00
kipp%netscape.com ec14991303 r=troy; Reworked nsLineBox api to allow for reduced storage overhead; fixed bug 16252 while keeping bug 12709 fixed 1999-10-14 23:10:03 +00:00
mjudge%netscape.com 8ca2604934 bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling. 1999-10-13 01:15:26 +00:00
kipp%netscape.com cfd8498ab1 r=troy; Cleaned up line-box API (prep work for bug #12297; more coming); Support new line iterator API change (#16176) 1999-10-12 23:24:22 +00:00
troy%netscape.com 0c3a74b8be Removed some dead code and moved some #if 0 code from the area frame
to the block frame. This completes the previous checkin
1999-10-08 04:45:12 +00:00
troy%netscape.com 104c0f8c7e Frame space reductions. r=kipp@netscape.com
Table cell frames and table caption frames now use block frames and not area
frames. This saves 24 bytes per frame instance
1999-10-08 04:32:46 +00:00
troy%netscape.com 1877c607ff Moved space manager to block frame and changed it the space manager is
temporary only during the reflow process
r=kipp@netscape.com
1999-10-06 22:05:23 +00:00
troy%netscape.com d219ef5e29 Added SizeOf() handler for floater information maintained by the
line box
1999-10-02 02:51:03 +00:00
troy%netscape.com 2ab1981c55 Fix for bug #15152. Moved check for "no wrap" inside of loop. This fixes a
problem where blocks inside of blocks were not getting marked dirty
1999-09-29 05:09:19 +00:00
troy%netscape.com 843e094239 Fix for bug #14959. Made sure that lines with floaters are also marked
dirty
1999-09-27 20:53:05 +00:00
troy%netscape.com 2ed263d46e Optimized PrepareResizeReflow() so it doesn't mark lines dirty if they don't need
to be reflowed
1999-09-25 16:50:45 +00:00
kipp%netscape.com 4c8eb1ba81 Queue up a reflow command when yanking floaters so that cases like bug #11389 work properly 1999-09-22 00:58:58 +00:00
peterl%netscape.com 2e3a8d9de7 removed ReResolveStyleContext 1999-09-21 07:56:18 +00:00
troy%netscape.com d341d05f91 Fix for bug #14414. Changed DoRemoveFrame() to invalidate the space taken
up by the line when deleting an empty line
1999-09-21 05:15:39 +00:00
kipp%netscape.com 561c2fcb48 Reimplement TrimTrailingWhiteSpace 1999-09-21 00:13:50 +00:00
kipp%netscape.com 1aabe81721 Handle right aligned skipped floaters a little better 1999-09-18 00:20:48 +00:00
kipp%netscape.com ce5df13558 Fixed various bugs including incremental list reflow (9742) and some table bugs with right floaters 1999-09-17 23:16:43 +00:00
kipp%netscape.com e6b4b1cc8a Removed list item hack 1999-09-17 00:57:40 +00:00
kipp%netscape.com 9fdbdffbb6 Fixed bugs 4572, 7400 and maybe 802 1999-09-16 19:56:36 +00:00
kipp%netscape.com 5976ab4e32 Squished a memory leak 1999-09-15 20:38:09 +00:00
kipp%netscape.com 373c362b32 Fixed various incremental reflow bugs (1764,12890,1910,2222) and list bullet painting bug (10675,13599) 1999-09-15 00:28:10 +00:00
kipp%netscape.com 311d2c3974 Fixed two incremental reflow bugs (12890) 1999-09-10 18:52:56 +00:00
kipp%netscape.com 43456dad64 Fixed infinite loop 12747 1999-09-09 20:53:32 +00:00
mjudge%netscape.com 6af1b95040 addiung selectable BRFrames. but brframes arent like images ect. they give you a collapsed range, collapsed to just "before" themselves. this will help editing immensely. this should also fix some mail news issues 1999-09-08 19:43:17 +00:00
peterl%netscape.com e8b68a5fce added reparent style context 1999-09-03 23:35:41 +00:00
mjudge%netscape.com 94c7196c4d oops infinite loop. need to break out if no frame is found. 1999-09-02 00:04:56 +00:00
mjudge%netscape.com c9b2693769 new selection code for dead areas. this is much better, trust me. the block frame now will look at its best line and look for a spot to select. if it finds another block frame now, it will continue the process in a while loop. each time looking for best x and y area. this reuses the code located in GetNextPrevLine. 1999-09-01 21:40:16 +00:00
kipp%netscape.com f0048804d8 Fixed to account for the overflow hidden value when computing the combined area (bug #2751) 1999-09-01 20:57:37 +00:00
kipp%netscape.com dff5b76938 Updated SizeOf methods to not waste space when doing a non-debug build 1999-09-01 01:02:16 +00:00
kipp%netscape.com db5c199f08 Tally up lineBox's and textRun's seperately 1999-08-31 04:32:13 +00:00
kipp%netscape.com fd426dec6a Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot 1999-08-31 03:09:40 +00:00
troy%netscape.com aa10a920fd Changed block frame code to cache the max element width. This enables
us to ask for the maxElementSize when doing an incremental reflow
1999-08-28 00:39:55 +00:00
kipp%netscape.com fd902c640a Reduce stack size by allocating nsLineLayout objects from the heap when the frame tree depth gets too big (bug #10310) 1999-08-27 21:45:37 +00:00
troy%netscape.com e594b41fc6 Fix for bug #12444. Made sure that for a "StyleChanged" reflow command we
invalidate our entire bounds
1999-08-25 23:15:36 +00:00
mjudge%netscape.com 1ca330a9f0 changes to allow selection in "dead" space between frames. still need work on "outside" and not in the window at all, but this is a very good chunk of the issue and it will solve many many bugs on my place. good for dogfood as well :) 1999-08-24 21:51:47 +00:00
rods%netscape.com efa83b4cb5 added PaintOutline to paint CSS outlines to paint method 1999-08-19 14:35:48 +00:00
troy%netscape.com 2a655ce368 Changed to table incremental reflow 1999-08-19 03:51:25 +00:00
troy%netscape.com bd3bea79fe Fixed compiler warning 1999-08-06 17:21:57 +00:00
troy%netscape.com 720a391b94 Fixed incremental painting problem 1999-08-01 16:50:52 +00:00
troy%netscape.com 35e404886c Changed area frame code over to new reflow command handling 1999-07-24 02:37:45 +00:00
troy%netscape.com 537d74d82c Renamed some nsFrameList member functions 1999-07-22 04:00:57 +00:00
troy%netscape.com 9fdbc7ced3 Renamed DeleteFrame() to Destroy() 1999-07-22 02:24:52 +00:00
troy%netscape.com 06f806dfd8 Added 'm' prefix to a couple more data members of nsHTMLReflowState struct 1999-07-20 03:51:46 +00:00
troy%netscape.com a6aae963a7 Added 'm' prefix to some of the nsHTMLReflowState data members 1999-07-20 03:41:03 +00:00
peterl%netscape.com 47ad552cb6 fix reresolve style context to iterate all child lists 1999-07-18 00:18:45 +00:00
kipp%netscape.com 9ded078abc Disabled my debug noise (whoops) 1999-07-14 20:40:23 +00:00
nisheeth%netscape.com 5e2ebc1d78 Fix for bug 8314. The block frame takes the bullet's position and area into account when it sets the combined area of the frame during reflow. 1999-07-14 18:02:14 +00:00
kipp%netscape.com 022880ebfd Various and sundry bug fixes 1999-07-14 17:26:20 +00:00
troy%netscape.com 77b77c8506 Changed Reflow() and ReflowDirtyLines() to invalidate the damaged areas
after an incremental reflow
1999-07-14 15:16:56 +00:00
kipp%netscape.com b635ab5465 Removed HaveFixedContent* methods from nsHTMLReflowState and updated code to match (fix bug #7993) 1999-07-07 02:33:17 +00:00
peterl%netscape.com 3354b81596 delete floaters before regular children 1999-06-15 06:16:29 +00:00
rickg%netscape.com 3b00713051 fixed bug 7713 1999-06-08 00:30:26 +00:00
pierre%netscape.com 101342182f Don't printf() like crazy when displaying very long pages such as http://slip/res-lib/morte1.htm in DEBUG builds. 1999-06-01 22:11:32 +00:00
kipp%netscape.com 3993e6bcb0 Fix compiler warnings; implement QueryInterface hack to get at line iterator 1999-05-13 00:55:38 +00:00
kipp%netscape.com fea30bc4eb Reworked frame factory methods; fixed bug 4519 1999-05-11 22:03:29 +00:00
vidur%netscape.com 3f5ea90274 Fix for bug 2989 - correcting result of GetFrameForPoint. 1999-05-07 00:08:02 +00:00
kipp%netscape.com aa1e51a75f Fixed bug 5375 - the conditions for avoiding combined area computations were wrong 1999-05-03 20:51:02 +00:00
kipp%netscape.com 380022b0b7 Removed some cruft 1999-04-28 00:19:28 +00:00
kipp%netscape.com 498d12a91d Support revised first-letter layout 1999-04-27 22:10:51 +00:00
troy%netscape.com faca172c4e Added GetFrameType() and renamed GetAnchoredItem() to GetOutOfFrameFlow() 1999-04-23 14:34:48 +00:00
kipp%netscape.com ae2c8b1906 Fixed up child incremental reflow to only reflow the necessary number of lines (hopefully) 1999-04-21 19:58:38 +00:00
kipp%netscape.com 438563d4ab Fixed up insertion code to support inserting blocks; tweaked FirstChild impl to work better; removed some no longer needed code 1999-04-20 21:51:39 +00:00
troy%netscape.com 61f5993635 Change to atoms 1999-04-20 18:22:28 +00:00
troy%netscape.com f261935dc5 Commented out code in GetAdditionalChildListName() that checked whether
there was a bullet and conditionally nsLayoutAtoms::bulletList because
that change broke absolute positioning (area frame depends on the index
numbers)
1999-04-20 05:03:29 +00:00
kipp%netscape.com 1255af7d56 Work around append frames bug (by breaking insert!) for now; added some asserts hither and yon to help prevent furthur regressions like this 1999-04-20 03:42:32 +00:00
kipp%netscape.com 9b1eb0d670 Implement first-line support; update some api's to use nsIPresContext*'s instead of nsIpresContext&'s 1999-04-20 00:27:43 +00:00
joki%netscape.com 4035f53372 Fix event handling on background areas of tags. 1999-04-13 21:29:08 +00:00
troy%netscape.com 4fda80d9f5 Added ReparentFrameView() and changed the block and inline code
to call it when pushing/pulling frames
1999-04-11 04:22:00 +00:00
kipp%netscape.com b08b9a5803 Support clip property; fix bug 4836 and speed things up slightly by avoiding max-element-size computations when not needed 1999-04-10 17:31:45 +00:00
kipp%netscape.com 3663188f2f Implement frame sliding during incremental reflow; fixed to not double factor in the delta-y 1999-04-03 21:54:00 +00:00
kipp%netscape.com 96a37f5a98 Reworked the state recovery logic for incremental reflow 1999-04-03 18:59:01 +00:00
kipp%netscape.com 53aca2150f Reflow floater frames using the block reflow context 1999-04-01 01:37:36 +00:00
kipp%netscape.com 928bd4aed8 Removed unsupported css2 'compact' support ; fixed bug #2013 with floater placement 1999-03-31 04:10:27 +00:00
kipp%netscape.com 8f767aaa79 Use shared is-html-paragraph method; fixed handling of floater widths for bug #2949 1999-03-29 23:44:45 +00:00
warren%netscape.com fbb4cabd9e PR_FALSE is not nsnull! 1999-03-27 02:56:52 +00:00
kipp%netscape.com 35f2b08de2 Reworked vertical margin handling; fixed some issues with floater placement and clearing and block element clearing (bugs #1080, #1808, ... 1999-03-27 01:22:14 +00:00
kipp%netscape.com fbe9f400b3 Fixed bugs #1277, #2007 and #1517 and #1918; rendering is improved for floaters and a minimim height rule is now enforced for computed-height situations 1999-03-26 00:39:04 +00:00
peterl%netscape.com 78240897f9 augmented ReResolveStyleContext to capture style change information 1999-03-25 06:43:38 +00:00
kipp%netscape.com 46944cbaf9 Fixed up floater combined area calculations 1999-03-24 15:42:19 +00:00
pierre%netscape.com d9a2c1dc1e Backed out my previous changes because of performance degradation in deeply nested tables. Will increase the stack size in Mac applications instead. 1999-03-23 20:35:38 +00:00
pierre%netscape.com 5607b83b60 fixed #3899 "Raptor doesn't jam": in nsBlockFrame::Reflow, allocated a 4Kb nsLineLayout in the heap rather than on the stack 1999-03-23 08:24:01 +00:00
kipp%netscape.com f6178fb744 Compute floater combined area properly; reflow floaters when placed including below-current-line floaters 1999-03-23 04:28:20 +00:00
kipp%netscape.com 39cd6b3ecf Handle both left or right floaters impacting a line; fixed assert to be more accurate 1999-03-23 01:33:36 +00:00
kipp%netscape.com ac6b1bc50e Improve max-element-size computations and diagnostics 1999-03-22 23:03:31 +00:00
kipp%netscape.com d535f648b4 More cleanup of the combined-area computations; make sure we render every line when we have outside children; fixed up max-element-size computations to not double count floaters 1999-03-22 22:42:30 +00:00
kipp%netscape.com 9a62e6de59 Cleaned up combined area calculations 1999-03-22 20:46:09 +00:00
kipp%netscape.com 61b80f3e4d Support redo-reflow for lines to handle reflow around large floaters 1999-03-21 01:15:12 +00:00
kipp%netscape.com 8746b19b03 Use CRAZY macros for debug noise 1999-03-20 21:57:03 +00:00
kipp%netscape.com 78ca5a7bc4 Reworked the way that the final metrics are computed; support min/max width/height; track max-element-size issues better; disabled compact frame handling 1999-03-20 19:40:13 +00:00
kipp%netscape.com 8dc44985fa Fixed centering of list bullets (bug #4040) 1999-03-20 01:37:43 +00:00
kipp%netscape.com 80cfec53e8 Fix wide layout bug in todays build; fixed bug #4013 as well and bug #2589 1999-03-19 23:05:56 +00:00
kipp%netscape.com f7b3921a2c Spanked to collapse inline-reflow with line-layout into line-layout; fixed bugs #1278, #1990, #3527, #1670, etc. 1999-03-18 21:03:25 +00:00
kipp%netscape.com b624e23bf2 Fixed numerous frame removed bugs (bug #3262) 1999-03-16 19:36:00 +00:00
kipp%netscape.com 4d444e2f13 Compute combined-area more sanely; handle another nasty top margin bug (1910) 1999-03-08 19:24:07 +00:00
kipp%netscape.com 49b30b8c01 Cleanup state recomputation; fix bug # 3453 crasher; debug out some max-element-size issues 1999-03-05 19:25:44 +00:00
kipp%netscape.com 413f276f42 nsBlockReflowState no longer is-a nsHTMLReflowState; fixes to numerous bugs; reworked to use computed values from reflow-state 1999-03-05 04:21:32 +00:00
kipp%netscape.com 4f092c66e6 Removed ifdef'd out code 1999-02-26 19:22:20 +00:00
kipp%netscape.com 07757d98e5 Find text runs more often (bug #3278, 3265); floaters are now handled mostly by the frame construction code 1999-02-26 17:04:44 +00:00
vidur%netscape.com 7d78aa4ffc Made style reresolution propogate down to the bullet frames for list items. Added list related attribute tests. 1999-02-25 19:14:35 +00:00
troy%netscape.com f19915b56d Removed nsIFrame::CreateContinuingFrame() 1999-02-25 05:31:15 +00:00
troy%netscape.com dfdacc8159 Changed nsIFrame::Init() to take an additional parameter 1999-02-25 03:27:57 +00:00
troy%netscape.com 8dfabdf1a8 Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references
1999-02-24 04:48:08 +00:00
kipp%netscape.com 34c5579c2c Compute minimum-line-height and store it into the inline-reflow context 1999-02-23 19:32:00 +00:00
vidur%netscape.com 49aff034c4 Fixed casing for nsCOMPtr inclusion 1999-02-23 19:22:53 +00:00
vidur%netscape.com 6cf6986695 Added nsIStyleSheetLinkingElement interface and implemented it for LINK and STYLE elements. Got attribute modifications for lists and list items working (including correct renumbering of lists when attribute values change). 1999-02-23 19:18:12 +00:00
kipp%netscape.com 699c2eb67a Process bullets better so that they are vertically aligned properly 1999-02-18 22:22:55 +00:00
kipp%netscape.com 0ea08035f5 Fixed bug #3161 - removed bogus assertion 1999-02-18 18:25:45 +00:00
troy%netscape.com d58c811cea Fixed build bustage 1999-02-12 18:18:34 +00:00
kipp%netscape.com 5a554d526e COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
troy%netscape.com b27d9f730e API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor 1999-02-11 15:56:23 +00:00
troy%netscape.com 0bc9602c9d Re-ordered DeleteFrame() code to fix a FMR 1999-02-10 18:12:24 +00:00
troy%netscape.com c37ccfbc4c Changed GetNextSibling() to use a pointer argument instead of a reference 1999-02-10 06:13:38 +00:00
troy%netscape.com 5c3d1395f3 Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references
1999-02-10 05:38:18 +00:00
troy%netscape.com a9159f71d6 Changed GetAdditionalChildListName() and FirstChild() to use ** instead
of *&
1999-02-10 02:25:01 +00:00
troy%netscape.com 40e3d2b1c8 Changed GetParent() to use ** instead of *& 1999-02-10 01:36:30 +00:00
troy%netscape.com c9c1fa187e Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
kipp%netscape.com dfa1be4f46 Whacked away nsBaseIBFrame and BLOCK_IS_INLINE cruft 1999-02-09 17:31:33 +00:00
kipp%netscape.com 72df44b025 Fixup absolute positioning by temporarily generating old style reflow commands when the list-name is not null; temporarily use FrameAppended instead of ReflowDirty for append operations 1999-02-03 19:09:24 +00:00
kipp%netscape.com 7eda459f4a Changed base-ib-frame to implement AppendFrames/InsertFrames/RemoveFrame directly; changed args to DoRemoveFrame; updated the anonymous block to have a slightly different method set to manipulate its children 1999-02-02 17:31:09 +00:00
kipp%netscape.com 731cf6ce9d Fixed invocation bug that mac compiler caught 1999-02-01 19:08:30 +00:00
kipp%netscape.com 48c2691613 Implement anonymous block frame code; fixup base class InsertNewFrames to support multiple frame insertion 1999-02-01 17:29:37 +00:00
harishd%netscape.com 1844f0a29c Passing stylecontext into Paintborder() 1999-01-22 22:25:00 +00:00
troy%netscape.com 3a6b91ec12 Changed nsHTMLReflowState to compute 'offsets' for relatively positioned
elements
1999-01-16 20:58:17 +00:00
kipp%netscape.com d95b57f509 Update List implementations to use GetAdditionalChildLists so that all lists of children are dumped out automatically 1999-01-16 00:19:10 +00:00
kipp%netscape.com 06d2d8efb3 Spanked away SizeOf methods and nsIListFilter 1999-01-16 00:00:50 +00:00
kipp%netscape.com a9e0e05f2b Switch to using nsFrameList for frame lists 1999-01-15 22:53:39 +00:00
troy%netscape.com 5284506712 Fix for bug #1998. Now we render the background image over the padding area and not over the border area 1999-01-15 18:25:58 +00:00
troy%netscape.com 5d8b4656eb Removed the content-parent frame pointer. Now we just have the one geometric
parent
1999-01-14 05:16:23 +00:00
troy%netscape.com 8ac6e31715 Fix for bug #2276, and some initial support for 'right' and 'bottom'
for absolutely positioned elements
1999-01-13 06:37:31 +00:00
kipp%netscape.com 9088d3fb1e Use new flag defines 1999-01-12 16:42:03 +00:00
troy%netscape.com 59d1bc8ea5 Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"
1999-01-05 23:31:18 +00:00
kipp%netscape.com eedfe48223 Reinstated the last set of checkins that were backed out 1999-01-05 23:01:54 +00:00
donm%netscape.com 4de9f3ce79 backing out changes against a long red tree. would like to clear
the hook.  -donm
1999-01-05 18:16:05 +00:00
kipp%netscape.com 1bb63c7c14 Fix handling of removed-child incremental reflow to no longer crash (bug #1941); also disabled incremental behavior for remove and inserted for now so that layout looks correct 1999-01-05 17:50:41 +00:00
troy%netscape.com d41efd6b76 Moved enum and replaced it with #defines 1999-01-03 00:31:46 +00:00
troy%netscape.com 781a43ae69 Changed width/height constraints in nsHTMLReflowState struct 1998-12-30 17:50:00 +00:00
troy%netscape.com e1f9e8b29f Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code
1998-12-29 03:38:16 +00:00
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