3592 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
cf940e7935 Refix bug 116038 without reducing effectiveness of outliner style cache and outliner image cache by using the fix to 121055. Fix leak when clearing outliner image cache. b=130693 r=varga sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@117558 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 02:42:59 +00:00
dbaron%fas.harvard.edu
0b4effd4ea Fix 2 cases where ReResolveStyleContext was broken, causing serious problems with dynamic style reresolution. Change nsIFrame::GetStyleContextProvider to GetParentStyleContextFrame, always use its result rather than using the parent frame in some cases, and move a bit of the complexity into the GetParentStyleContextFrame implementations. Fix block-within-inline case (bug 129350) using a special-previous-sibling frame property and ensuring that NS_FRAME_IS_SPECIAL is copied when frames are split. Fix out-of-flow frame case (bug 88154) by going to the placeholder map and by parenting the placeholder frame style contexts to the style context from their frame parent rather than the out-of-flow frame. b=129350 r=attinasi sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@117556 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 02:38:13 +00:00
attinasi%netscape.com
dbe40cd4b1 Support for proprietary style property to allow composer to force broken image icons. b=58646 r=karnaze sr=kin a=asa
git-svn-id: svn://10.0.0.236/trunk@117496 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 20:14:05 +00:00
alexsavulov%netscape.com
7de8bdc786 fix for bug 100963 r= kmcklusk sr= attinasi a= asa
added region invalidation to cause repainting of areas previously
occupied by a removed line


git-svn-id: svn://10.0.0.236/trunk@117493 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 20:03:41 +00:00
rods%netscape.com
3e0f1a77a9 Generically enables the browser to cache the curent presentation (frames,
views, et.al.) for Print Preview and then enables them to be restored.
It uses a pref and/or checks all the documents to see if any have an "embed" or
a "plugin". Temporarily it checks for framesets and turns on caching also.
I also factored some code in the Init routine so it could be callled for either
creating the new presention or initializing an existing one.
Also, added some safety check code in PrintPage.
Then for the object frame, for PP it doesn't do a paint - this is a temporary fix.
Bug 122048 r=peterl sr=attinasi a=asa


git-svn-id: svn://10.0.0.236/trunk@117481 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 11:43:40 +00:00
peterlubczynski%netscape.com
ee378de566 Fixing ussage of codebase attribute and Java applets loading, bug 130605 patch by adu@sparc.spb.su (Denis Antrushin) r=peterl, sr=beard, a=asa
git-svn-id: svn://10.0.0.236/trunk@117468 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 06:42:10 +00:00
peterlubczynski%netscape.com
96262761f0 Cleaning up dead code left from fix for bug 118721, patch by dbrittain@superscape.com (David Brittain), bug 132262 r=peterl, sr=attinasi, a=scc
git-svn-id: svn://10.0.0.236/trunk@117467 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 06:38:53 +00:00
peterlubczynski%netscape.com
15dfb9e065 Implementing nsIPluginTagInfo2::GetDocumentEncoding(), patch by adu@sparc.spb.su (Denis Antrushin) bug 131197 r=peterl, sr=beard, a=asa
git-svn-id: svn://10.0.0.236/trunk@117465 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 06:33:48 +00:00
attinasi%netscape.com
d0a0308d7e Patched topcrash sites: checking for null before deref. b=121444 r=kmcclusk sr=roc+moz a=asa (drivers)
git-svn-id: svn://10.0.0.236/trunk@117450 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 01:22:31 +00:00
dbaron%fas.harvard.edu
4d91361814 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117345 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:26:36 +00:00
rods%netscape.com
31e57bdbd6 The original patch worked fine for regular documents but didn't work for mail
because of the ordering of nsIWebProgressListeners. Even tho the doc WAS
finished loading the notification goes to mail first abd then it print and then
check to see if it is busy and it comes back that it is.
So instead I have to use two booleans to monitor if the document was asked to
be destroyed while it was preparing to print. This typically happens when the
user click on a click and it takes a while and then they decide to print. So
while the Print Dialog is up the document gets unloaded  and when it returned
back everything is gone.
So when the flow of control returns back from the Print Dialog it checks to see
if it "should" have been destroyed, and if so, it then aborts printing, cleans
and displays a message if the pressed "OK". If they pressed cancel then it
doesn't print the message.
Bug 131174 r=dcone sr=attinasi a=asa


git-svn-id: svn://10.0.0.236/trunk@117317 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 16:48:58 +00:00
cbiesinger%web.de
cf03b9b3e2 bug 104906 r=pavlov sr=tor a=asa
imgRequest::SniffMimeType and nsUnknownDecoder::SniffForImageMimeType should be one function


