Adrian Wielgosik
ac931384c2
Bug 1460940 - Remove nsIDOMDocument uses in layout/. r=bz
...
MozReview-Commit-ID: KixJ5edlCjl
2018-05-11 19:46:15 +02:00
Sebastian Hengst
d91e9954eb
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
6095241db8
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Boris Zbarsky
cc96e36526
Bug 1434318 part 1. Make nsIContentViewer's DOMDocument readonly. r=mystor
...
No one ever assigns to it in JS anyway.
MozReview-Commit-ID: EAoOXSFnwtl
2018-01-31 15:18:09 -05:00
Daniel Holbert
8fea3c215f
Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
...
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py
For every file that is modified in this patch, the changes are as follows:
(1) The patch changes the file to use the exact C++ mode lines from the
Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line
(2) The patch deletes any blank lines between the mode line & the MPL
boilerplate comment.
(3) If the file previously had the mode lines and MPL boilerplate in a
single contiguous C++ comment, then the patch splits them into
separate C++ comments, to match the boilerplate in the coding style.
MozReview-Commit-ID: EuRsDue63tK
2017-10-27 10:33:53 -07: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
Olli Pettay
d61a9893cd
Bug 1305309, backout Bug 1214805, r=backout
2016-09-27 01:03:24 +03:00
Michael Layzell
c987b38274
Bug 1018486 - Part 4: Changes in layout/, r=bz
...
MozReview-Commit-ID: BsaKGHsoqOq
2016-09-07 10:50:40 -04:00
Olli Pettay
81b705d082
Bug 1214805, allow navigating when afterprint event is dispatched, r=bz
2016-09-03 17:33:30 +03:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Trevor Saunders
b2d1343da4
bug 966084 - don't QI the result of win->GetFrameElementInternal() when its not required r=smaug
2014-01-23 16:14:29 -05:00
Ms2ger
582319fb44
Bug 956015 - Add an infallible nsIDocShellTreeItem::ItemType; r=bz
2014-01-20 08:58:26 +01:00
Ehsan Akhgari
fe4005d016
Bug 923151 - Part 2: Don't #include nsIDocument.h in mozilla/dom/Element.h; r=jst
2013-10-02 16:09:18 -04:00
Ms2ger
5a51413d49
Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar
2013-08-14 08:56:21 +02:00
Trevor Saunders
443e419ad9
bug 841436 - remove nolonger needed qi from nsIDocShell to nsIDocShellTreeItem r=bz
2013-02-12 17:02:51 -05:00
Cameron McCormack
6dfa11a1e5
Bug 818626 - Remove printing crash report debugging. r=roc
2013-01-18 11:22:30 +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
Cameron McCormack
d691633ad3
Bug 818626 - More debugging for crashes at the end of printing. r=roc
2013-01-07 14:29:47 +11:00
Cameron McCormack
55ae091c85
Bug 827085 - Remove unused mSharedPresShell member on nsPrintObject. r=roc
2013-01-07 12:57:19 +11:00
Cameron McCormack
b5e94132e3
Bug 818626 - Release nsPresContext after its PresShell when destroying an nsPrintObject. r=roc
2012-12-18 15:32:34 +11: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
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04: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
Olli Pettay
e47fc5a58e
Bug 664434 - Make sure to Destroy the old document when setting a new print document, r=roc
2011-06-16 21:20:13 +03:00
Olli Pettay
d201c70a2a
Bug 620158 - Crash while printing, r=mats, a=blocking
2011-01-14 14:27:31 +02:00
Olli Pettay
b18bad7f73
Bug 610690 - Crash when printing many documents successively [@ nsCOMPtr_base::assign_from_qi | nsDocShell::SetTreeOwner ], r=mats, a=benjamin
2010-11-10 23:15:21 +02: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
Olli Pettay
2e3d0c93fe
Bug 487667 - Clone documents for printing, r=roc+jst+joe+dbaron
2009-12-10 20:02:13 -08:00
Timothy Nikkel
31b0b72efe
Bug 491848. Ensure scripts are blocked during frame destruction. Also, don't dispatch paint events during a synchronous plugin message. r=roc
2009-05-15 15:08:41 +12:00
Arpad Borsos
af5c52fa8a
Bug 474369 - get rid of nsVoidArray; layout part; r+sr=roc
2009-02-03 15:42:18 +01:00
joshmoz@gmail.com
d9d6e45ab4
remove unused variables, other warning fixes. no bug. r/sr=bz
2007-02-16 08:04:44 +00:00
sharparrow1@yahoo.com
2da748b9c2
Bug 177805: Fix the use of units in Gecko. r+sr=roc
2007-02-07 07:46:44 +00:00
sharparrow1@yahoo.com
460055136d
Bug 361844: Printing cleanup; r+sr=roc. Changes the way the presentation is managed for print preview, plus many smaller cleanups.
2006-12-10 08:05:05 +00:00
sharparrow1@yahoo.com
de3ed105fb
Bug 332927: Cleanup iframe/frame printing code (and a couple other misc. cleanups)
2006-04-11 01:48:48 +00:00
sharparrow1@yahoo.com
9df767b1c4
Bug 331415: some printing code cleanup. r+sr=roc.
2006-03-30 00:27:42 +00:00
sharparrow1@yahoo.com
109b433b14
Bug 326157: Get rid of unnecessary clipping code. r+sr=roc.
2006-02-07 02:22:06 +00:00
bzbarsky@mit.edu
676f03a288
Remove the long-deprecated nsIWebShell interface. Bug 273319, r=biesi, sr=jst.
2005-01-03 22:51:17 +00:00
smontagu@smontagu.org
56dd78ebb5
Fix a crash in printing pages with non-visible elements. Bug 275262, r+sr=roc
2004-12-21 11:51:13 +00:00
bryner@brianryner.com
8fc0179c66
Remove non-inlined version of nsIPresShell::GetDocument(). Bug 253889, r+sr=roc.
2004-08-02 04:52:55 +00:00
gerv@gerv.net
cf0b0c064a
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-17 21:52:36 +00:00
bryner@brianryner.com
a90ec6ff21
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.
2004-01-07 22:30:53 +00:00
rods@netscape.com
8ce93fb318
Move printing code out of the DocumentViewer
...
add in #defines to turn on and off printing and print preview
Bug 139905 r=dcone sr=jst
2002-08-21 12:01:05 +00:00