Commit Graph

232 Commits

Author SHA1 Message Date
Mats Palmgren
e847fb240e Don't require a view for non-SubDocumentFrame frames. b=415327 r+sr=roc 2009-03-30 18:15:52 +02:00
Olli Pettay
04166a178f Bug 424377, r+sr=roc 2009-03-10 21:30:50 +02:00
L. David Baron
cb6012ec82 Remove nsStyleContext::DumpRegressionData, code that uses it, and code that exists only for it. (Bug 477522) r+sr=bzbarsky 2009-02-09 20:36:54 -08:00
Arpad Borsos
c0f2dadc80 Bug 474369 - get rid of nsVoidArray; layout part; r+sr=roc 2009-02-03 15:42:18 +01:00
Martijn Wargers
c2af1ac3b7 Bug 428013 - crash [@ nsPrintEngine::DocumentReadyForPrinting() ] when page is drag&drop to Print Preview window after printing, r=sharparrow1, sr=roc 2009-01-22 16:36:25 +01:00
Olli Pettay
b2d23e878d Bug 422294 - Crash [@ nsHTMLContainerFrame::CreateViewForFrame] on print preview, r+sr=roc 2009-01-15 16:24:40 +02:00
Jeremy Lea
ce80f69254 Bug 448830. Make nsIntRect/nsIntMargin/nsIntSize/nsIntPoint different types from nsRect/nsMargin/nsSize/nsPoint different types for better compile-type unit checking. r+sr=roc
--HG--
extra : rebase_source : a331a9e49fbc5931f546919281fcca7f008ab615
2009-01-15 16:27:09 +13:00
Benjamin Smedberg
3498a5f86e Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

nsITextControlFrame didn't have an IID the first time around, but this wasn't a compile error because nsITextControlFrame::kFrameIID inherited from nsIFormControlFrame::kFrameIID. I've added a static analysis pass to verify the correct behavior, since I can't figure out a way to make the compiler do it.

--HG--
extra : rebase_source : 4894a2ca0278e2ab92f27459db77165f8348cf41
2009-01-12 14:20:59 -05:00
Benjamin Smedberg
73a6fab34b Backed out changeset 4c4df6ed1b41 - Bug 396185 - Make nsIFrame not inherit from nsISupports due to mochitest failures... these appear to be crashes in nsGenericHTMLElement::GetEditorInternal. 2009-01-09 11:35:24 -05:00
Benjamin Smedberg
802d1a10c7 Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

