Commit Graph

15492 Commits

Author SHA1 Message Date
Wes Kocher
0a9980fbf6 Merge m-c to fx-team, a=merge 2015-11-16 17:28:26 -08:00
Botond Ballo
431411200a Bug 1208829 - Make FromUnknownRegion() actually work, and add ToUnknownRegion(). r=mstange 2015-11-09 20:42:37 -05:00
Luca Greco
efb6aaa214 Bug 1218364 - windowless browser windows should not crash on Troubleshoot. r=billm,jrmuizel 2015-11-11 07:08:00 +01:00
Nicholas Nethercote
2828d6ed1d Bug 1224482 (part 4) - Make GetClientSize() return a LayoutDeviceIntSize. r=kats. 2015-11-13 01:37:02 -08:00
Nicholas Nethercote
f665d5a170 Bug 1224482 (part 2) - Replace GetNaturalBoundsUntyped() with GetNaturalBounds(). r=kats. 2015-11-13 01:37:02 -08:00
Nicholas Nethercote
7cd70b33b4 Bug 1224482 (part 1) - Tweak typed/untyped versions of Get{,Client,Screen}Bounds(). r=kats.
In nsIWidget, GetBoundsUntyped(), GetClientBoundsUntyped() and
GetScreenBoundsUntyped() are currently the primary implementations, and the
untyped versions are defined on top of them. This patch flips that around.
2015-11-12 16:04:52 -08:00
Matt Woodrow
bb8cd0f0f6 Bug 1217012 - Use doubles when untransforming points since we need the extra precision. r=kip 2015-11-16 17:05:55 +13:00
John Daggett
5fe07c8458 Bug 1173260 - support multiple families for generics. r=heycam 2015-11-16 08:48:40 +09:00
John Daggett
b7175b8052 Bug 1167284 - implement localized name lookup for fontconfig font families. r=karlt 2015-11-16 08:48:36 +09:00
Nathan Froyd
3ce57b5162 Bug 1216644 - part 3 - make BufferRecycleBin store UniquePtrs; r=jrmuizel
Changing mRecycledBuffers to store UniquePtrs instead of nsAutoArrayPtrs
opens up the possibility of a reasonable facsimile of ownership in
function signatures.
2015-10-20 13:16:04 -04:00
Nathan Froyd
ccb2eeeffe Bug 1216644 - part 2 - make gfxFontEntry::mUVSData a UniquePtr; r=jrmuizel
This patch could have been in the last patch, but it felt like modifying
ReadCMAPTableFormat14 to accept a UniquePtr<> made the code clearer.
This change was therefore separated into its own patch for easier
review.
2015-10-20 12:12:41 -04:00
Nathan Froyd
d151c2d381 Bug 1216644 - part 1 - simple s/nsAutoArrayPtr/UniquePtr/ changes in gfx/; r=jrmuizel
This patch handles all the cases where we just want to swap out
nsAutoArrayPtr for UniquePtr and don't require code changes other than
updating uses that implicitly converted to T* to follow UniquePtr's
conventions.
2015-10-20 13:13:35 -04:00
Kartikaya Gupta
927782a371 Bug 1223296 - Clear element activation if a contextmenu is displayed. r=botond 2015-11-13 15:10:52 -05:00
Kartikaya Gupta
272cd4b619 Bug 1223296 - Fire a Gesture:SingleTap message to browser.js even on the C++ APZ codepath. r=rbarker 2015-11-13 15:10:52 -05:00
Kartikaya Gupta
8bbbaa5889 Bug 1223296 - Fire the MozMouseHittest event even if the C++ APZ is enabled. r=rbarker,botond 2015-11-13 15:10:52 -05:00
Kartikaya Gupta
bc9d55c915 Bug 1223296 - Turn HandlePanStart into a more generic function that can be called from other places. r=botond 2015-11-13 15:10:52 -05:00
Kartikaya Gupta
25606e7209 Bug 1214267 - Followup to fix missing propagation of 'fixedPositionSides' to the compositor, and add it to the layers dump. r=mattwoodrow
DONTBUILD because this is a backout/reland to fix bug number.
2015-11-13 09:38:57 -05:00
Kartikaya Gupta
f5477527ef Back out cset 7529d41e6f1b for landing with an incorrect bug number. r=me 2015-11-13 09:37:53 -05:00
Kartikaya Gupta
12157246d6 Bug 1224209 - Fix missing propagation of 'fixedPositionSides' to the compositor, and add it to the layers dump. r=mattwoodrow 2015-11-13 09:35:40 -05:00
Bas Schouten
4b52ebda80 Bug 1204922: When ResizeBuffers fails, make no attempt to do subsequent paints until it succeeds again. r=milan 2015-11-13 13:04:44 +01:00
Nicholas Nethercote
f384f42d29 Bug 1224403 (part 10) - Make nsScreenGonk::GetNaturalBoundsUntyped() typed. r=kats. 2015-11-12 05:44:43 -08:00
Nicholas Nethercote
15961fc6fb Bug 1224403 (part 4) - Make {Get,Set}NonClientMargins() return/take a LayoutDeviceIntMargin. r=kats.
This required adding {To,From}UnknownMargin().
2015-11-11 23:05:04 -08:00
Nicholas Nethercote
0dd9ab6cb8 Bug 1224403 (part 1) - Make Configuration::mBounds a LayoutDeviceIntRect. r=kats. 2015-11-10 16:27:26 -08:00
Jeff Gilbert
09a5c6135d Bug 1209612 - Formalize client vs display EGL exts, and don't check client exts on ANDROID due to topcrash. - r=jrmuizel,snorp 2015-11-12 13:41:45 -08:00
Bas Schouten
9a6a757afb Bug 1221616: Use ID2D1CommandList instead of a bitmap for temporary D2D drawing. r=jrmuizel 2015-11-12 17:00:52 +01:00
Heiher
c4cb01dda9 Bug 1222298 - GFX: 2D: Make convolverLS3 more like upstream. r=seth
---
 gfx/2d/convolverLS3.cpp | 62 +++++++++++++++++++++++++------------------------
 gfx/2d/convolverLS3.h   |  4 +---
 2 files changed, 33 insertions(+), 33 deletions(-)
