mjudge%netscape.com
2f9bd42697
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.
...
git-svn-id: svn://10.0.0.236/trunk@69180 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 04:25:43 +00:00
buster%netscape.com
6be2ec13df
effectively removed area frame
...
work troy was holding in his tree
r=buster
also fixed bugs 26952, 30944, 36022
r=troy
git-svn-id: svn://10.0.0.236/trunk@68804 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 05:06:16 +00:00
mjudge%netscape.com
ef3e852f95
adjusting how we get nsIFrameSelection. maybe we can QI from SelectionController
...
git-svn-id: svn://10.0.0.236/trunk@68626 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-08 03:59:53 +00:00
troy%netscape.com
2831676fb5
Reinstated clipping code which had been backed out because it caused
...
a problem for XUL layout. I added a workaround for the XUL problem
git-svn-id: svn://10.0.0.236/trunk@67078 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:43:11 +00:00
putterman%netscape.com
97e6e61f3c
Backing out troy's changes to fix various UI blocker bugs.
...
git-svn-id: svn://10.0.0.236/trunk@66999 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:15:55 +00:00
troy%netscape.com
e90db6dfb9
Changes to bring clipping inline with upcoming CSS2 errata
...
git-svn-id: svn://10.0.0.236/trunk@66887 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 00:56:16 +00:00
rods%netscape.com
fbf8aca833
Add ifdef'ed Performance Reflow Counting code
...
git-svn-id: svn://10.0.0.236/trunk@66719 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:59:47 +00:00
troy%netscape.com
acf6fe34f4
b=36202 Patch from roc+moz@cs.cmu.edu that makes sure we invalidate if
...
necessary when pulling up frames
git-svn-id: svn://10.0.0.236/trunk@66394 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:12:13 +00:00
buster%netscape.com
00671105d4
one line of debug code accidentally slipped in. Removed.
...
git-svn-id: svn://10.0.0.236/trunk@66204 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 15:03:55 +00:00
buster%netscape.com
2fa9ad90e8
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
git-svn-id: svn://10.0.0.236/trunk@66201 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:40:46 +00:00
nisheeth%netscape.com
68adc31658
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.
...
git-svn-id: svn://10.0.0.236/trunk@66183 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 07:13:57 +00:00
mjudge%netscape.com
b5c40f47f1
table cell selection now shows up background. also small fix for nsBlockFrame to do the right thing for mouse capture.
...
git-svn-id: svn://10.0.0.236/trunk@65860 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:21:32 +00:00
mjudge%netscape.com
c25a8377d7
fix for setcapture. passes events to the nsHTMLFrame's areaframe when events are trapped to a given frame's view.
...
git-svn-id: svn://10.0.0.236/trunk@65649 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 03:04:11 +00:00
jim_nance%yahoo.com
b1ccfbf2cb
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
git-svn-id: svn://10.0.0.236/trunk@64566 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 03:21:26 +00:00
buster%netscape.com
bf63049426
bug 29595 (and others)
...
fixes layout of pages where a single line is impacted by 2 or more floaters
r=troy
git-svn-id: svn://10.0.0.236/trunk@63783 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 23:19:10 +00:00
dbaron%fas.harvard.edu
0936aaafab
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.
...
git-svn-id: svn://10.0.0.236/trunk@63689 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 02:43:08 +00:00
pierre%netscape.com
c84deb6d8c
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.
git-svn-id: svn://10.0.0.236/trunk@63284 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 10:15:13 +00:00
troy%netscape.com
00091b65e3
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
git-svn-id: svn://10.0.0.236/trunk@63049 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 15:16:03 +00:00
troy%netscape.com
8f7ef0638a
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
git-svn-id: svn://10.0.0.236/trunk@62844 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 04:03:33 +00:00
troy%netscape.com
d4f29d1b5f
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
git-svn-id: svn://10.0.0.236/trunk@62680 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 03:00:51 +00:00
buster%netscape.com
8876d68b6f
fixed bug 25510 and 28084
...
r=troy
a=jar
git-svn-id: svn://10.0.0.236/trunk@61440 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-22 22:06:19 +00:00
buster%netscape.com
bb33a00be3
bug 27927
...
r=troy
git-svn-id: svn://10.0.0.236/trunk@61045 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 04:11:37 +00:00
buster%netscape.com
ad34728fe0
continuing work on bug 25510
...
r=troy
git-svn-id: svn://10.0.0.236/trunk@60983 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 00:50:06 +00:00
dbaron%fas.harvard.edu
f1cd9a202b
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
git-svn-id: svn://10.0.0.236/trunk@60795 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 04:26:44 +00:00
buster%netscape.com
daf94d0477
bug 25510 r=troy
...
bug 26289 for roc+moz@cs.cmu.edu , r=buster
git-svn-id: svn://10.0.0.236/trunk@60677 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 01:52:22 +00:00
troy%netscape.com
ca27394aa8
b=26727 r=jfrancis@netscape.com Changed MarkLineDirty() to always mark the
...
line dirty even if it also marks the preceding line dirty
git-svn-id: svn://10.0.0.236/trunk@59993 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 15:36:08 +00:00
pp%ludusdesign.com
a2927ce43e
Converting ::GetIID() into NS_GET_IID(). Bug #20232 . r=scc, r=mozbot
...
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
buster%netscape.com
a7432b62d5
fixing very minor compile-time error that only shows up if you have certain
...
debug flags set. r=none
git-svn-id: svn://10.0.0.236/trunk@59507 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 07:37:18 +00:00
troy%netscape.com
1fe10fe3f2
b=25245. Fixed some problems in ReflowLine() when reflowing to incrementally
...
update the maximum width
git-svn-id: svn://10.0.0.236/trunk@59233 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-30 18:42:23 +00:00
troy%netscape.com
9866fd9793
b=25223. Block code now does a better job of determing where the floater
...
should go before reflowing it
git-svn-id: svn://10.0.0.236/trunk@59137 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 00:47:33 +00:00
troy%netscape.com
345ea758ec
b=25049. Fixed a problem with max-element-size not being calculated
...
correctly for a floated table
git-svn-id: svn://10.0.0.236/trunk@59008 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 03:12:30 +00:00
troy%netscape.com
206226ce30
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
git-svn-id: svn://10.0.0.236/trunk@58819 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:18:33 +00:00
troy%netscape.com
60471abd92
b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
...
child list and changed ReparentFrameView() to check it.
git-svn-id: svn://10.0.0.236/trunk@58373 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 01:16:50 +00:00
nisheeth%netscape.com
990dc941ec
r=troy. Changed block, inline, and text frames to call the parent's ReflowDirtyChild() method instead of generating reflow commands.
...
git-svn-id: svn://10.0.0.236/trunk@58221 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 03:58:05 +00:00
attinasi%netscape.com
0bd01644df
Added ASSERTION and run-time check for SpaceManager before dereferencing it. r=rods,pierre
...
git-svn-id: svn://10.0.0.236/trunk@58100 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 15:36:36 +00:00
joki%netscape.com
fb23199c5a
Fix multiple event targetting bugs (23161, 10514, 13213, 16548, 19496, 12231) and reinstate the onchange event for text fields (bug 22472). r:rods
...
git-svn-id: svn://10.0.0.236/trunk@58097 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 15:17:31 +00:00
troy%netscape.com
1b4ab66907
b=23388. Make sure mIsTopMarginRoot is set correctly in nsBlockReflowState
...
constructor
git-svn-id: svn://10.0.0.236/trunk@57601 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 02:05:31 +00:00
nisheeth%netscape.com
8978d5a35b
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.
...
git-svn-id: svn://10.0.0.236/trunk@57571 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 21:52:58 +00:00
nisheeth%netscape.com
77cbdbf5e2
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.
...
git-svn-id: svn://10.0.0.236/trunk@57555 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 17:43:18 +00:00
nisheeth%netscape.com
af4a0a5bb4
Ifdef out the call to nsFrame::CreateAndPostReflowCommand() on the Mac build for now.
...
git-svn-id: svn://10.0.0.236/trunk@57540 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 10:41:15 +00:00
nisheeth%netscape.com
59dbaae9fb
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.
...
git-svn-id: svn://10.0.0.236/trunk@57522 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 08:28:24 +00:00
troy%netscape.com
7828a4605a
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
git-svn-id: svn://10.0.0.236/trunk@57259 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-10 05:14:47 +00:00
troy%netscape.com
7ecb959a88
More work on getting block frames to incrementally update their
...
maximum width
git-svn-id: svn://10.0.0.236/trunk@57170 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 03:58:27 +00:00
troy%netscape.com
7daf58d343
Reduced stack space by using PRPackedBool instead of PRBool
...
git-svn-id: svn://10.0.0.236/trunk@56709 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-04 02:59:35 +00:00
troy%netscape.com
a9936ebc11
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
git-svn-id: svn://10.0.0.236/trunk@56652 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-03 04:32:13 +00:00
troy%netscape.com
1fce58468f
Work-in-progress for having maximum width (needed by tables) be updated
...
incrementally
git-svn-id: svn://10.0.0.236/trunk@56615 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-30 04:15:45 +00:00
troy%netscape.com
6e46435b1d
b=19198, a=chofmann. Fixed RecoverStateFrom() to use the update conbined area when
...
invalidating. This fixes a regression introduced in version 3.308
git-svn-id: svn://10.0.0.236/trunk@55811 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-09 21:40:37 +00:00
troy%netscape.com
23414d53c9
Removed code from PrepareChildIncrementalReflow() that was marking all lines
...
dirty if max-element-size was requested.
git-svn-id: svn://10.0.0.236/trunk@55682 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:05:51 +00:00
troy%netscape.com
aa323aac76
b=16456. Removed some debug assertion code that was incorrect and caused
...
us to hit asserts when printing
git-svn-id: svn://10.0.0.236/trunk@55646 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 23:41:48 +00:00
sfraser%netscape.com
e232c6c064
#ifdef out a printf. r=none
...
git-svn-id: svn://10.0.0.236/trunk@55562 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 07:38:16 +00:00