git-svn-id: svn://10.0.0.236/trunk@117305 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 13:21:33 +00:00
cmanske%netscape.com
0b6789dd9e Allow table cell selection w/o extra keypress in Composer, b=98558, r=mjudge, sr=dveditz, a=asa
git-svn-id: svn://10.0.0.236/trunk@117183 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 15:25:08 +00:00
av%netscape.com
6c3a42c78c Fix for 99324 -- initializing variables, patch by mhammond@skippinet.com.au, r=av, sr=beard, a=scc
git-svn-id: svn://10.0.0.236/trunk@117149 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 04:19:10 +00:00
rods%netscape.com
4cb6b26267 Backing out changes for Bug 131174
git-svn-id: svn://10.0.0.236/trunk@117134 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 00:42:48 +00:00
dbaron%fas.harvard.edu
bcacc9d154 Fix theme switching crash related to menus by regenerating the style contexts in children of menus (which are hidden from ReResolve) after the rest of the ReResolve so that they don't have ancestor style contexts pointing to the old rule tree. b=121055 r=bzbarsky sr=hyatt a=scc
git-svn-id: svn://10.0.0.236/trunk@117116 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:44:45 +00:00
rods%netscape.com
ea7e576f56 This disallows printing or print preview to work if the document is busy.
Meaning it might be still loading or unloading.
Bug 131174 r=dcone a=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@117003 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:50:42 +00:00
darin%netscape.com
8defbf5d26 b=128508 "freeze nsIChannel nsIRequest" r=gagan, sr=rpotts, a=asa
git-svn-id: svn://10.0.0.236/trunk@117002 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:50:33 +00:00
karnaze%netscape.com
4cedce858a bug 124637 - when figuring available width for HRs subtract out both margins. a=asa, sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@116999 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:14:27 +00:00
rods%netscape.com
2bd0f7d51b The patch in nsPageFrame.cpp is insurance to help keep a problem like this from
hanging the browser again.
The patch in nsSimplePageSequence.cpp is the actual fix. I verified that
nsPageFrame patch will stop it from happening.
Bug 132022 r=dcone a=attinasi a=scc


git-svn-id: svn://10.0.0.236/trunk@116970 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 12:34:18 +00:00
kin%netscape.com
39fbbae643 Fix for bug 102615: After changing font color, backspacing
to a previous line does not let caret
                    update position

Modified RemoveFrame() so that it generates a reflow
command when removing a <br> from an inline with a next-in-flow.

r=dbaron@fas.harvard.edu  sr=attinasi@netscape.com  a=scc@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@116937 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 01:44:43 +00:00
bnesse%netscape.com
3bca20a8d9 Fix for bug 126578. Initialize the event record on OS X without using the system's EventAvail function to eliminate excess window erases and redraws. r=sdagley, sr=beard, a=asa.
git-svn-id: svn://10.0.0.236/trunk@116891 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 22:10:45 +00:00
smontagu%netscape.com
395a7140b7 Improve performance by making nsWordFrame in nsLineLayout an nsDeque instead of an nsAutoVoidArray. Bug 121967, r=timeless, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@116883 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 21:57:45 +00:00
peterlubczynski%netscape.com
aa949ea765 Cleaning up nsPluginInstanceOwner::GetHeight and ::GetWidth bug 40185 r=av sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@116863 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 15:39:45 +00:00
alecf%netscape.com
f4ad21ae3a a further nsString api reduction: remove the last case-insensitive PRUnichar*-to-PRUnichar* comparisons, moving to new API, and remove old methods from nsString. r=dougt, sr=jag a=scc
git-svn-id: svn://10.0.0.236/trunk@116842 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 06:46:56 +00:00
attinasi%netscape.com
89c8d18cf5 Be sure to initialize out-param no matter what. b=127360 r=aaronl sr=brendan a=asa (drivers)
git-svn-id: svn://10.0.0.236/trunk@116813 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 00:32:41 +00:00
peterlubczynski%netscape.com
215fcc3f0f Remove JAVA_CLASS_ID support from OBJECT tag bug 108557 patch by Denis Antrushin (adu@sparc.spb.su) r=peterl sr=beard a=asa
git-svn-id: svn://10.0.0.236/trunk@116766 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-18 00:01:00 +00:00
karnaze%netscape.com
009e7ede52 bug 24000 - implement page-break-before/after:always using new nsPageBreakFrame. Tables handle page breaks internally. a=asa, sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@116758 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-17 21:35:08 +00:00
dbaron%fas.harvard.edu
d2693dd0ff Remove obsolete NEW_CONTEXT_PARENTAGE_INVARIANT ifdefs, and add a few bits of debugging code. b=120888 sr=attinasi r=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@116718 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 15:26:56 +00:00
pavlov%netscape.com
c04a410905 fixing bug 131231 r=valeski sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@116703 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 05:46:26 +00:00
rbs%maths.uq.edu.au
77105b9e58 Fix bug 101180 - the minimum line-height wasn't applied at the first reflow, causing the line to flicker at the next reflow, r=dbaron, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@116634 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 08:03:18 +00:00
mkaply%us.ibm.com
37a03f5b17 OS/2 bustage - need cast here
git-svn-id: svn://10.0.0.236/trunk@116462 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 04:01:56 +00:00
nhotta%netscape.com
d0aa14c5a0 For IMAGE SRC/FRAME SRC, set a charset from the document and pass it to NS_NewURI,
bug 127282, r=attinasi, sr=darin, a=asa.


