Commit Graph

1405 Commits

Author SHA1 Message Date
Ryan VanderMeulen
2b4ac234e9 Merge m-c to inbound. a=merge 2016-08-25 08:27:17 -04:00
Ryan VanderMeulen
520acfd195 Merge inbound to m-c. a=merge 2016-08-25 08:10:52 -04:00
Andi-Bogdan Postelnicu
b7451091eb Bug 1297054 - remove null check in CanvasRenderingContext2D::InitializeWithDrawTarget. r=jrmuizel
MozReview-Commit-ID: GA3PntlpxBU

--HG--
extra : rebase_source : ac822ae25b9d861da5a196734d09a8a507a16570
2016-08-23 11:41:21 +03:00
Nicholas Nethercote
c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Milan Sreckovic
ee08a6629f Bug 1297181: More information when accelerated canvas creation fails. r=mchang
MozReview-Commit-ID: AjhVkngSkHK

--HG--
extra : rebase_source : 728495351c705adee280c59042c5196cdc2bb2e4
2016-08-22 17:47:54 -04:00
Ryan VanderMeulen
69113163cf Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Nicholas Nethercote
314169f107 Bug 1297544 - Remove dom/canvas/WebGLContextReporter.cpp. r=jrmuizel.
This file is unused, and its contents are a subset of the contents of
dom/canvas/WebGLMemoryTracker.cpp. There must have been a mistake made while
renaming the file in the past, or something like that.

--HG--
extra : rebase_source : c6b8346123c195f21bd396e22fd2b55bdbf51bfd
2016-08-24 08:52:01 +10:00
Kearwood (Kip) Gilbert
199db0ebbc Bug 1296745 - Clean up WebGLContext r=jgilbert
MozReview-Commit-ID: B6xazNgeJ9A

--HG--
extra : rebase_source : b011fed21cebb0c5b9bf5eea4e2b58b4a85e83b6
2016-08-19 14:44:37 -07:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Ethan Lin
06cc318190 Bug 1296166 - Avoid calling EnsureTarget in CanvasRenderingContext2D::GetImageData. r=nical 2016-08-22 18:58:00 -04:00
Ethan Lin
5a7af1a426 Bug 1293970 - Avoid copy in CanvasRenderingContext2D::PutImageData and DrawWindow. r=nical 2016-08-16 20:18:00 -04:00
Wes Kocher
4c4e51ded0 Merge m-c to inbound, a=merge 2016-08-19 10:18:01 -07:00
Geoff Brown
97d7d7a146 Bug 1296651 - Avoid Win7 timeout in test_conformance__extensions__oes-texture-float-with-video.html; r=jmaher,a=ryanvm 2016-08-19 10:54:12 -06:00
Geoff Brown
2f25ac86fa Bug 1296644 - Allow test_2_conformance__canvas__rapid-resizing.html to pass on Win 7; r=jmaher,a=ryanvm 2016-08-19 10:54:11 -06:00
Nicolas Silva
0923b0fd39 Bug 1294351 - Avoid removing and re-applying the drawing states with PersistentBufferProviderBasic. r=Bas 2016-08-19 12:00:26 +02:00
Jonathan Kew
95a82f84cc Bug 1280887 - patch 2 - Make gfxTextRun refcounted, replace usage of UniquePtr<> with RefPtr<> for textruns, and make nsTextFrame hold a strong reference to its run(s). r=mats 2016-08-19 13:14:22 +01:00
Sebastian Hengst
7ab46a480a Backed out changeset 775fa3ede160 (bug 1294351) for failing in crashtest 647480.html. r=backout 2016-08-18 12:50:56 +02:00
Nicolas Silva
8173818111 Bug 1294351 - Avoid removing and re-applying the drawing states with PersistentBufferProviderBasic. r=Bas 2016-08-17 14:39:03 +02:00
Wes Kocher
07f8858bf6 Merge inbound to central, a=merge 2016-08-17 16:38:41 -07:00
Edwin Flores
29a30711a0 Bug 1272123 - Limit the size of CanvasRenderingContext2D::mStyleStack - r=mstange 2016-08-17 09:26:11 +01:00
Ethan Lin
18475abfbc Bug 1294607 - Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical 2016-08-15 23:54:00 -04:00
Phil Ringnalda
54ad5f454e Back out 6493296521fb (bug 1294607) for crashtest crashes in 1246775-1.html 2016-08-15 20:54:50 -07:00
Ethan Lin
93ca898ab6 Bug 1294607 - Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical 2016-08-11 20:26:00 -04:00
Towkir Ahmed
63867da04a Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske
a=release to get around a hook that's catching these comment-only idl changes