2015-11-12 19:43:17 +08:00
Nicholas Nethercote
4ce3d974a8 Bug 1223690 - Remove implicit Rect conversions. r=jrmuizel.
gfxRect can be implicitly constructed from IntRect, which hides a number of
implicit conversion points, makes Moz2Dification harder, and has some
surprising effects.

This patch removes the implicit constructor and replaces it with an explicit
conversion function:

  gfxRect ThebesRect(const IntRect&)

This is the obvious outcome of removing the constructor.

But there is also a second, less obvious outcome: currently we do a number of
IntRect-to-Rect conversions using ToRect(), which (surprisingly) works because
it turns into an implicit IntRect-to-gfxRect conversion (via the implicit
constructor) combined with an explicit gfxRect-to-Rect conversion (via
ToRect()). I.e. we do two conversions, going from a Moz2D type to a Thebes
type and back to a Moz2D type!

So this patch also changes these conversion. It moves this existing function:

  Rect ToRect(const IntRect&)

from gfx2DGlue.h -- where it doesn't really belong because it doesn't involve
any Thebes types -- to gfx/2d/Rect.h, templatifying and renaming it as
IntRectToRect() in the process.

The rest of the patch deals with fall-out from these changes. The call sites
change as follows:

- IntRect-to-gfxRect conversions:
  - old: implicit
  - new: ThebesRect()

- IntRect-to-Rect conversions:
  - old: ToRect()
  - new: IntRectToRect()
