Robert O'Callahan
8093bbfc20
Bug 537890. Part 11: Introduce _TO_INT_TWIPS macros and have some _TO_TWIPS callers use _TO_INT_TWIPS instead. r=dbaron
2010-08-13 21:59:16 +12:00
Robert O'Callahan
0b7f75a585
Bug 537890. Part 10: Fix nsPresContext and nsIDeviceContext unit-conversion methods to be explicit about using CSS logical units instead of physical units. r=dbaron
2010-08-13 21:58:04 +12:00
Michael Ventnor
c40f8edbb0
Bug 564991. Part 3: Create unique nsDisplayItem types for every single display item. r=tnikkel
2010-07-16 09:07:49 +12:00
Robert O'Callahan
9d5b5ae49a
Bug 513082. Instead of passing aDirtyRect to nsDisplayItem::Paint, have nsDisplayList::OptimizeVisibility (renamed to ComputeVisibility) compute the intersection of the visible region with the bounds of each display item and store the result in the item's mVisibleRect. This lets us do less work to paint display items which have a small intersection with the visible region but a large intersection with the bounding-box of the visible region. r=dbaron
2009-09-07 12:35:14 +12:00
Mats Palmgren
6247c7c4c6
Bug 233463, patch 0 - Use nsFrameList methods instead of nsIFrame::SetNextSibling. r=bzbarsky
2009-09-18 13:09:35 +02:00
Mats Palmgren
f82eedba5a
Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc
2009-09-16 17:01:36 +02:00
Bobby Holley
464b4712e3
Bug 435296 - Decode-On-Draw. r=joe,roc,bz,dolske,peterw sr=vlad
2009-09-12 16:44:18 -06:00
Zack Weinberg
b6fe8205dd
Bug 497495 part 3: Add methods to every nsFrame subclass that expose the as-allocated identity of every frame object. Also some cleanups to the QueryFrame implementation. r=dbaron sr=roc
2009-09-12 17:49:24 +01:00
Olli Pettay
41da564f16
Bug 425265, r=roc, sr=bz
2009-03-08 21:01:02 +02:00
Jeremy Lea
3e1e90f73a
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
2009-01-15 16:27:09 +13:00
Benjamin Smedberg
0f95227641
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.
2009-01-12 14:20:59 -05:00
Benjamin Smedberg
7a084ac404
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
991a16d8bc
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
Doug Turner
b34037187c
Bug 458917 - Windows CE Cleanup. r/sr=stuart+bsmedberg
2008-10-08 20:51:54 -07:00
Daniel Holbert
a114f140ec
bug 433284 - Needed to reposition child views after sliding container frame during print-selection. r+sr=roc
2008-06-24 09:30:55 -07:00
72fd398edf
Bug 430878: Call PositionChildViews after sliding selection to top of page, to fix mispositioned scrollframes in print selection. r+sr=roc a=dsicore
2008-04-28 15:55:04 -07:00
794988423c
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
9d770cba36
Backing out bug 429337 to fix broken printing reftests on linux test box.
2008-04-21 17:48:12 -07:00
ec1b8b6c49
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
580fbdd346
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
808135857e
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
df25a6140d
Backing out Bug 417356, due to pagination reftest failures.
2008-03-14 01:50:13 -07:00
ac7f310325
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
1baf3f1267
give page content frames a computed size so height: 100% works, b=411382 r+sr=bz
2008-02-08 18:54:55 -08:00
473822229d
Bug 414075: Set the correct dead space gap value in Print Preview. Patch by Jeremy Lea <reg@openpave.org> r+sr=roc a1.9b3=schrep
2008-01-30 22:12:52 -08:00
064d8b5c4a
Bug 328718 - "GetEdgePaperMarginCoord should extend one inch" [p=hb@calen.de (Hb) r+sr+a1.9=roc]
2008-01-28 23:38:20 -08:00
7260a7259c
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
dafe7b2822
Bug 396278 - "should take edge values from print settings instead of prefs" [p=chpe r+sr=roc r=gavin a1.9=schrep]
2007-11-13 11:14:07 -08:00
bb81cb1c41
Backout bug 396278 due to failing reftests
2007-11-13 06:18:36 -08:00
4660d5e214
Bug 396278 - "should take edge values from print settings instead of prefs" [p=chpe r+sr=roc r=gavin a1.9=schrep]
2007-11-13 02:30:39 -08:00
9011ed7502
paginate absolutely-positioned elements, b=154892 r+sr=roc a=roc
2007-10-01 22:57:45 -07:00
368c29ae32
Introduce a setter for nsHTMLReflowState::mComputedHeight so that we're sure to
...
update the resize flags properly. Bug 388084, r+sr+a=dbaron
2007-08-02 11:08:05 -07:00
98de634631
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
2007-07-08 00:08:04 -07:00
79eeaa32d0
Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst
2007-07-03 19:15:31 -07:00
b9fb910993
Don't do incremental reflow for now, because tables can't deal. Followup forbug 378480, r+sr=roc
2007-04-25 22:33:34 -07:00
e0f90db412
Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch byTaras Glek <tglek@mozilla.com>, rs=roc.
2007-03-30 14:11:41 -07:00
sharparrow1@yahoo.com
5d92f811db
Bug 374050: add printing test mode to reftests. See bug/sample test for how to make printing tests.
2007-03-21 06:07:42 +00:00
sharparrow1@yahoo.com
9d8c79627d
Try to fix bustage from bug 371528
2007-02-25 23:23:09 +00:00
sharparrow1@yahoo.com
590489ee52
Bug 371528: Stop creating views for pages. r+sr=roc.
2007-02-25 22:26:47 +00:00
sharparrow1@yahoo.com
f6c8a9bd18
Bug 371460: Remove clipping functions from views. r+sr=roc.
2007-02-24 15:27:20 +00:00
sharparrow1@yahoo.com
34a122b207
Bug 370379: Create views less frequently. Stops creating views for -moz-hidden-unscrollable, opacity, fixed backgrounds, and scrollbars, plus removes some unneeded methods from views and view managers. r+sr=roc.
2007-02-24 00:23:42 +00:00
sharparrow1@yahoo.com
4541ca4130
Bug 369834: Get rid of SetAltDevice and friends (and fix print preview). r+sr=roc.
2007-02-13 22:36:59 +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
cvshook@sicking.cc
e80f1dba4e
Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
2007-01-30 00:06:41 +00:00
bzbarsky@mit.edu
b09985c9eb
Make mComputedWidth private, with a getter/setter, and make the setter update
...
the resize flags. Bug 367442, r+sr=dbaron
2007-01-26 00:05:12 +00:00
dbaron@dbaron.org
8648581bf7
Change the bulk of ascent (baseline) computation to happen on a virtual method on nsIFrame, and remove the redundant descent member from nsHTMLReflowMetrics, primarily to support having both first-line and last-line baselines. b=367332 r+sr=roc
2007-01-23 04:06:56 +00:00
timeless@mozdev.org
f4ef17d178
Bug 355300 There should be only one nsGkAtoms creature
...
r=dbaron
2006-12-26 17:47:52 +00:00
dbaron@dbaron.org
d21cb374bd
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
sharparrow1@yahoo.com
a6dfa65ee9
Bug 345707: print selection cuts off top of selection. r+sr=src.
2006-11-24 08:14:37 +00:00
timeless@mozdev.org
931da47d2c
Bug 352523 Warning: String literal converted to char* in formal argument aAttr in call to nsFrameUtil::Tag::GetAttr(char*).
...
r=roc sr=roc
2006-09-19 06:41:07 +00:00