--HG--
extra : rebase_source : a7353680777fd2eeea24c9993f9937bbbcfb9e4f
2016-08-15 17:28:05 -07:00
Jeff Gilbert
ae6d979f8a Bug 1293845 - Update tests to handle new webidl.
MozReview-Commit-ID: 7hcluLAw7gx
2016-08-15 16:42:31 -07:00
Jeff Gilbert
aed6c57564 Bug 1293845 - Handle zero-size TexSubImage. - r=mtseng
MozReview-Commit-ID: J4cT3oqPTLa
2016-08-15 16:42:28 -07:00
Jeff Gilbert
34aa7ab5f7 Bug 1293845 - Repair texture bindings->internals glue. - r=mtseng
MozReview-Commit-ID: CUDQGwhPTuU
2016-08-15 16:42:25 -07:00
Jonathan Chan
9c62a2c11c Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-09 16:28:19 -07:00
Ethan Lin
b29de863bc Bug 1293968 - Avoid calling EnsureTarget in CanvasRenderingContext2D::GetImageBuffer. r=nical
--HG--
extra : rebase_source : de0f1bb16639d0bc358b373636404d66a4eb7d1a
2016-08-11 23:46:00 -04:00
vincentliu
e73e0cf5da Bug 1286458 - Add crashtest. r=lsalzman
---
 dom/canvas/crashtests/1286458-1.html  | 20 ++++++++++++++++++++
 dom/canvas/crashtests/crashtests.list |  1 +
 2 files changed, 21 insertions(+)
 create mode 100644 dom/canvas/crashtests/1286458-1.html
2016-08-15 16:01:34 +08:00
vincentliu
1000cd88ac Bug 1283113 - Add crashtest. r=milan
---
 dom/canvas/crashtests/1283113-1.html  | 25 +++++++++++++++++++++++++
 dom/canvas/crashtests/crashtests.list |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 dom/canvas/crashtests/1283113-1.html
2016-08-15 15:07:42 +08:00
Wes Kocher
45575a7f86 Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change

--HG--
extra : amend_source : e590e515ab273d097f88b35be0e5c999502ebdf4
2016-08-16 22:07:30 -07:00
Jonathan Chan
4b87f11bd9 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc
1794619188 Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE

--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00
Sebastian Hengst
765223d123 Backed out changeset ca7b62d9efb7 (bug 1293845) 2016-08-13 12:38:25 +02:00
Sebastian Hengst
78c59974bb Backed out changeset b2cad6d22d75 (bug 1293845) 2016-08-13 12:38:21 +02:00
Sebastian Hengst
d8a319fe07 Backed out changeset 2b9a31603e34 (bug 1293845) 2016-08-13 12:38:17 +02:00
Jeff Gilbert
6434d6daf4 Bug 1293845 - Update tests to handle new webidl.
MozReview-Commit-ID: 7hcluLAw7gx
2016-08-12 18:08:00 -07:00
Jeff Gilbert
70dfbdbec9 Bug 1293845 - Handle zero-size TexSubImage. - r=mtseng
MozReview-Commit-ID: J4cT3oqPTLa
2016-08-12 18:07:57 -07:00
Jeff Gilbert
fb75e3bc05 Bug 1293845 - Repair texture bindings->internals glue. - r=mtseng
MozReview-Commit-ID: CUDQGwhPTuU
2016-08-12 18:07:54 -07:00
Jeff Gilbert
7129a3b287 Bug 1290634 - Use idealUnpack with CopyTexImage, and always respec now that ZeroTextureData doesn't support respec. - r=mtseng
MozReview-Commit-ID: HYzTfzLxF3X
2016-08-12 17:48:14 -07:00
Jeff Gilbert
02edeadd27 Bug 1290634 - Remove unnecessary respecifyTexture arg from ZeroTextureData. - r=mtseng
MozReview-Commit-ID: 52VirsA4eCQ
2016-08-12 17:48:11 -07:00
Kearwood (Kip) Gilbert
434f167559 Bug 1250244 - Part 7: Implement WebVR 1.0 API,r=bz
MozReview-Commit-ID: JTOmaWePlJq
2016-02-24 15:54:50 -08:00
Jan de Mooij
c33bac8363 Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence 2016-08-11 14:39:23 +02:00
Nicholas Nethercote
bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Nicolas Silva
ed272011eb Bug 1292545 - Don't skip clearing the canvas because of W(1) failures on Mac. 2016-08-10 17:00:25 +02:00
Thomas Wisniewski
1fbaa831cc Bug 826619 - Remove Canvas mozFillRule. r=mrbkap r=bas 2016-08-04 15:05:50 -04:00
Nicolas Silva
be105fa438 Bug 1292870 - Record/replay clips and transforms properly in CanvasRenderingContext2D. r=Bas 2016-08-10 14:30:51 +02:00
Nicolas Silva
70353ca51d Bug 1292545 - Don't optimize away the canvas copy if clips are applied. r=ethlin 2016-08-10 14:30:48 +02:00
Nicolas Silva
bb3580a385 Bug 1293693 - FillRect covering the entire canvas can skip copying the previous frame if the composite op is SOURCE, but not DEST_OUT. r=ethlin 2016-08-10 14:30:45 +02:00