This patch locally causes two REFTEST-UNEXPECTED-PASS for Bidi stuff. It's possible that I accidentally fixed a bug, but I'm not sure, so I'm going to wait for the tinderboxes to confirm my local results.
2008-11-05 14:25:30 -05:00
Robert O'Callahan
a39e457b50 Backing out bug 448830 2008-09-28 23:13:58 +13:00
Jeremy Lea
4527d5d1a8 Bug 448830. Make nsIntRect/nsIntMargin/nsIntSize/nsIntPoint their own types so that we can catch errors by distinguishing pixels from appunits. r+sr=roc 2008-09-28 20:38:34 +13:00
Olli Pettay
925283111e Bug 433132, Running mochitest for bug 396024 still leaks r+sr=roc 2008-09-26 12:51:42 +03:00
Robert O'Callahan
5dbf5690ac Backing out bug 448830 2008-09-26 13:10:26 +12:00
Jeremy Lea
7261376c29 Bug 448830. Make nsIntRect/nsIntSize/nsIntPoint/nsIntMargin separate types so we get appunit vs pixel typechecking. r+sr=roc 2008-09-26 10:42:19 +12:00
Arpad Borsos
ed2268548d Bug 454475 - Fix "unhandled enumeration value" warnings in layout/; r+sr=roc 2008-09-16 13:25:35 +02:00
Daniel Holbert
b9e4bbbdbc Bug 447835, r+sr=roc 2008-09-09 11:26:20 -07:00
Robert O'Callahan
fb7a994159 Bug 118704. Get the document title from the DOM instead of storing it in the document object. Relanding with hopeful leak fix. r+sr=jst 2008-08-18 14:10:28 +12:00
Robert O'Callahan
842b3fea92 Backing out bug 118704 to try to fix Windows leak orange 2008-08-16 23:27:40 +12:00
Robert O'Callahan
78a2558a52 Bug 118704. Get the document title from the DOM instead of storing it as a string in the document. r+sr=jst 2008-08-16 21:01:46 +12:00
dholbert@cs.stanford.edu
1df2b5324a But 431587: Use zoom-ratio when computing number of needed pages during print-selection. r+sr=roc a=damons 2008-04-30 23:31:17 -07:00
dholbert@cs.stanford.edu
90c649cd1b Bug 430748: In print-selection, crop out selection regions that are before the top of the first page. (e.g. initial whitespace) r+sr=roc a=beltzner 2008-04-29 11:16:49 -07:00
dholbert@cs.stanford.edu
062853928d Bug 430357: Subtract not just normal margin, but also unwriteable margin, when positioning selected block during print-selection. r+sr=roc a=damons 2008-04-22 18:53:20 -07:00
dholbert@cs.stanford.edu
adba8b45ad Bug 430150: During print-selection, use zoom ratio to scale y-position and height of selection, so that it doesn't get shifted too far when we move it to top of page. r+sr=roc a1.9=damons 2008-04-21 18:22:48 -07:00
dholbert@cs.stanford.edu
53026c6433 Bug 429337: re-landing patch, with bustage fix. (bustage fix initializes nsPrintSettingsGTK::mPrintSelectionOnly to false in default constructor. Wasn't getting initialized before.) 2008-04-21 18:18:26 -07:00
dholbert@cs.stanford.edu
eb3eec51c9 Backing out bug 429337 to fix broken printing reftests on linux test box. 2008-04-21 17:48:12 -07:00
dholbert@cs.stanford.edu
b0920a520c Bug 429337: During print-selection, don't use an unconstrained page height everywhere -- just on the reflowSize (where we need it, to catch selections on pages beyond the first). r+sr=roc a=beltzner 2008-04-21 15:36:26 -07:00
Olli.Pettay@helsinki.fi
f2fddd2288 backout Bug 424377, a=beltzner 2008-04-15 11:02:22 -07:00
dholbert@cs.stanford.edu
ee797e1963 Minor comment-only change (fixing typo) 2008-04-10 17:39:16 -07:00
ajschult@verizon.net
e440a7575b Bug 408355: Better fix for bug 396024 that doesn't leak (as much). r+sr=roc, a=beltzner 2008-04-08 22:24:13 -07:00
dholbert@cs.stanford.edu
616bf5f49e Bug 389949, second patch: rotate landscape-mode printed output in Linux. (so we don't end up printing landscape-oriented content on top of portrait-oriented paper.) r+sr=vlad a=blocking1.9 2008-04-07 17:32:48 -07:00
Olli.Pettay@helsinki.fi
82fc44e130 Bug 424377, r=jst, sr=roc 2008-04-01 03:37:28 -07:00
dholbert@cs.stanford.edu
6e16062fb8 Bug 423345: Use mIsCreatingPrintPreview, not mIsDoingPrintPreview, to check if we're setting up a print-preview page. r+sr=vlad a=blocking1.9+ 2008-03-19 16:04:40 -07:00
dholbert@cs.stanford.edu
15bc2e8781 Bug 417356: Define & use "UnwriteableMargin" PrintSettings pref, to make Linux printing work more like Mac printing (keeping us from printing right up against the edge of the page) Orig Patch: [r=ventron sr=roc] Updates: [r=ventron r+sr=vlad] a=blocking1.9+ 2008-03-19 13:51:42 -07:00
dholbert@cs.stanford.edu
9a1e61b815 Backing out Bug 417356, due to pagination reftest failures. 2008-03-14 01:50:13 -07:00
dholbert@cs.stanford.edu
2f86ee574d Bug 417356: Define & use "UnwriteableMargin" PrintSettings pref, to make Linux printing work more like Mac printing (keeping us from printing right up against the edge of the page) r=ventron sr=roc a=blocking1.9+ 2008-03-14 00:48:04 -07:00
dholbert@cs.stanford.edu
2e437c0b98 Bug 407080: Disallow print-preview while page is loading. (Re-landing with broken mochitest disabled) r+sr=roc, a=blocking1.9+ 2008-03-13 14:12:55 -07:00
dholbert@cs.stanford.edu
baafe71f19 Backing out bug 407080 to investigate breakage of mochitest test_bug396024.html 2008-03-03 22:11:54 -08:00
dholbert@cs.stanford.edu
28710c609c Bug 407080: Disallow print-preview if page is loading. r+sr=roc, a=blocking1.9+ 2008-03-03 17:05:27 -08:00
jag@tty.nl
dd268604cd Bug 416998: Fix the order of member variable initializers for a few constructors. sr=bz, a=schrep 2008-02-18 23:36:50 -08:00
jag@tty.nl
05cdb6aefe Bug 73353: Clean up our MODULE/REQUIRES story. rs=dbaron, a=brendan 2008-02-18 00:50:04 -08:00
roc+@cs.cmu.edu
64d3078aac Bug 398269. Treat naked <frame> elements not in framesets like <iframes> when printing. r+sr=mats 2008-02-06 20:00:50 -08:00
dholbert@cs.stanford.edu
122cc4ab89 Bug 389359: In print-preview jump-to-page, scale page-position so we arrive at correct spot. r+sr=roc, a=blocking1.9+ 2008-01-29 12:14:51 -08:00
dholbert@cs.stanford.edu
2439ba6b7a Bug 389358 -- Give doc title & URL to pageSeqFrame for display in print-preview header. r+sr=roc; a=blocking1.9+ 2008-01-28 22:49:54 -08:00
reed@reedloden.com
23bbd145b3 Bug 193001 - "Use gnome's native print dialog" [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r+sr+a1.9=roc] 2008-01-20 19:47:25 -08:00
reed@reedloden.com
ac15e5aa0a Back out Michael Ventnor's patch from bug 193001 for now, as it is causing crashes in bug 396024's mochitest. 2008-01-17 02:11:00 -08:00
reed@reedloden.com
9e6a8820f7 Bug 193001 - "Use gnome's native print dialog" [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r+sr=roc a1.9=schrep] 2008-01-16 22:27:50 -08:00
reed@reedloden.com
66a7aaf1b0 Bug 404519 - "some margin and edges twips/app units confusion" [p=reg@freebsd.org (Jeremy Lea) / chpe@gnome.org (Christian Persch) r+sr=roc a1.9=schrep] 2007-11-20 21:09:58 -08:00
Olli.Pettay@helsinki.fi
eddad205bb Bug 301560, print() from modal dialog crashes browser [@ nsPrintEngine::ShowPrintProgress], r+sr=bz, a=blocking1.9+ 2007-11-12 04:17:23 -08:00
Olli.Pettay@helsinki.fi
406b6dc659 Bug 398265, Crash [@ nsPrintPreviewListener::RemoveListeners()] with <frame> on print preview, r+sr=roc, a=1.9+ 2007-11-09 14:38:46 -08:00