1693 Commits

Author SHA1 Message Date
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
rods%netscape.com
29613d1e34 Besides turning on the pref, I needed to move the initialization code for
getting the values from the default printer from the DocumentViewer down into
the PrintOptions service. We want it done only the very first time when the PrintSettings is created.
Bug 131852 r=dcone sr=attinasi a=scc


git-svn-id: svn://10.0.0.236/trunk@116971 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 12:43:13 +00:00
peterv%netscape.com
ffaa8b66af Fix for bug 126463 (Occurances of uninitialized variables being used before being set (in extensions/transformiix).) r=sicking, sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@116857 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 14:14:27 +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
timeless%mac.com
69ae314807 Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa


git-svn-id: svn://10.0.0.236/trunk@116832 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 04:30:17 +00:00
dbaron%fas.harvard.edu
96cc2d6737 Don't make the optimization of not calling the parent context's GetStyleData when there are 'em' or similar units for the 'font-size' property, where those units imply inheritance. b=131454 r=bzbarsky sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@116821 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 01:32:16 +00:00
dbaron%fas.harvard.edu
7ceb8d5e74 Fix performance problem on pages with large numbers of repeated style attributes or differing presentational HTML attributes by changing the way nsRuleNode decides whether to store children in a hashtable or linked list: decide based on the child count rather than whether the node is the root. Convert hashtable child storage from nsHashtable to PLDHashTable. b=129187 sr=brendan r=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@116820 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 01:29:20 +00:00
kin%netscape.com
41160969a2 Fix for bug #120366 (Crash in nsRange::CopyContents())
mozilla/content/base/src/nsRange.cpp
    mozilla/content/base/src/nsRange.h

      - Rewrote DeleteContents() and CloneContents() to use the content
        subtree iterator.
      - Added RangeSubtreeIterator class, CloneParentsBetween() and
        CollapseRangeAfterDelete().
      - Removed CopyContents() and CloneSibsAndParents().

r=jfrancis@netscape.com  sr=sfraser@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@116793 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-18 14:38:11 +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
a397ea7022 Remove unused (or used only if one of the magic enviroment variables ENABLE_STRICT or MOZ_VALIDATE_HTML was set) parser-related code, mostly associated with the strict DTD. b=130439 r=harishd sr=jst a=shaver
git-svn-id: svn://10.0.0.236/trunk@116720 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 15:34:43 +00:00
rods%netscape.com
1c65a526ab Removing uwanted debug staments to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@116712 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 14:08:39 +00:00
rods%netscape.com
fd4d2132df 1) Removes most all the unneeded data from nsPrintOptions service. All data should be in the PrintSettings.
2) Removed unneeded methods from PrintOptions
3) PrintOption can now read and write (most) all the data in a PrintSettings object. The items not saved are those used during the printing process and it wouldn't make any sense to save them.
4) Adds a prefs for turning on and off the automatic saving of PrintSettings. If this is turned on it is almost the same as using the global PS.
5) On Linux it turns on the saving of PS prefs and turns on the global PS. Meaning it will always use a single Global PS object.
6) The PrintSettings can be initialized from a generic non-printer specific set of prefs. Then if a printer name is available in the PS then it tries
to initialize itself from the printer specific prefs. This enables to define "back stop" prefs for picking up first. Then the printer specific prefs can override those settings. For example, we may define in prefs that the default paper size 8.5x11, then if if the "save PS prefs" is turned on, for a given printer it might save 8.5x16 as the size.
7) A "flags" arg has been added so you can indicate which prefs you want read or written.
Bug 128142 r=dcone sr=attinasi a=shaver


git-svn-id: svn://10.0.0.236/trunk@116711 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 13:08:45 +00:00
alecf%netscape.com
2e88d16be4 fix for bug 101887 - make transformiix no longer depend on appshell by removing an unneeded #include and CID declaration
patch=jonsmirl@mediaone.net
sr=alecf
r=peterv
a=asa


git-svn-id: svn://10.0.0.236/trunk@116702 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 05:34:49 +00:00
heikki%netscape.com
82bf6a58a6 Bug 110544, improving comment parsing by avioding string copies and other trickery. r=harishd, sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@116687 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 03:03:45 +00:00
rods%netscape.com
40889d01ed Backing out changes - just as well, I forgot to but the bug # and r/sr/a anyway
git-svn-id: svn://10.0.0.236/trunk@116643 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 14:49:09 +00:00
rods%netscape.com
58cfbb8ad2 1) Removes most all the unneeded data from nsPrintOptions service. All data
should be in the PrintSettings.
2) Removed unneeded methods from PrintOptions
3) PrintOption can now read and write (most) all the data in a PrintSettings
   object. The items not saved are those used during the printing process and
   it wouldn't make any sense to save them.
4) Adds a prefs for turning on and off the automatic saving of PrintSettings.
   If this is turned on it is almost the same as using the global PS.
