sspitzer%netscape.com
b62c28c988
fix crasher when clicking on a text area. bug #38897 .
2000-05-11 08:41:35 +00:00
mjudge%netscape.com
96a4bde93e
need to check for independent selection to grab mousedown state. will change this to be implemented by selectioncontroller later
2000-05-11 04:50:16 +00:00
mjudge%netscape.com
a89f9e3c80
changing way we access caret. use the selection controller whenever possible. because it will make the caret do the right thing even when we have multiple selections accessing same caret.
2000-05-11 04:25:43 +00:00
buster%netscape.com
4b232cf79f
effectively removed area frame
...
work troy was holding in his tree
r=buster
also fixed bugs 26952, 30944, 36022
r=troy
2000-05-09 05:06:16 +00:00
mjudge%netscape.com
9a80281cc8
adjusting how we get nsIFrameSelection. maybe we can QI from SelectionController
2000-05-08 03:59:53 +00:00
troy%netscape.com
8b0eb04e08
Reinstated clipping code which had been backed out because it caused
...
a problem for XUL layout. I added a workaround for the XUL problem
2000-04-25 04:43:11 +00:00
putterman%netscape.com
af52293cd0
Backing out troy's changes to fix various UI blocker bugs.
2000-04-24 22:15:55 +00:00
troy%netscape.com
73fc3dde30
Changes to bring clipping inline with upcoming CSS2 errata
2000-04-23 00:56:16 +00:00
rods%netscape.com
9d45d84767
Add ifdef'ed Performance Reflow Counting code
2000-04-21 14:59:47 +00:00
troy%netscape.com
47ea6dc9bd
b=36202 Patch from roc+moz@cs.cmu.edu that makes sure we invalidate if
...
necessary when pulling up frames
2000-04-19 03:12:13 +00:00
buster%netscape.com
a77bee1567
one line of debug code accidentally slipped in. Removed.
2000-04-17 15:03:55 +00:00
buster%netscape.com
2fd6bc2c33
bug 588 (text justification) for Robert O'Callahan <roc+moz@cs.cmu.edu>
...
r=buster
bug 18545 ([FLOAT] Problem Centering <TABLE> with <DIV> tag)
r=troy
bugs 18827, 19579, 22327 24782, 26512, 30124, 31849, 32846 (floater behavior wrong)
The primary change here is to determine if a block is impacted by a floater, and if so
mark the block's lines dirty when appropriate.
r=troy
no bug number. performance work. reduced the size of some reflow data structures by
collapsing multiple fields into a single bit field.
r=troy
2000-04-17 14:40:46 +00:00
nisheeth%netscape.com
ae1909623b
Fix for bug 30958: Reflow commands are now processed asynchronously all the time. The semantics of the API for queuing and processing reflow commands has changed. Now, AppendReflowCommand() initiates an asynchronous reflow event and all reflow command processing happens when that event fires. It is no longer possible for consumers outside the presentation shell to call ProcessReflowCommands() synchronously. Because of this change, reflow locks are no longer needed and have been removed.
2000-04-17 07:13:57 +00:00
mjudge%netscape.com
949cea5712
table cell selection now shows up background. also small fix for nsBlockFrame to do the right thing for mouse capture.
2000-04-13 20:21:32 +00:00
mjudge%netscape.com
3ad06c4f40
fix for setcapture. passes events to the nsHTMLFrame's areaframe when events are trapped to a given frame's view.
2000-04-12 03:04:11 +00:00
jim_nance%yahoo.com
005e33f06e
Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
...
days for module owners to comment on. r=troy@netscape.com
2000-03-30 03:21:26 +00:00
buster%netscape.com
69807e3b4b
bug 29595 (and others)
...
fixes layout of pages where a single line is impacted by 2 or more floaters
r=troy
2000-03-22 23:19:10 +00:00
dbaron%fas.harvard.edu
fd5dc605d2
Fix event targetting bugs by using paint layers in GetFrameForPoint, testing for visibility, and trying GetFrameForPoint on additional views if one fails. r=joki@netscape.com(, hyatt@netscape.com) b=12232,20051,21304,24474,26785, and remaining issues from 23161.
2000-03-22 02:43:08 +00:00
pierre%netscape.com
4b5db8f52f
Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible).
In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame.
In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701.
2000-03-17 10:15:13 +00:00
troy%netscape.com
5386fb954a
b=24343 r=karnaze@netscape.com Changes so we properly lay out after changing
...
the font using the pref UI. Block and table code changed to handle
eReflowReason_StyleChange
2000-03-15 15:16:03 +00:00
troy%netscape.com
9c0bc3c815
b=24506 r=buster@netscape.com When calculating the width of a block frame
...
and it's an unconstrained reflow, then make sure to include the right
margin
2000-03-14 04:03:33 +00:00
troy%netscape.com
e08af64528
Now line boxes are allocated out of the pres shell arena. This reduces the
...
overhead of memory allocation, and it gets us recycling which speeds up
resize reflows
2000-03-12 03:00:51 +00:00
buster%netscape.com
ef92b77d4d
fixed bug 25510 and 28084
...
r=troy
a=jar
2000-02-22 22:06:19 +00:00
buster%netscape.com
8453813a13
bug 27927
...
r=troy
2000-02-16 04:11:37 +00:00
buster%netscape.com
00e6dbf1ef
continuing work on bug 25510
...
r=troy
2000-02-16 00:50:06 +00:00
dbaron%fas.harvard.edu
7654eb97da
Fix bug 15428 as suggested by VYV03354@nifty.ne.jp . Stop using 0 as the initial values for min and max of inline box contents so that lines that do not (vertically) contain their own baseline are sized correctly. Also, correctly size BR frames using their line-height (for strict-mode only).
...
Fix bugs 24186, 26996, and 26998 by reworking the quirks-mode line-height handling so that inline elements that do not have text as children (or meet a few other conditions that show the author wants real CSS support) will not increase the size of the line, but will be as close to their correct size as possible without enlarging the line. This fix includes emulation of the strange Nav4/IE quirk that a block's line-height is enforced on the first line of LI elements and the last line of LI, DD, and DT elements. Many of the changes are removing an earlier fix for 24186.
r=buster
2000-02-15 04:26:44 +00:00
buster%netscape.com
8402d07175
bug 25510 r=troy
...
bug 26289 for roc+moz@cs.cmu.edu , r=buster
2000-02-14 01:52:22 +00:00
troy%netscape.com
40b77daa44
b=26727 r=jfrancis@netscape.com Changed MarkLineDirty() to always mark the
...
line dirty even if it also marks the preceding line dirty
2000-02-07 15:36:08 +00:00
pp%ludusdesign.com
43d7ba4273
Converting ::GetIID() into NS_GET_IID(). Bug #20232 . r=scc, r=mozbot
2000-02-02 22:24:56 +00:00
buster%netscape.com
52bc94073f
fixing very minor compile-time error that only shows up if you have certain
...
debug flags set. r=none
2000-02-02 07:37:18 +00:00
troy%netscape.com
9cb902de91
b=25245. Fixed some problems in ReflowLine() when reflowing to incrementally
...
update the maximum width
2000-01-30 18:42:23 +00:00
troy%netscape.com
7c5823dbda
b=25223. Block code now does a better job of determing where the floater
...
should go before reflowing it
2000-01-29 00:47:33 +00:00
troy%netscape.com
87f43adf5c
b=25049. Fixed a problem with max-element-size not being calculated
...
correctly for a floated table
2000-01-28 03:12:30 +00:00
troy%netscape.com
ccbec76759
b=24936, r=nisheeth@netscape.com Changed block code to set mNextRCFrame to
...
NULL after reflowing the frame, so if we reflow it again we don't think it's
an incremental reflow
2000-01-26 22:18:33 +00:00
troy%netscape.com
73a3709284
b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
...
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
nisheeth%netscape.com
762fd5b61c
r=troy. Changed block, inline, and text frames to call the parent's ReflowDirtyChild() method instead of generating reflow commands.
2000-01-19 03:58:05 +00:00
attinasi%netscape.com
195660d7fa
Added ASSERTION and run-time check for SpaceManager before dereferencing it. r=rods,pierre
2000-01-18 15:36:36 +00:00
joki%netscape.com
bb80e9df7d
Fix multiple event targetting bugs (23161, 10514, 13213, 16548, 19496, 12231) and reinstate the onchange event for text fields (bug 22472). r:rods
2000-01-18 15:17:31 +00:00
troy%netscape.com
0129f52c00
b=23388. Make sure mIsTopMarginRoot is set correctly in nsBlockReflowState
...
constructor
2000-01-13 02:05:31 +00:00
nisheeth%netscape.com
5bac2cf869
r=troy. nsContainerFrame::ReflowDirtyChild() always generates a reflow command targeted at its child. nsInlineFrame::ReflowDirtyChild() always passes up the reflow request to its parent. nsBlockFrame::ReflowDirtyChild() no longer has code for checking whether its parent is an area frame.
2000-01-12 21:52:58 +00:00
nisheeth%netscape.com
009325d72d
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
0bc4c0eb6c
Ifdef out the call to nsFrame::CreateAndPostReflowCommand() on the Mac build for now.
2000-01-12 10:41:15 +00:00
nisheeth%netscape.com
409aee6ae9
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
1b8b3932a0
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
bd57e59030
More work on getting block frames to incrementally update their
...
maximum width
2000-01-08 03:58:27 +00:00
troy%netscape.com
e1f277616c
Reduced stack space by using PRPackedBool instead of PRBool
2000-01-04 02:59:35 +00:00
troy%netscape.com
1558ba3b1a
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
4ddb903853
Work-in-progress for having maximum width (needed by tables) be updated
...
incrementally
1999-12-30 04:15:45 +00:00
troy%netscape.com
9420612b5a
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
976a6ebb15
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
0864b57fe0
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
7a09644a3d
#ifdef out a printf. r=none
1999-12-07 07:38:16 +00:00
troy%netscape.com
3c7966f705
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
16a944a1e3
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
c86aebb168
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
8d6fa574b2
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
a0640b60c4
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
fe56995443
WillReflow/DidReflow changes and changes to the way view positioning
...
and sizing works
1999-11-19 15:33:29 +00:00
troy%netscape.com
e36c0c9d4c
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
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