2015-11-11 14:23:14 -08:00
Botond Ballo
57bd184fa2 Bug 1224021 - Support fractional async scroll offsets in the reftest harness. r=tn 2015-11-11 19:10:23 -05:00
Timothy Nikkel
54e904ba50 Bug 1223639. Rename ForceInside to MoveInsideAndClamp so it's clearer what it does. r=botond
This has led to confusion at least twice.
2015-11-11 16:38:25 -06:00
Botond Ballo
851b7a2860 Bug 1222661 - Replace ToUnknown(obj) and FromUnknown(obj) with obj.ToUnknown*() and FromUnknown*(obj). r=nical 2015-11-09 17:49:46 -05:00
Botond Ballo
5d3596c6b7 Bug 1222661 - Replace FromUntyped(obj) calls with FromUnknown*(obj). r=nical 2015-11-09 18:22:25 -05:00
Botond Ballo
c16d0046cf Bug 1222661 - Replace ToUntyped(obj) calls with obj.ToUnknown*(). r=nical 2015-11-06 22:13:40 -05:00
Bas Schouten
92aaab4443 Bug 1210560 - Followup 3: Fix an assertion that can occur on mochitest bc4. r=jrmuizel on a CLOSED TREE 2015-11-11 21:56:59 +01:00
Benoit Girard
e7a9b7f7b5 Bug 1223540 - Add a pref for CGL's multithreaded mode (EMPEngine). r=jrmuizel 2015-11-10 16:14:24 -05:00
Kartikaya Gupta
aff0bd88ad Bug 898075 - Remove the mozbrowserasyncscroll event from Gecko. r=botond,kanru,sicking 2015-11-11 10:17:47 -05:00
Bas Schouten
74a7b70253 Bug 1210560 - Part 8: Remove unused PushGroup/PopGroup/PopGroupToSource functions. r=jrmuizel 2015-11-11 16:15:40 +01:00
Bas Schouten
93d26fd2d7 Bug 1210560 - Part 5: Convert BasicLayers usecases to PushGroupForBlendBack and temporary surfaces. r=jrmuizel 2015-11-11 16:15:39 +01:00
Bas Schouten
f83e6fd87c Bug 1210560 - Part 3: Convert more complex SVG usecases to PushGroupForBlendBack. r=jwatt r=jrmuizel 2015-11-11 16:15:39 +01:00
Bas Schouten
74b3ef74ce Bug 1210560 - Part 2: Convert some simple users to use PushGroupForBlendBack. r=jrmuizel 2015-11-11 16:15:39 +01:00
Bas Schouten
33bb7ae164 Bug 1210560 - Part 1: Add an API specifically intended for users that just Push and Pop-Mask/Pop-Paint. r=jrmuizel 2015-11-11 16:15:39 +01:00
Thinker K.F. Li
24e3c2ac49 Bug 1210784 - Layer tree invalidation with Preserves3D. r=roc 2015-11-02 18:28:00 +01:00
Kartikaya Gupta
a84470d0f5 Bug 1214267 - Send the side to which fixed-pos items are attached so that we can move them in the compositor more correctly when the viewport size is changing. r=mattwoodrow 2015-11-11 10:07:29 -05:00
John Daggett
cbab96a8fe Bug 1160506 - support intra-family font fallback. r=heycam
Fontconfig allows for fonts to be arbitrarily mapped into another font
family. Under some versions of Debian and Fedora, families like Droid
Sans Japanese were mapped into the Droid Sans family. To match these
font families properly, it's necessary to test multiple fonts within a
single given family. Since this is a relatively time consuming
procedure, only do this when there are multiple regular faces for a
given family.
2015-11-11 21:13:33 +09:00
Milan Sreckovic
03b025515f Bug 1219494 - Part 1. TextureD3D11 and gfxDevCrash instead of MOZ_CRASH where appropriate. r=mchang 2015-11-09 11:28:00 +01:00
Nicholas Nethercote
8300e7517f Backout ea759b57d58a (bug 1223215 part 5) because the removed functions are still useful. r=me.
DONTBUILD because it just adds back a couple of small, unused functions.
2015-11-10 20:36:29 -08:00
David Anderson
5a26bddd1f Use RAII for more TextureClient locking cases. (bug 1222863 part 2, r=nical) 2015-11-10 23:58:29 -08:00
David Anderson
f9923890d2 Add an RAII class to lock and unlock textures. (bug 1222863 part 1, r=nical) 2015-11-10 23:58:21 -08:00
Nicholas Nethercote
7215329de9 Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.
2015-11-09 21:37:32 -08:00
Nicholas Nethercote
3e06c61b01 Bug 1223215 (part 5) - Remove ToSize() and ThebesSize(). r=jrmuizel. 2015-11-08 21:13:36 -08:00
Nicholas Nethercote
016b3e7be2 Bug 1223215 (part 4) - Remove a ToSize() call. r=jrmuizel. 2015-11-08 21:04:42 -08:00