5) On Linux it turns on the saving of PS prefs and turns on the global PS.
   Meaning it will always use a single Global PS object.
6) The PrintSettings can be initialized from a generic non-printer specific
   set of prefs. Then if a printer name is available in the PS then it tries
   to initialize itself from the printer specific prefs. This enables to define
   "back stop" prefs for picking up first. Then the printer specific prefs
   can override those settings.
   For example, we may define in prefs that the default paper size 8.5x11,
   then if if the "save PS prefs" is turned on, for a given printer it might
   save 8.5x16 as the size.
7) A "flags" arg has been added so you can indicate which prefs you want read
   or written.


git-svn-id: svn://10.0.0.236/trunk@116641 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 13:55:54 +00:00
rbs%maths.uq.edu.au
84d6bd5d71 perf bug 124570 - configure mathml.css as a catalog stylesheet that is loaded on demand rather than at startup, r=harishd, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@116637 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 09:45:31 +00:00
badami%netscape.com
a873d62951 Fix waring during compile
bug 62188 sr=jst a=asa patch=ayn2@cornell.edu


git-svn-id: svn://10.0.0.236/trunk@116525 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 05:51:12 +00:00
jfrancis%netscape.com
687502ad16 fix for 130245: range gravity not following spec;
r=glazman; sr=kin; a=asa


git-svn-id: svn://10.0.0.236/trunk@116514 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 01:07:09 +00:00
badami%netscape.com
750d1eda15 plain text copy is bad
bug 125732 r=akkana sr=jst a=asa patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@116471 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 06:26:33 +00:00
badami%netscape.com
06c3c54a95 nsXMLContentSerializer::AppendTextData() causes assertion in nsDependentString::Rebind()
bug 119335 r=akkana sr=jst a=asa patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@116470 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 06:20:15 +00:00
badami%netscape.com
b2aab151e4 [serializer]Composer breaks lines at inappropriate positions
bug 85184 r=akkana sr=jst a=asa patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@116469 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 06:14:57 +00:00
bryner%netscape.com
97fd40e754 Changing XUL menus to use a :-moz-menuactive pseudoclass rather than a menuactive attribute for styling the active item. This will allow XBL select widgets to not modify the HTML DOM. Bug 128947, r=dbaron, sr=hyatt, a=asa.
git-svn-id: svn://10.0.0.236/trunk@116424 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 21:49:23 +00:00
mkaply%us.ibm.com
3fa5718c88 #125432
r=pedemont, sr=blizzard, a=roc+moz
OS/2 only - use the web page font for entryfields, buttons, and lists since our chrome font is a bitmap font that can't be scaled.


git-svn-id: svn://10.0.0.236/trunk@116400 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:07:47 +00:00
badami%netscape.com
9bb0081936 Support start number for lists in plain text output
bug 62188 r=bratell sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@116380 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 08:21:51 +00:00
rods%netscape.com
a9b8c03c41 The document viewer was only clamping on values above 100%, the Front-end UI
was doing the clamping on 50-100%, I have changed the back-end to do no
clamping and the front will now allow values between 10 and 500%, these seem
reasonable.
Bug 127508 r=sgehani sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@116307 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 15:23:54 +00:00
dbaron%fas.harvard.edu
e9f90d8c2a Prevent nsDocument from calling |Release| on a stylesheet that it doesn't own when told to remove that stylesheet. Fixes a theme switching crash. b=129620 r=peterv sr=jst
git-svn-id: svn://10.0.0.236/trunk@116178 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 21:05:27 +00:00
dbaron%fas.harvard.edu
564273d1d2 Fix top theme switching crash by clearing the outliner's style caches from DidSetStyleContext instead of FlushMiscWidgetInfo. b=116038 sr=hyatt r=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@116103 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 23:48:26 +00:00
rods%netscape.com
3f19270582 1) Added a new method to nsIWebBrowserPrint iface that enables you to get the current PS being used to print or PP
2) Change the PP toolbar code to use the current PS instead of the global
Bug 127969 r=dcone sr=attinasi a=asa


git-svn-id: svn://10.0.0.236/trunk@116053 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 12:57:33 +00:00
rods%netscape.com
d493013619 When object tags are sub-documents they should be treated as IFrames for printing
Bug 128142
sr=attinasi r=dcone a=asa


git-svn-id: svn://10.0.0.236/trunk@116052 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 12:44:57 +00:00
bryner%netscape.com
01634657fa - Implement the :checked CSS pseudoclass which maps to the "selected" property on option elements.
- Eliminate the _moz-option-selected attribute; move the actual selected state into the option content node.
- Change all users of _moz-option-selected to use :checked.
- Add a third parameter to nsIDocument[Observer]::ContentStatesChanged to indicate which pseudoclass changed, this is used for optimizing handling of :checked state changes.

