172 Commits

Author SHA1 Message Date
neil%parkwaycc.co.uk
e717d9b1f9 Bug 276002 Change nsContenUtils::Get/FormatLocalizedString to use nsXPIDLString to save on nsAutoString copies r=dbaron sr=bryner
git-svn-id: svn://10.0.0.236/trunk@167959 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-18 23:46:59 +00:00
dbaron%dbaron.org
13decbac15 Remove nsFormControlHelper::GetLocalizedString, improve string bundle methods in nsContentUtils, and convert callers. b=273829 r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@166823 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-17 20:40:48 +00:00
roc+%cs.cmu.edu
ab88d1e1ac Bug 259032. DeCOMtaminate nsIFrame::GetNext/PrevInFlow. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@162269 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 02:28:03 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
bryner%brianryner.com
b17b3249f7 Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160067 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 19:41:39 +00:00
cbiesinger%web.de
b27e0031f5 Bug 252948 remove *WithConversion in layout
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@159832 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-25 12:18:04 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
jst%mozilla.jstenback.com
74089032ff Fixing bug 240543. Hiding some nsIPref* API bloatyness in nsContentUtils. r=caillon@aillon.org, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@155712 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-29 23:34:19 +00:00
gerv%gerv.net
2ac510b678 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
tor%cs.brown.edu
996688b00b Bug 240274 - remove PopState() argument. r=blizzard, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@155061 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 13:13:35 +00:00
bzbarsky%mit.edu
9c2f7023ff Fix bug 231280 (printing not honoring OS date format). Patch by Constantine
A. Murenin <cnst.bmo@bugmail.mojo.ru>, r=jshin, sr=roc, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@152811 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-16 05:31:25 +00:00
bryner%brianryner.com
7ace3321e6 Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152647 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 04:57:07 +00:00
bryner%brianryner.com
5b5cd321a4 Guarantee that the pres context's device context will be non-null by returning failure from Init() if it's null. Rename inline getter GetDeviceContext() to DeviceContext(), convert all callers to use the inline getter, and remove the virtual/refcounting getter. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152182 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 22:17:21 +00:00
bryner%brianryner.com
2dce372072 DeCOMtaminate nsCSSFrameConstructor (bug 231157). This gets rid of the nsIStyleFrameConstruction and nsICSSFrameConstructor interfaces. The frame constructor now has the same lifetime as the pres shell. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151662 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 23:05:10 +00:00
roc+%cs.cmu.edu
35c266025d Bug 190735. deCOMtaminate nsIFrame::FirstChild and nsIFrame::GetAdditionalChildListName. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@151077 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 14:20:53 +00:00
bryner%brianryner.com
468d3e2e8d Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
bryner%brianryner.com
b5347dd60c Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +00:00
uid502
e56ed2443c Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 20:19:18 +00:00
jaggernaut%netscape.com
f34216bf2d Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144992 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 07:47:59 +00:00
roc+%cs.cmu.edu
37f8ccb7f1 Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144282 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 18:52:23 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
timeless%mozdev.org
dfb31d244f Bug 205363 Remove SendStatusNotification/nsIPrintStatusCallback
r=dbaron sr=dmose


git-svn-id: svn://10.0.0.236/trunk@142851 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 22:10:13 +00:00
bryner%netscape.com
6278746fdf Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
caillon%returnzero.com
8a1bf17a45 Re-landing these because I don't believe this are responsible for the Txul spike.
Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
r/sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@135125 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:05:41 +00:00
caillon%returnzero.com
d751688cb9 Backing out these changes since they appear to have caused a Txul regression on some tinderboxes (not all... weird...)
git-svn-id: svn://10.0.0.236/trunk@135111 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 05:11:02 +00:00
caillon%returnzero.com
6b60a8affb Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
r/sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@135068 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 23:41:12 +00:00
timeless%mac.com
7e323a21bd Bug 171328 Build warning caused by checkin for bug 168961
patch by walk84@yahoo.com r=Roland.Mainz@informatik.med.uni-giessen.de sr=jag


git-svn-id: svn://10.0.0.236/trunk@130872 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 03:42:07 +00:00
rods%netscape.com
f7e07db9b7 This partially backs out the previous patch. We no longer need to set/get anything in the nsIPrintOptions.
What this does is:
1) Reflows the first time constrained and remembers mOverflowArea.XMost() of
the HTML frame and then later uses that for the calculation of the ratio.
2) Renames some variables
3) This also changes the the maximum STF ratio from 0.5 to 0.3 to match the
dropdown in PP
Bug 168961 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@130520 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 11:25:04 +00:00
rods%netscape.com
1b7abf58ea Change STF to use an unconstrainad reflow instead of searching for the widest frame
Bug 168961 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@130082 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-19 21:45:07 +00:00
roc+%cs.cmu.edu
45a8f7c62d Bug 164625. Native regions on Linux (and probably some other platforms) are limited to 16bit signed coordinates, so we have to use our own region implementation to manipulate regions in twips space. Using our own regions should also improve performance. r=kmcclusk,sr=kin
git-svn-id: svn://10.0.0.236/trunk@128522 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 03:32:05 +00:00
seawood%netscape.com
6487e8df55 Rename conflicting global symbols to fix debug static build runtime bustage.
Bug #162918 r=serge sr=alecf