git-svn-id: svn://10.0.0.236/trunk@116435 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 22:26:11 +00:00
karnaze%netscape.com
d2766aacef bug 128804 - moved optimization of text controls to nsBlockReflowState and initialized it earlier. a=dbaron, sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@116409 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:48:52 +00:00
karnaze%netscape.com
1c08f43c69 bug 105742 - paint the outline of an image after the image content. a=roc, sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@116407 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:35:52 +00:00
bzbarsky%mit.edu
feb68c2f7a Account for scrollbar in incremental reflow of fixed-pos elements. Bug
130002, r=dbaron, sr=attinasi, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@116405 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:29:33 +00:00
karnaze%netscape.com
e4f8ba49ca bug 92868 - Simplified the style context provider mechanism, changed frame manager to re-resolve the provider first and to use correct style context in a few other places. a=roc, sr=attinasi, r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@116402 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:21:35 +00:00
rods%netscape.com
cdc9d9dd89 Change getters of widgets to nsCOMPtrs to get rid of leaks.
Bug 129933 r=dcone sr=attinasi a=roc


git-svn-id: svn://10.0.0.236/trunk@116394 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 14:16:57 +00:00
badami%netscape.com
229bfc35d1 Newlines in links should be stripped when selecting "Copy Link Location"
bug 77522 r=harishd sr=jst a=asa patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@116370 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 05:29:31 +00:00
nisheeth%netscape.com
c4abeaed7a Ongoing fix for bug 81446. r=peter lubcynzski. sr=jst. a=asa. Fixes leaks of PARAM elements which now get destroyed when the document goes away. This fix ddoes away with 394206 bytes of leaks described in bugs 129423, 129424, 129425, 129429. We still leak memory across reloads of the same page so bug 81446 is being left open.
git-svn-id: svn://10.0.0.236/trunk@116348 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-11 21:52:32 +00:00
rods%netscape.com
5a7f899de6 The problem is that on windows widget can only be positioned to a y coord of
32767. This ends up being about 32 pages. The nsPageFrame's view creates a
widget for clipping absolutely positioned content and plugins.

This fix will allow a document to have up to 32 pages of clipping after that it
stops creating the widget. The down side is that any absolutely positioned
content or plugins beyond page 32 will not be clippe din print preview.
Also, fixed a leaked widget
Bug 127263 r=dcone sr=attinasi a=asa


git-svn-id: svn://10.0.0.236/trunk@116308 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 15:40:51 +00:00
aaronl%netscape.com
faab731ad7 Bug 129628. Crash in nsFrameManager::Destroy. r=dbaron, sr=shaver, a=asa
git-svn-id: svn://10.0.0.236/trunk@116301 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 06:47:42 +00:00
aaronl%netscape.com
aab415c282 Fixes bug 66597, bug 103284, bug 114440, bug 120023, bug 128741, bug 19259. Cleans up browse with caret, makes it work with XML content docs, creates keyboard toggle for it (Accel+shift+K), synchronizes focus and document selection so that users can tab navigate relative to their last find or click in text, or vice versa, makes tabbing move relative to named anchor that has been jumped to. r=bryner, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@116297 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 06:21:48 +00:00
shaver%mozilla.org
e045387a83 reversion of patch for 92868, to repair severe regression (129827, a=drivers
git-svn-id: svn://10.0.0.236/trunk@116295 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 06:16:01 +00:00
mkaply%us.ibm.com
ba959ec54e #41924
r=timeless, sr=attinasi, a=asa
Display alt text if the user has blocked all images.


git-svn-id: svn://10.0.0.236/trunk@116259 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-09 05:31:35 +00:00
alexsavulov%netscape.com
bb4d45ce8c checked in the wrong version of the patch
PREVIOUS CHECKIN COMMENT

fix for bug 122200 - floaters regression and fix for bug 99461 - floating
tables will be constrained in the same line if they can fit
quirks mode only
sr= attinasi, r= kin, a= asa


git-svn-id: svn://10.0.0.236/trunk@116184 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 21:23:55 +00:00
alexsavulov%netscape.com
66e4b80082 fix for bug 122200 - floaters regression and fix for bug 99461 - floating
tables will be constrained in the same line if they can fit
quirks mode only
sr= attinasi, r= kin, a= asa


git-svn-id: svn://10.0.0.236/trunk@116174 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 20:25:54 +00:00
bnesse%netscape.com
4e7532e1a0 Fix for bug 129151. Initialize all fields in the message object. r=beard, sr=alecf, a=asa.
git-svn-id: svn://10.0.0.236/trunk@116162 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 19:42:44 +00:00
cbiesinger%web.de
3d4fda5654 partially fixes bug 41333, Adding a new image type is way too complicated
r=pavlov sr=tor a=asa


git-svn-id: svn://10.0.0.236/trunk@116157 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 18:58:57 +00:00
peterlubczynski%netscape.com
e73bf04c8b Fix for windowless plugins not painting in the right place, bug 118721 patch by mailto:dbrittain@superscape.com r=peterl sr=roc+moz a=asa
git-svn-id: svn://10.0.0.236/trunk@116154 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 15:49:43 +00:00