Bug 128947, r=dbaron, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@116029 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 03:34:29 +00:00
ducarroz%netscape.com
792f53e71f Fix for bug 68087. Don't generate a blank line after a <div>. R= akkana, SR=jst, A=asa
git-svn-id: svn://10.0.0.236/trunk@115988 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 22:33:33 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
bzbarsky%mit.edu
b9be6f3f0d Fix bug 57524, r=peterv, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@115856 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 22:39:40 +00:00
rods%netscape.com
65023cbef8 1) This adds in a new layout atom for the SequenceFrame
2) Now checks all the SeqFrame's children (PageFrames) instead of just the first one
Bug 71609 r=dcone sr=attinasi a=asa


git-svn-id: svn://10.0.0.236/trunk@115714 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 12:55:20 +00:00
badami%netscape.com
013dbec8be Pasted text from beginning of line always appends a newline
bug=75283 r=bratell@lysator.liu.se sr=jst a=asa patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@115712 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 10:47:19 +00:00
badami%netscape.com
b21da840a7 Save As generates &apos; in attributes with single quotes
bug=120674 r=adamlock sr=jst a=asa patch=tmureja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@115710 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 10:06:59 +00:00
shaver%mozilla.org
035b12c4cf Bugs 128682 and 128416: dragging images that are within links causes drop
of relative image source URL, not absolute link target URL. r=bryner, sr=ben,
a=roc+moz.


git-svn-id: svn://10.0.0.236/trunk@115686 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-03 22:18:51 +00:00
dbaron%fas.harvard.edu
6ef2ae37f0 Fix typo in nsRuleNode::ClearCachedDataInSubtree so it only clears data associated with |aRule|. This fixes a crash since nsStyleContext::ClearStyleData didn't make the same mistake and clean up dangling pointers to the incorrectly deleted data. b=105619 r=bzbarsky sr=brendan a=shaver
git-svn-id: svn://10.0.0.236/trunk@115660 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-03 00:02:00 +00:00
pinkerton%netscape.com
ddc4e56e6d api for overriding aspects of content-area drag&drop. r=ccarlen/sr=sfraser/a=shaver. bug# 126069
git-svn-id: svn://10.0.0.236/trunk@115506 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 22:19:04 +00:00
rods%netscape.com
3de996f11f Don't call these methods when the PO is not printable.
Bug 127639 r=dcone sr=attinas a=asa


git-svn-id: svn://10.0.0.236/trunk@115370 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 13:29:48 +00:00
pinkerton%netscape.com
e7701eccba fix problem with dragging urls to the desktop on win32. the drag flags weren't correctly set. r=brade/sr=sfraser/a=shaver. bug: 127703
git-svn-id: svn://10.0.0.236/trunk@115321 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-25 22:12:48 +00:00
cbiesinger%web.de
6889b4fa22 Bug 126303 patch by Roland.Mainz@informatik.med.uni-giessen.de r=rods sr=attinasi a=roc+moz
Remove the DOM dependendecies from gfx/src/xprint/


git-svn-id: svn://10.0.0.236/trunk@115277 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-23 15:32:03 +00:00
hidday%geocities.com
cb447f80d2 Bug 16605: text node child-adding functions throw wrong exception.
Modified nsGenericDOMDataNode::ReplaceChild() to throw
HIERARCHY_REQUEST_ERR instead of NOT_FOUND_ERR, per the spec.
sr=jst@netscape.com a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@115276 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-23 10:51:50 +00:00
timeless%mac.com
30eddece55 Bug 66035 Image urls are copied with text selection
patch by rossi@telnet.at r=hixie sr=jst a=shaver


git-svn-id: svn://10.0.0.236/trunk@115231 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 16:39:35 +00:00
rods%netscape.com
46c42a9045 We were sending Progress notification from the destructor of the PrintData.
I have done the following:
1) Removed unneeded nsresult arg from OnEndPrinting
2) Removed unneeded calls to OnEndPrinting before the deletion of PrintData objs
3) The destructor of PrintData now only calls OnEndPrinting if onStartPrinting  was called first, meaning printing notification was actually started.
Bug 126427 r=dcone sr=attinasi a=roc


git-svn-id: svn://10.0.0.236/trunk@115150 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 13:23:11 +00:00
hidday%geocities.com
f7e9f57834 Bug 93649, document.plugins should map to document.embeds for NS4
compatibility. r=bzbarsky@mit.edu sr=jst@netscape.com a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@115149 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 12:21:15 +00:00
sgehani%netscape.com
dc2420a155 Landing print preview toolbar and UI.
b=111235; r=law; sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@115066 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 06:19:39 +00:00
rods%netscape.com
41c01215ce It will no longer layout document with a zero width or height
Bug 114139 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@115018 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 03:21:25 +00:00