Commit Graph

15508 Commits

Author SHA1 Message Date
Bas Schouten
5a5232dc3d Bug 1225125: If all drawing is just clipped out anyway, just push a regular group, blending mode won't matter. r=jrmuizel 2015-11-17 16:27:17 +01:00
Carsten "Tomcat" Book
7ac6dfecb4 Merge mozilla-central to mozilla-inbound 2015-11-17 12:33:46 +01:00
Carsten "Tomcat" Book
074e71d839 merge mozilla-inbound to mozilla-central a=merge 2015-11-17 12:26:16 +01:00
Sotaro Ikeda
36520c133b Bug 1144103 - Support screen recording r=mwu 2015-11-17 02:04:40 -08:00
John Daggett
c3c53352ea Bug 1163487 - sniff LANGUAGE when determining language for lang group. r=karlt 2015-11-17 11:39:58 +09:00
Kevin Wern
a16ec39b18 Bug 1199798 - Create tests for TreeTraversal.h r=botond
Move queue and stack includes outside of mozilla namespace.

Test the following for searches:
- Null root returns null.
- Needle is root returns root.
- No needle results in full traversal.
- Needle node in middle returns that needle, and stops traversing.

Test the following for ForEachNode:
- Null root still runs correctly.
- No skips results in traversal of entire tree.
- Root skip results in only changing the root.
- First skips are still included (whether leaf or parent).
2015-11-16 13:54:12 -05:00
Matt Woodrow
1d9e6da57b Bug 1219230 - Use the valid region for determining buffer size instead of the visible region. r=mstange 2015-11-17 11:36:38 +13:00
David Anderson
aa17819ba5 Remove CreateImage() from ImageContainer, ImageFactory, and ImageClient. (bug 1222910, r=roc) 2015-11-17 00:09:01 -08:00
David Anderson
2cadcf2890 Remove Gonk usage of ImageContainer::CreateImage. (bug 1222910, r=sotaro) 2015-11-17 00:09:01 -08:00
David Anderson
3b2a1618b6 Decouple SharedRGBImage and PlanarYCbCrImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:01 -08:00
David Anderson
541d0e4d7d Decouple MacIOSurfaceImage from ImageContainer. (bug 1222910, r=mstange) 2015-11-17 00:09:00 -08:00
David Anderson
0b4676f5e2 Decouple SurfaceTextureImage from ImageContainer. (bug 1222910, r=snorp) 2015-11-17 00:09:00 -08:00
David Anderson
6f1947dc8d Decouple EGLImageImage from ImageContainer. (bug 1222910, r=snorp) 2015-11-17 00:09:00 -08:00
David Anderson
625f310506 Decouple D3D9SurfaceImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
David Anderson
dc3cb48a73 Decouple D3D11ShareHandleImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
David Anderson
f64d767dfe Decouple CairoImage from ImageContainer. (bug 1222910, r=roc) 2015-11-17 00:09:00 -08:00
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