L. David Baron
d696b2e6ec
Bug 1405875 - Remove debug file mechanism from printing. r=mats
...
This was used only by nsRegressionTester::DumpFrameModel, which was
removed in the previous patch.
MozReview-Commit-ID: I8fS7vzlFQw
2017-10-05 11:15:57 -07:00
Masayuki Nakano
a3f5f2fa2b
Bug 1354443 part.1-1 Make nsPrintData refcountable r=dholbert
...
MozReview-Commit-ID: 78azPbH9S9x
2017-05-09 17:08:20 +09:00
Ting-Yu Lin
b68032b1b0
Bug 1342994 Part 2 - Use UniquePtr to replace explicit new/delete and non-owing pointers in printing APIs. r=dholbert
...
Also, rewrite some for-loops as range-based.
Other APIs still using nsPrintObject* involve with
nsPrintData::mPrintDocList or nsPagePrintTimer::mPrintObj.
nsPrintEngine::FindPrintObjectByDOMWin() could have its argument converted
to UniquePtr, but it needs to return nullptr to represent "found nothing."
Therefore, I leave its argument as it was for consistency.
MozReview-Commit-ID: 7hXaVy5IKHQ
2017-03-06 16:28:20 +08:00
Ting-Yu Lin
7b4afa187b
Bug 1342994 Part 1 - Strip trailing whitespaces in nsPrintData, nsPrintEngine and nsPrintObject. r=dholbert
...
MozReview-Commit-ID: GGBrj4Eo45L
2017-03-06 15:35:39 +08:00
Mats Palmgren
89416847ae
Bug 1340771 part 2 - Introduce a WeakFrame class for heap allocated weak frame pointers, stored in a hashtable for fast lookup. r=tn
...
* * *
Bug 1340771 part 3 - Change existing heap allocated AutoWeakFrame instances to use WeakFrame instead. r=tn
MozReview-Commit-ID: GSuUiy98jBa
2017-03-01 18:03:14 +01:00
Mats Palmgren
7c43dcf986
Bug 1340771 part 1 - Rename nsWeakFrame to AutoWeakFrame (automated change). r=tn
...
MozReview-Commit-ID: 8pl4nyeGEkr
2017-03-01 18:03:14 +01:00
Bob Owen
8a10f8f6f6
Bug 1324000: Use nsWeakFrame to hold nsIPageSequenceFrame member in nsPrintEngine. r=smaug
2017-01-09 08:26:31 +00:00
Olli Pettay
8b3894d904
Bug 1321566 Part 2: Use Disconnect pattern to manage nsPrintEngine member in nsPagePrintTimer. r=bobowen
2017-01-03 11:10:11 +00:00
Bob Owen
2b44671dab
Bug 1321566 Part 1: Use UniquePtr to hold nsPrintData in nsPrintEngine. r=jwatt
2017-01-03 11:10:11 +00:00
Olli Pettay
d61a9893cd
Bug 1305309, backout Bug 1214805, r=backout
2016-09-27 01:03:24 +03:00
Olli Pettay
81b705d082
Bug 1214805, allow navigating when afterprint event is dispatched, r=bz
2016-09-03 17:33:30 +03:00
Tobias Schneider
c1529499be
Bug 1260480 - Remove mozNoMarginBoxes. r=dbaron
2016-04-06 09:53:00 +02:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Nicholas Nethercote
f044cbf9c4
Bug 1229202 (part 1) - Remove some unused arguments in nsPrintEngine's functions. r=mattwoodrow.
...
The first four arguments of GetPageRangeForSelection() are not used usefully,
nor are the first two arguments of FindSelectionBounds() and
FindSelectionBoundsWithList(). (Mutual recursion between the latter two
obscured this fact.)
2015-12-02 15:32:16 -08:00
Mike Conley
e36bb41216
Bug 1199434 - Fire an event when the print engine encounters an error. r=smaug
...
The print engine used to directly cause a prompt to be displayed in the most
recent window in the event of an error. This patch causes the print engine to
fire an event instead so that the front-end can choose to display or ignore
the error.
2015-09-16 16:12:43 -04:00
Andrea Marchesini
f0aa02df0b
Bug 1156632 - Remove unused forward class declarations - patch 5 - rdf, parser, layout and something else, r=ehsan
2015-04-22 08:29:22 +02:00
Andrea Marchesini
ad97ae68b8
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
a7f747ec15
Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
...
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:
#!/bin/bash
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "*/.git*" \
! -wholename "obj-*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Benoit Jacob
553e5b2a13
Bug 1028588 - Fix dangerous public destructors in layout/ - r=dbaron
2014-06-23 18:40:01 -04:00
Trevor Saunders
c5bbaf6b46
bug 331376 - merge nsIDocShellTreeNode into nsIDocShellTreeItem r=smaug
2014-01-06 17:34:15 -05:00
Ehsan Akhgari
68bfe70f09
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Trevor Saunders
4ef73ce6d0
bug 939049 - staticly type nsIDocument::mDocumentContainer and nsDocumentViewerContainer::mContainer r=smaug
2013-11-15 02:12:43 -05:00
Robert O'Callahan
aef6305ae3
Bug 889219. Part 1: Clean up nsPrintEngine string usage for document titles/URLs. r=mats
2013-07-24 23:48:37 +12:00
Robert O'Callahan
a7df546a7f
Bug 886295. Backout fix for bug 880854 to fix regression. r=mats
2013-07-22 14:04:46 +12:00
Robert O'Callahan
9c45a84492
Bug 880854. Part 2: Support reflows/frame reconstruction in print/print-preview documents by promoting them to frame reconstruction of the whole document. r=mats
2013-06-18 23:41:30 +12:00
David Zbarsky
ad46dc6473
Bug 847007: Remove nsIDocument includes r=Ms2ger
2013-03-21 20:05:19 -04:00
Julian Viereck
6420cdd172
Bug 743252 - Implement moznomarginboxes attribute. r=roc
2013-02-20 10:50:21 -05:00
Cameron McCormack
3b2d35e695
Bug 830278 - Allow disabling of selecting printing with mozdisallowselectionprint on the document element. r=roc
2013-01-29 15:59:55 +11:00
Mats Palmgren
3402a22275
Bug 830236 - Add re-entrancy protection in a few places to avoid destroying things twice. r=cam
2013-01-15 21:47:10 +01:00
Ehsan Akhgari
a364d5fb22
Bug 826602 - Rename nsHTMLCanvasElement to mozilla::dom::HTMLCanvasElement; r=bzbarsky
2013-01-04 00:16:14 -05:00
Ehsan Akhgari
5360f864c8
Backed out changeset bfb788e7ef51 (bug 826602) because of build failures
2013-01-04 01:07:10 -05:00
Ehsan Akhgari
8875c8c39c
Bug 826602 - Rename nsHTMLCanvasElement to mozilla::dom::HTMLCanvasElement; r=bzbarsky
2013-01-04 00:16:14 -05:00
Robert O'Callahan
ae130ef998
Bug 825866. Part 8: Mass-rename of nsIView to nsView. r=tnikkel
...
This was autogenerated by basically replacing all occurrences of the word "nsIView" with nsView.
2013-01-04 02:23:11 +13:00
Julian Viereck
692ed878a3
Bug 468568. Main patch: support downloading fonts in printing and print preview. r=smaug
2012-09-04 16:29:27 +03:00
Brendan Dahl
303300506a
Bug 745025 - Part 2 - Adds layout/printing support for mozPrintCallback. r=roc
2012-08-30 17:24:35 -07:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ehsan Akhgari
b7f60d20d1
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (content parts); r=bzbarsky
2012-06-18 22:30:09 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Jeff Walden
edbb60f3de
Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron
2011-12-16 14:42:07 -05:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Mats Palmgren
1bfd788e19
Bug 653649 - New way of getting child lists from frames. (part 3/5) r=roc
...
Update GetAdditionalChildListName consumers to use the new
child list iterator instead.
2011-08-24 22:54:29 +02:00
Olli Pettay
bb79ccbdaa
Bug 649170, use the same nsIWeakReference in DocumentViewer and nsPrintEngine, r=roc
2011-05-10 15:55:26 +03:00
Zack Weinberg
0797b06d99
Bug 651017, part 5: mechanical changes.
2011-04-16 18:22:44 -07:00
Jan Küchler
8774547613
Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
2011-04-07 18:04:40 -07:00
Robert O'Callahan
86d7a52d72
Bug 584193. Allow print preview to work without its own widget. r=smaug a=blocking beta5
2010-08-27 18:15:08 -05:00
Neil Deakin
491b03b739
Bug 550878, cannot print child frames if window is not focused, r=neil, patch by arno renevier
2010-04-29 10:14:09 -04:00
Robert O'Callahan
f3b7e90c94
Bug 526394. Part 15: Convert various random chunks of layout code. r=mats
2009-09-03 16:26:00 +12:00
Olli Pettay
2e3d0c93fe
Bug 487667 - Clone documents for printing, r=roc+jst+joe+dbaron
2009-12-10 20:02:13 -08:00
Olli Pettay
de230a1672
Bug 510465 - Initial zoom level of print preview depends on the zoom level of galley presentation, r=roc
2009-08-24 12:55:28 +03:00