git-svn-id: svn://10.0.0.236/trunk@128162 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 21:20:31 +00:00
rods%netscape.com
b9882159d7 Add PR_LOGGING for printing
Bug 121622 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@123612 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:51:13 +00:00
karnaze%netscape.com
49e0a9f4cb bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122236 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:50:43 +00:00
jst%netscape.com
0e34136ef1 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
rods%netscape.com
7e8d6d3e59 patch to clamp to 1/10th of the largest dimension of a page - very low risk. I
think it is unrealistic that the smaller dim of the page would be less than 1/5
of the larger dimension. (and remove unneeded call to get the presshell)
Bug 145976 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@122020 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 11:32:00 +00:00
rods%netscape.com
fa1b0e717d The problem here is the "edge" prefs are now preficed with the printer name,
and the nsPrintOptions know how to convert the printer name, so we need to add
a helper method to nsIPrintOptions.idl so the nsSimplePageSeq can get the properly named value.
Bug 140669 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@121923 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-21 10:53:45 +00:00
rods%netscape.com
de84818d20 Changing CID to ContractID and const char* to const char xxx[]
As part of Bug 144128


git-svn-id: svn://10.0.0.236/trunk@121469 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 14:32:42 +00:00
rods%netscape.com
c9aff94488 Static build bustage fix
git-svn-id: svn://10.0.0.236/trunk@121468 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 14:15:19 +00:00
rods%netscape.com
29c0c5d959 This patch does the following:
1) Introduces a new public interface nsIPrintSettingService which emables consumers to create PS objects whithout a nsIWebBrowserPrint interface
2) The implementation is nsPrintOptionsImpl which now impls the private interface nsIPrintOptions and the public iface nsIPrintSettingsService
3) Several methods/attrs have been moved from nsIWebBrowserPrint iface to nsIPrintSettingsService
4) The CIDs for nsIPrintOptions and nsIPrinSettingsService are now the same.
5) There is no longer a CID "@mozilla.org/gfx/printoptions;1"
6) nsIWebBrowserPrint still has the "globalPrintSettings" attr so if you already have an nsIWebBrowserPrint you don't have to create the PS Service to get it.
7) A bug has been filed to rename the imlp of nsPrintOptionsImpl to nsPrintSettingsService.
Bug 144128 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@121463 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 12:05:00 +00:00
rods%netscape.com
fe2355ea4d Turn on pluggable dialogs (second part of checkin, first part Bug 135441)
Bug 115136 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@120936 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 12:03:37 +00:00
rods%netscape.com
f5d5b87dc0 Make the UI scrollbars now scale in PrintPreview. We are having to do all this rather bizarre
stuff because the scrollbars in the document share all the same code and style contexts of the UI scrollbars
Bug 120616 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@119606 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-23 12:05:43 +00:00
rods%netscape.com
49b198aeab printing properties must be moved to global jar
Bug 138026 r=dcone sr=attinasi a=judson adt=putterman


git-svn-id: svn://10.0.0.236/trunk@119331 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 22:43:02 +00:00
rods%netscape.com
5d79a0e67c This patch also fixes a regression from 6.2 where when printing selection it
prints in the top margin of the second (or third, etc.) page.
Bug 134769 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@118687 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 00:34:59 +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
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
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
rods%netscape.com
1d1f95e7c0 1) Enables the PageSeq frame to specify the "gap" of gray space around
it in Print Preview
2) It now positions the page in the window with the gray "gap" showing.
3) factors out code for calc'ing the number of pages
4) Adds the methods to get the number of page while in PP
Bug 125151 r=sgehanisr=attinasi


git-svn-id: svn://10.0.0.236/trunk@114536 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:18:09 +00:00
rods%netscape.com
4d135d7b9b 1) It moves the BeginDocument to a earlier place in the call change
2) Fixes the negitive page range display problem
3) Improves performance by reducing the delay on pages not in the page range, i.e. before if you printed the 30th page out of 31 you had to wait 15 secs to get to the 30th page to print it.
4) Added AbortDocument, so now when Print jobs are cancelled we call AbortDocument and remove them from the print spooler
5) Fixed a couple of minor issue with Canceling and cancelling mail printings
6) selection was not printing correctly. The problem with selection was that the clip was not being set corrctly.
Bug 115227 & 123181 r=dcone,sspitzer sr=attainasi


git-svn-id: svn://10.0.0.236/trunk@114276 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 13:33:39 +00:00
rods%netscape.com
82a2414831 enable a margin like gap specification for printing on unix
make it settable via the joboptions dialog
Bug 102596 r=roland sr=kin


git-svn-id: svn://10.0.0.236/trunk@113423 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 15:31:15 +00:00
rods%netscape.com
d2614abdf5 mPrintSettings wasn't be properly set and therefore it wasn't getting the margins correctly
BUg 120621 r=dcone sr=attinasi a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112470 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 22:45:06 +00:00