Commit Graph

742 Commits

Author SHA1 Message Date
nisheeth@netscape.com
10a6d8ff6d Removing the "ifndef XP_MAC" around the call to nsFrame::CreateAndPostReflowCommand(). The real problem, identified by Scott Putterman, was that the definition of this function was in a debug only section in nsFrame.cpp. He has moved the function out of the debug only section. 2000-01-12 17:43:18 +00:00
nisheeth@netscape.com
53f128d679 Ifdef out the call to nsFrame::CreateAndPostReflowCommand() on the Mac build for now. 2000-01-12 10:41:15 +00:00
nisheeth@netscape.com
bd43d81d01 r=troy. Reflow commands are now coalesced by block and inline frames. This fixes bug 985 in which we now generate 6 reflow commands instead of 257. 2000-01-12 08:28:24 +00:00
troy@netscape.com
cf5b040d7f Fixed a problem with code that determined whether this was a beginning line.
It wasn't correctly handling the very first line in the block
2000-01-10 05:14:47 +00:00
troy@netscape.com
42284c6625 More work on getting block frames to incrementally update their
maximum width
2000-01-08 03:58:27 +00:00
troy@netscape.com
c9c1cfb2dd Reduced stack space by using PRPackedBool instead of PRBool 2000-01-04 02:59:35 +00:00
troy@netscape.com
402f4784e4 Added new #define NS_SHRINKWRAPWIDTH that specifies that a frame should
shrink wrap its width (paying attention to the maximum computed width). Mostly
complete implementation for block frames
2000-01-03 04:32:13 +00:00
troy@netscape.com
f0465b161b Work-in-progress for having maximum width (needed by tables) be updated
incrementally
1999-12-30 04:15:45 +00:00
troy@netscape.com
b9763fd5e2 b=19198, a=chofmann. Fixed RecoverStateFrom() to use the update conbined area when
invalidating. This fixes a regression introduced in version 3.308
1999-12-09 21:40:37 +00:00
troy@netscape.com
b23ca386d6 Removed code from PrepareChildIncrementalReflow() that was marking all lines
dirty if max-element-size was requested.
1999-12-08 02:05:51 +00:00
troy@netscape.com
5168e91ede b=16456. Removed some debug assertion code that was incorrect and caused
us to hit asserts when printing
1999-12-07 23:41:48 +00:00
sfraser@netscape.com
e81be9a041 #ifdef out a printf. r=none 1999-12-07 07:38:16 +00:00
troy@netscape.com
7abe460751 Change to how overflow is handled for absolutely positioned elements.
We no longer use nsIAraeFrame and now it's folded into the overflow
area in the reflow metrics
1999-12-06 15:49:53 +00:00
hyatt@netscape.com
9a7a1b27f7 Implementing a generalized recycler and arena for all layout frames. Hoping to improve
bug #9489.  Should also definitely fix bug #15916. r=troy
1999-12-04 23:49:50 +00:00
troy@netscape.com
0e836ce640 Added XXX comment to remind me (and Chris) of a problem that needs to
be revisited
1999-12-01 04:50:26 +00:00
troy@netscape.com
d4ed09c310 b=20286. Changed PlaceFloater() so that it repositions any views after
placing the frame
1999-11-30 05:09:08 +00:00
tbogard@aol.net
617bb737a6 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
troy@netscape.com
3b67f2f17c WillReflow/DidReflow changes and changes to the way view positioning
and sizing works
1999-11-19 15:33:29 +00:00
troy@netscape.com
457d913e71 b=17546. Changed block frame code to save/restore space manager when create
a space manager, and changes button code to use the NS_BLOCK_SPACE_MGR flag
when creating the area frame
1999-11-11 06:00:41 +00:00
dmose@mozilla.org
796280940b 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
bdcb9f258d 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
4b6dc3b71b 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
6f42ace227 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
bf2283fba6 Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +00:00
kipp@netscape.com
7f353bdd99 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
5e5f240649 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
9f4c10f01d 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
b8ef6465be Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
troy@netscape.com
b5d5718a17 Removed 5 convenience functions from nsIFrame 1999-10-22 14:53:52 +00:00
kipp@netscape.com
b3fa5a6bf5 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
fdb00751c1 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
7c6bc9bdc0 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
419e62fca8 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
cf89ddc152 oops. for got to check this in last time. bug number is 14795 1999-10-14 23:52:42 +00:00
kipp@netscape.com
ad62fe2e34 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
fb78781fdc 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
1a9b3fe785 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
478af7d03f 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
efbc5776ce 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
6ee4a9bcd5 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
355fa397e5 Added SizeOf() handler for floater information maintained by the
line box
1999-10-02 02:51:03 +00:00
troy@netscape.com
4891628cfd 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
31b27c3e79 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
f0b82b48b2 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
5d30088c56 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
2000556ef0 removed ReResolveStyleContext 1999-09-21 07:56:18 +00:00
troy@netscape.com
66026a6b38 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
926846f460 Reimplement TrimTrailingWhiteSpace 1999-09-21 00:13:50 +00:00
kipp@netscape.com
5029b77e18 Handle right aligned skipped floaters a little better 1999-09-18 00:20:48 +00:00
kipp@netscape.com
51e8e8c7fe Fixed various bugs including incremental list reflow (9742) and some table bugs with right floaters 1999-09-17 23:16:43 +00:00