Robert O'Callahan
88521a102c
Bug 526394. Part 29: Create new nsLayoutUtils methods and remove useless code from nsListControlFrame::CaptureMouseEvents. r=mats
2010-01-12 10:45:18 +13:00
Robert O'Callahan
c814462e8a
Bug 526394. Part 26: Rework nsSelection to use frames only. r=mats
2009-09-10 17:16:18 +12:00
Robert O'Callahan
9324676397
Bug 526394. Part 5: Fix up a bunch of sites to use nsIScrollableFrame instead of nsIScrollableView. r=mats
2009-09-01 23:29:27 +12:00
fantasai
1e880721fb
Bug 508473 Part II: Remove DeletingFrameSubtree r=bz sr=roc
2009-12-24 00:20:41 -05:00
Olli Pettay
2f4c5ea761
Bug 487667 - Clone documents for printing, r=roc+jst+joe+dbaron
...
--HG--
extra : rebase_source : dbab242066ba97c0d7f34a2fb701a1c465f26ec4
2009-12-10 20:02:13 -08:00
Robert O'Callahan
d866e87ce4
Bug 531371. Correctly propagate the backround from a <body style="display: table"> to the viewport as needed. r=bzbarsky
2009-12-01 12:21:00 -05:00
Robert O'Callahan
1eb1c0bb6b
Bug 530472. Make sure to check across document boundaries to see whether the clipFrame is an ancestor of the moving frame. r=dbaron
2009-11-30 18:14:04 -05:00
Robert O'Callahan
54824bc7d1
Bug 528604. Don't add areas-to-repaint when scrolling for non-moving clip rects that aren't clipping any moving content. r=dbaron
2009-11-18 13:38:17 +13:00
Boris Zbarsky
c1595ce69a
Bug 518114 part 2. Use state bits to keep track of what a placeholder is a placeholder for. r=roc
2009-11-16 16:00:07 -05:00
Boris Zbarsky
ffab603a47
Bug 518114 part 1. Don't force a virtual GetType call in GetFloatFromPlaceholder. r=roc
2009-11-16 16:00:07 -05:00
Robert O'Callahan
7e04a64cff
Bug 513082. Take advantage of our knowledge that nsDisplayClip, when used in a blitting scrolling frame, must snap to device pixels, to get more accurate blit regions. r=dbaron
2009-11-04 07:39:42 +13:00
Boris Zbarsky
5215a681c7
Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron
2009-10-29 17:17:56 -04:00
L. David Baron
1e581250d4
Make unconstrained width assertions into warnings because we can hit them when we clamp really large widths. (Bug 525100) r=roc
2009-10-28 20:22:28 -07:00
Robert O'Callahan
56aad34bd4
Bug 516885. Pass separate visible-before-move and visible-after-move regions into ComputeVisibility, to make code clearer because we don't have to overload a single region, and which also lets us fix ambiguities related to clipping. r=dbaron
2009-10-07 17:28:41 +13:00
Robert O'Callahan
d56dfa741e
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
...
--HG--
extra : rebase_source : 76db4b87ef9e5a6e9de7677edc08c26e2cbc462e
2009-09-07 12:35:14 +12:00
Robert O'Callahan
3f31ace6a0
Bug 510856. ComputeRepaintRegionForCopy should not look outside the update rect for moving and non-moving visible content. r=dbaron
...
--HG--
extra : rebase_source : 4b2bb7ca8ca883c4d2ba6e14f5a43c82c831fc32
2009-09-07 12:35:13 +12:00
liucougar
5104b445c7
Bug 396392 - Support for getClientRects and getBoundingClientRect in DOM Range
...
r=roc sr=(jonas, roc)
2009-09-24 23:01:48 +02:00
Boris Zbarsky
82c38f6a01
Bug 515703. In some cases we can end up checking whether an element is the default submit before we've updated our default submit; in that situation wehave to do it the slow way. r=jst
2009-09-18 14:52:27 -04:00
Mats Palmgren
377056c269
Bug 233463, patch 2 - Introduce nsFrameList::mLastChild member for fast access to the last sibling frame. r=bzbarsky
2009-09-18 13:09:36 +02:00
Mats Palmgren
948203eb7d
Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc
2009-09-16 17:01:36 +02:00
Bobby Holley
2d5ec55945
Bug 435296 - Decode-On-Draw. r=joe,roc,bz,dolske,peterw sr=vlad
2009-09-12 16:44:18 -06:00
Timothy Nikkel
3ee08e2969
Bug 445765. In getting the device context from a docshell don't go through nsIBaseWindow::GetMainWidget because that always returns the device context for the primary screen when called on toplevel docshell. r=dbaron
2009-09-01 12:40:49 -04:00
fantasai
d5c48032c3
Bug 492627 - Remove Placeholder Continuations [Part V: Reimplement float splitting without placeholder continuations] r=roc
2009-08-31 11:25:36 -07:00
L. David Baron
b2e8bbda9d
Backed out changeset 6b686281f9ac (Bug 445765) for causing a 3% Txul (Twinopen) regression on Linux.
2009-08-23 08:06:58 -07:00
Timothy Nikkel
b6e9e162b8
Bug 445765. In getting the device context from a docshell don't go through nsIBaseWindow::GetMainWidget because that always returns the device context for the primary screen when called on toplevel docshell. r=dbaron
2009-08-23 08:16:52 +02:00
Mats Palmgren
96372404b6
Don't call CalculateContentBottom inside PR_MAX(), which evaluates its arguments twice. (Bug 511482) r=dbaron
2009-08-22 10:10:11 -07:00
Zack Weinberg
2cd31f70f9
Bug 510651: Fold nsIFrameDebug into nsFrame. r=dbaron sr=mrbkap
2009-08-20 14:52:48 -07:00
Robert O'Callahan
9f2ae1a715
Bug 507334, part 2: Blit multiple rectangles when scrolling rather than blitting only the largest single rectangle, and avoid repainting opaque content that covers the scrolling content. r=dbaron
2009-08-13 19:09:51 -07:00
Markus Stange
04d8aa170a
Bug 510149 - Changes to nsLayoutUtils::GetFrameTransparency. r=roc
...
--HG--
extra : rebase_source : 024d18340b423827524eb725d961d0907b90338d
2009-08-14 10:08:13 +12:00
Felipe Gomes
972bf3dc41
Bug 503541 - Fine grained control of gesture registration on widgets (Win7). r=smaug+roc, sr=smaug
2009-08-13 13:54:09 -07:00
Timothy Nikkel
24844a2db3
Bug 504269. background color of iframe not drawn on print. r+sr=roc
2009-07-29 18:10:50 -04:00
Ryo Kawaguchi
f8f1c8c15b
Bug 506409: Merge Draw*ImageInternal methods into their Draw*Image callers, and fix a comment in imgIContainer.idl. patch=ryo r=roc
2009-07-27 16:48:13 -07:00
Robert O'Callahan
edefa6fb61
Bug 339548. Part 14: hide windowed plugins in CSS transforms and SVG foreignObject contexts; we can't display them properly, so let's not display them at all. r=dbaron
2009-07-22 12:45:14 +12:00
Robert O'Callahan
40f66f6506
Bug 339548. Part 7: Create nsLayoutUtils::IsAncestorFrameCrossDoc. r=dbaron
2009-07-22 12:44:56 +12:00
Joe Drew
6c441f55f7
Bug 753 - Remove nsIImage, gfxIImageFrame, and their implementations, and expose an equivalent api on imgIContainer. r=roc,josh,bz,longsonr,vlad,karlt,jimm,bsmedberg,mfinkle,peterw,peterv sr=vlad,roc
...
--HG--
rename : gfx/src/shared/gfxImageFrame.cpp => modules/libpr0n/src/imgFrame.cpp
rename : gfx/src/shared/gfxImageFrame.h => modules/libpr0n/src/imgFrame.h
2009-07-20 18:50:15 -07:00
Kyle Huey
b5252a4e2a
Bug 492205. Remove IsRootElementFrame. r=roc
2009-07-04 22:00:10 +12:00
Timothy Nikkel
b21de22a53
Bug 488242. Make iframes with semi-transparent backgrounds work correctly by painting all canvas background colors using a dedicated fallback background color display item. r+sr=roc
2009-07-04 21:30:59 +12:00
Mats Palmgren
0fe634a951
Fix build error when MOZ_MEDIA isn't defined. b=500988 r=roc
2009-07-02 11:57:35 +02:00
Vladimir Vukicevic
ce0b21af22
b=492724; pull out canvas utility functions into CanvasUtils/LayoutUtils; r+sr=roc
2009-06-25 13:30:56 -07:00
L. David Baron
0d06184f97
Remove support for fallback background colors. (Bug 496721) r+sr=bzbarsky
2009-06-16 08:00:20 -07:00
Karl Tomlinson
1b9df1cee4
b=481751 block-height line-height for text input and strut baseline for textarea r=bz,sr=dbaron
...
--HG--
extra : rebase_source : 1241360066ea9387d15c71936da9468399240640
2009-05-19 10:13:12 +12:00
Boris Zbarsky
a3a9f40918
Bug 493025. Don't assert if we happen to do bitblit scroll analysis on some frames that are dirty because a reflow got interrupted. r+sr=roc
2009-05-14 21:40:29 -04:00
Masayuki Nakano
feee8b464b
Bug 492233 [IMM32] Reimplement IME mouse handling r=VYV03354+roc, sr=roc
2009-05-15 09:46:24 +09:00
Robert O'Callahan
d827a42b82
Bug 488901. When an element's size changes and it has borders, we don't necessarily need to invalidate the entire border-box --- if there is no right or bottom border, and other conditions are met. r+sr=dbaron
...
--HG--
extra : rebase_source : 24306ec844dab873cc9b580f32a383f0ccb769a5
2009-05-08 13:52:22 +12:00
Daniel Holbert
c59da27043
Bug 450340 trivial follow-up: flip constructor's initialization order to fix a build warning. r=roc
2009-05-04 11:08:36 -07:00
tn
7afdd11636
Bug 490376 - Crash [@ nsDisplayList::GetBottom]; r=roc
2009-04-30 12:07:18 +02:00
tn
eb440cb520
Bug 485275. Display fallback background color for non-root documents as necessary. r+sr=roc
...
--HG--
extra : rebase_source : fd455bec928d342c184089dfba6c75191c4ea28d
2009-04-25 20:19:23 +12:00
Dão Gottwald
ddb69df7b5
Backout bug 485275 (changeset 996c11579453) because of test failures
2009-04-18 10:53:27 +02:00
tn
6af985ce18
Bug 485275 - trunk displays svg transformed foreign object html differently then 1.9. r+sr=roc
2009-04-18 09:11:29 +02:00
Boris Zbarsky
0ab9c0661c
Bug 488390. Get special siblings correctly even when bidi is involved. r+sr=roc
2009-04-14 22:28:27 -04:00
Robert Longson
102ababb45
Bug 486933 - image-rendering does not work on body or root CSS background images. r+sr=roc
2009-04-10 14:41:59 +01:00
Boris Zbarsky
2aa018769c
Backed out changeset 86c8e18f20eb (bug 486933) due to landing on orange tree.
2009-04-09 11:54:43 -04:00
Robert Longson
e2afce6113
Bug 486933 - image-rendering does not work on body or root CSS background images. r+sr=roc
2009-04-09 13:17:50 +01:00
L. David Baron
5e6c45ce6a
Switch away from nsBlockReflowState::mAvailSpaceRect in bullet reflow, and simultaneously refix bug 427370 in a way that also fixes bug 428810. (Bug 25888) r+sr=roc
2009-04-08 13:52:36 -07:00
Robert Longson
0c50408f21
Bug 486933 - image-rendering does not work on body or root CSS background images. r+sr=roc
2009-04-07 00:45:54 +01:00
Robert Longson
fba54c0496
Bug 486933 - image-rendering does not work on body or root CSS background images. r+sr=roc
2009-04-06 22:00:29 +01:00
Robert Longson
7506754d85
Bug 423756 - Support image-rendering attribute for html images and css backgrounds. r=joe,vlad sr=roc
2009-04-05 10:52:14 +01:00
Olli Pettay
52a6331cea
Bug 482976 - Crash [@ nsTextFrame::Reflow] on print preview with quote, r+sr=roc
2009-03-18 12:45:00 +02:00
Daniel Holbert
36bb602e68
Bug 482379: Wrap an SVG-related precondition with "#ifdef MOZ_SVG", to fix build failure when using --disable-svg. r+sr=roc
2009-03-09 21:38:46 -07:00
Daniel Holbert
13bc3b1f0e
Backed out changeset 37756ccaa268, due to red on windows build machine
2009-03-09 20:40:53 -07:00
Daniel Holbert
22e1542fc2
Bug 482379: Wrap an SVG-related line with "#ifdef MOZ_SVG", to fix build failure when using --disable-svg. r+sr=roc
2009-03-09 19:50:36 -07:00
Olli Pettay
468b832900
Bug 425265, r=roc, sr=bz
2009-03-08 21:01:02 +02:00
L. David Baron
fa9a21c33d
Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky
2009-02-19 21:29:21 -08:00
L. David Baron
2eb748571c
Backed out changeset fde0b361f25e (bug 322475, main patch) due to Mac talos startup failures and hitting the NS_ABORT_IF_FALSE in SetupBackgroundClip, which may be related.
2009-02-19 13:51:46 -08:00
L. David Baron
d9ac02ed8c
Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky
2009-02-19 12:33:09 -08:00
L. David Baron
a91aa25ab0
Back out all 8 changesets that I just landed (bugs 477959, 477961, 322475, 478899, 475215, 478156) again, because Talos Try server builds lie about which changesets they're testing.
2009-02-19 09:06:18 -08:00
L. David Baron
51ef1de194
Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky
2009-02-19 07:29:28 -08:00
Jeremy D. Lea
b9a1696e34
Bug 476726 - deCOMtaminate WidgetToScreen and ScreenToWidget; r+sr=roc
...
--HG--
extra : rebase_source : 4a35ccdcafbe8a0a9dded9f292a139b4679709e3
2009-02-18 16:11:49 -08:00
L. David Baron
8b207bcc51
Revert (back out) the previous 11 changesets (bugs 477959, 477961, 477963, 477962, 322475, 478899, 475215, 478156), due to Mac talos orange with (as usual) no useful diagnostic.
2009-02-18 18:59:47 -08:00
L. David Baron
366992262c
Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky
2009-02-18 17:13:25 -08:00
Zack Weinberg
bea9955522
Bug 476557. Update view manager cache of page background color in PresShell::Paint, not nsCSSRendering::PaintBackground; permits a small API cleanup. r+sr=roc
...
--HG--
extra : rebase_source : dcf1475dd8b695eb18513e97ca35b08a4affd19f
2009-02-16 14:11:34 +13:00
Boris Zbarsky
13505d3994
Bug 478101. Suppres GetUsed* assertions during all display list processing, not just during display list construction. r+sr=roc
2009-02-15 13:14:21 -05:00
Serge Gautherie
5ec9f53e89
Backed out changeset: 719dca3419b5
2009-02-15 18:41:16 +01:00
Jeremy Lea
b82cdbd258
Bug 476726 - deCOMtaminate WidgetToScreen and ScreenToWidget; r+sr=roc
2009-02-15 17:41:06 +01:00
Ehsan Akhgari
1de3732803
Bug 478377 - Support specifying direction for :-moz-tree-cell pseudo class through CSS; r+sr=roc
2009-02-15 10:51:40 +03:30
Kyle Huey
93fcc53c4c
Bug 452345. nsCSSFrameConstructor should use the term 'root element frame' instead of 'initial containing block', since 'initial containing block' means something else in CSS. r+sr=roc
2009-02-05 21:11:42 +13:00
Jim Mathies
269a1439a7
Bug 450322 - Fix broken windows animation in Vista Aero. r+sr=roc.
2009-02-04 21:05:48 -06:00
Arpad Borsos
829f9f024a
Bug 474369 - get rid of nsVoidArray; layout part; r+sr=roc
2009-02-03 15:42:18 +01:00
Zack Weinberg
dcc576e990
Bug 455364. Part 1: Create nsLayoutUtils::Draw*Image variants that take nsIImage*. r+sr=roc
...
--HG--
extra : rebase_source : f12e5f2f1b23d82d8df40b9a279871c5ecdb46a8
2009-01-30 20:33:57 +13:00
Nickolay Ponomarev
dc72b9cc31
Bug 472189. Delay attribute changes for progressmeter updates via script-runnables. r=enn,sr=roc
2009-01-19 22:29:48 +13:00
L. David Baron
76872659c8
Don't suppress use of overridden virtual destructors, so we fix the appearance of a leak in the leak statistics. (Bug 473548) r+sr=roc
2009-01-16 13:32:09 -08:00
Jeremy Lea
1800930122
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
24e7cb1f78
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
50621e4f9f
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
d0b948876f
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
Olli Pettay
4055e86a98
Bug 471883 - Gesture events should be dispatched to the element under mouse, not to document. r+sr=roc
2009-01-03 14:40:26 +02:00
L. David Baron
7748baab3d
Fix nsLayoutUtils::IsReallyFixedPos to work right in paginated mode. (Bug 468645) r+sr=bzbarsky
2008-12-29 10:07:37 -05:00
Markus Stange
975559338c
Bug 391984 - [10.5] Add roundness to context menus, r=josh sr=roc
2008-12-11 15:37:38 +01:00
L. David Baron
c95d61afc0
Pass the user font set through more reliably and make it a required parameter. (Bug 467084) r+sr=roc a=blocking1.9.1+
2008-12-04 08:09:53 -08:00
Robert O'Callahan
9370e7013a
Bustage fix for bug 463307
2008-12-03 15:02:29 +13:00
Robert O'Callahan
38bbc69620
Bug 463307. Convert to float a bit earlier to avoid integer overflow. r+sr=dbaron
2008-12-03 14:32:18 +13:00
Robert O'Callahan
b72f6882fb
Bug 467283. Ignore dirty rect when doing any image resampling --- it will lead to artifacts. r+sr=dbaron,r=vlad
2008-12-03 09:46:44 +13:00
Gavin Sharp
58c580b07d
Bug 462887: document ignoreScrollFrame argument in nsLayoutUtils, rename it to ignoreRootScrollFrame, r=roc, sr=bzbarsky, a=beltzner
2008-11-28 14:53:33 -05:00
Robert O'Callahan
1dd1408b35
Bug 460012. When recreating frames for a generated content node, reframe the nearest non-generated-content ancestor. r+sr=bzbarsky
2008-11-26 11:15:41 +13:00
L. David Baron
dc119e5622
Handle some additional codepaths for position: fixed elements inside elements with -moz-transform. (Bug 455171) r+sr=bzbarsky a=blocking1.9.1+
2008-11-25 13:27:54 -08:00
Robert O'Callahan
2f76e95c17
Bug 464811. Snap the anchor point to pixels using a method that guarantees the source rect and the subimage rect intersect. r+sr=dbaron
2008-11-18 20:48:46 +13:00
Robert O'Callahan
774dc6063b
Backed out changeset 0ced86fbf8ed (reftest failures)
2008-11-18 10:13:55 +13:00
Robert O'Callahan
48c8f9855c
Bug 464811. Tweak the anchor point snapping algorithm again. This time we have a proof that the resulting snapping algorithm guarantees the subimage rectangle intersects the logical source rectangle. r+sr=dbaron
2008-11-18 09:32:11 +13:00
Robert O'Callahan
c8375e914a
Bug 463217. Don't let nsLayoutUtils::DrawSingleImage/DrawSingleUnscaledImage do any tiling, restrict their drawing to the single tile. r+sr=dbaron
2008-11-10 20:24:21 +13:00
Robert O'Callahan
6303f1ce0f
Bug 463204. Be more careful about snapping the anchor point. We must transform the anchor point to match the snapping of the fill rect before we actually snap it to device pixels. r+sr=dbaron
2008-11-07 13:58:42 +13:00