Граф коммитов

89 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini e7af025911 Bug 1500736 - CreateImageBitmap should throw InvalidStateError when the allocation fails, r=aosmond 2018-10-23 23:35:43 +02:00
Andrea Marchesini 17f8a25e39 Bug 1500734 - createImageBitmap should throw RangeError if sw or sh is 0 - r=aosmond 2018-10-23 08:17:28 +02:00
Ryan Hunt 454819897e Bug 1475139 part 10 - Add method to create ImageBitmap from SourceSurface. r=jrmuizel
This commit adds a method to create an ImageBitmap from a SourceSurface, for use
by the new drawSnapshot API.

Differential Revision: https://phabricator.services.mozilla.com/D6789

--HG--
extra : rebase_source : bf0f804194f5a36f5dc805333eaf85b55be50012
2018-09-24 21:47:14 -05:00
Andrea Marchesini bc5414c5f3 Bug 1471189 - Removing 'Terminating' state in workers, r=mrbkap 2018-07-12 19:33:41 +02:00
Jeff Gilbert 5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Andrea Marchesini de57a3fc82 Bug 1455256 - Port more components to WorkerRef - part 6 - ImageCanvas, r=asuth 2018-06-18 16:37:21 -04:00
Miko Mynttinen 4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
arthur.iakab 7e765f798b Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen 8d9dc85cd4 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 619d0e0ff63a2453c80f0c4d9beb906d43fa9b01
2018-06-01 17:59:07 +02:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Andrea Marchesini a9de4f7371 Bug 1430215 - Check on the principal in mozilla::dom::CheckSecurityForHTMLElements in case SurfaceFromElement returns an incomplete result, r=aosmond 2018-04-20 07:29:12 +02:00
Jeff Walden 4b9e315a13 Bug 1452754 - Handle promise rejection in cases of error or otherwise through RAII in MapDataIntoBufferSource::DoMapDataIntoBufferSource. r=jgilbert
--HG--
extra : rebase_source : 52341f938e87ab4fa35926494ed927fde8a2e744
2018-04-09 12:57:10 -07:00
Andrea Marchesini a1747f6179 Bug 1445590 - ImageBitmap cannot be cloned/transferred if already closed, r=smaug 2018-03-14 17:37:34 +01:00
Christian Holler a7aaab24d3 Bug 1440402 - Handle several unsafe accesses in dom/ipc gracefully for fuzzing. r=baku 2018-02-23 14:51:26 +01:00
Dorel Luca f41b03eca9 Backed out changeset 38577c007450 (bug 1424371) for Marionett test failure on testing/marionette/harness/marionette_harness/tests/unit/test_window_maximize.py. CLOSED TREE 2018-02-19 22:15:23 +02:00
Milan Sreckovic 7571df7e7c Bug 1424371: Use BaseRect access methods instead of member variables in dom/ r=qdot
MozReview-Commit-ID: HXWhggOMIEK

--HG--
extra : rebase_source : 9c9eacf80d2b7f78faa82a1549170b98d12cdaa8
2018-02-19 12:56:10 -05:00
Kyle Machulis 9e159ac69d Bug 1407040 - Change HTMLMediaElement XPCOM Enums to WebIDL Enums; r=bz
MozReview-Commit-ID: 55GnbaL2HKl

--HG--
extra : rebase_source : 5bb6c927443bf6adcfe594e69bd70c3b597b9ea4
2018-02-14 19:23:32 -08:00
Timothy Nikkel ab2056b146 Bug 1414825. Clear mDataWrapper on ImageBitmap::Close because it holds gfx resources alive. r=nical 2018-02-06 02:53:21 -06:00
Andrea Marchesini 8cdf705535 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Andrea Marchesini 063723a1f0 Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug 2018-01-31 08:23:44 +01:00
Timothy Nikkel 3af81f80fc Bug 1414825. Use a shutdown observer to release the gfx resources of ImageBitmaps. r=kaku,nical 2018-01-22 21:38:45 -06:00
Andrew Osmond 89c5ff6db9 Bug 1429413 - Ensure Factory::CreateDataSourceSurface allocation failures are gracefully handled. r=bas 2018-01-11 08:26:42 -05:00
Andrea Marchesini 9a25904cf8 Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 2 - image bitmap, r=asuth 2018-01-08 14:05:03 +01:00
Andrea Marchesini 3316d7de4d Bug 1420223 - createImageBitmap must work with nsIAsyncInputStream - part 3 - ImageBitmap must use imgITools::decodeImageAsync, r=aosmond 2017-11-27 17:05:57 +01:00
David Anderson 9575a22267 Remove trivial calls to DataSourceSurface::Stride. (bug 1405390 part 3, r=bas)
--HG--
extra : rebase_source : 7700599ef497a2abadc7970af5ea26b48061966e
2017-11-09 00:43:30 -08:00
Andrea Marchesini 9067ec472c Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
Jon Coppeard a3c0357907 Bug 1399141 - Attribute malloc memory when creating reflector object r=baku 2017-09-13 11:21:12 +01:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Olli Pettay f78280f29a Bug 1364513 - Ensure correct buffer initialization. r=mystor
--HG--
extra : rebase_source : af0024c26378f21da156e8f4e5da1b3bcc8c1ed8
2017-05-25 09:39:17 -04:00
Daosheng Mu 743e36e236 Bug 1358053 - Remove DataSourceSurface assertion when doing snapshot in WebGL; r=jgilbert
MozReview-Commit-ID: 6LhmY1ouNZ9

--HG--
extra : rebase_source : 91511c1aa2f403862c8341b404a6a09d889de963
2017-04-27 17:38:37 +08:00
Jeff Gilbert 14709fa9d8 Bug 1355763 - Only premult if there's something to premult.
MozReview-Commit-ID: LKd2tWWxGbI
2017-04-13 09:14:41 -07:00
Jeff Gilbert 326703ec04 Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-13 09:14:34 -07:00
Timothy Nikkel f2110e92fe Bug 1355898. Rename flag SFE_WANT_FIRST_FRAME to SFE_WANT_FIRST_FRAME_IF_IMAGE to represent what it does better. r=jgilbert
We only pay attention to the flag for images.
2017-04-13 03:40:45 -05:00
Iris Hsiao bf9a6182a2 Backed out changeset f97fd860c168 (bug 1355763) 2017-04-13 14:46:43 +08:00
Jeff Gilbert 95c5ba8077 Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-12 22:03:43 -07:00
Kaku Kuo 1ae5278f6a Bug 1349459 part 1 - mark element as tainted when CreateImageBitmap() is used; r=jwwang,mattwoodrow
In this patch, we simply modify the ImageBitmap::createInternal(..., HTMLMediaElement&, ...) method to use
HTMLMediaElement::GetCurrentImage() utility and HTMLMediaElement::GetCurrentImage() marks the
videl element as tainted.

MozReview-Commit-ID: KyN2xRqKVrr

--HG--
extra : rebase_source : 5e0e0400f1848823751cd88f2bbe734bc5aec5fe
2017-03-22 15:21:44 +08:00
Michael Layzell befc7b0924 Bug 1331434 - Part 9: Return after ErrorResult::Throw in /dom, r=ehsan
MozReview-Commit-ID: CWjx4L8LTr9
2017-03-07 19:06:48 -05:00
Lee Salzman f1af01ebd4 Bug 738343 - part 4 - Use Moz2d swizzles in Canvas2D. r=jrmuizel 2017-02-12 09:27:39 -05:00
Andrew Osmond 48eeda9e2c Bug 1331938 - Part 2. Add SourceSurfaceSharedData, a shared data backed DataSourceSurface. r=nical 2017-01-18 10:12:32 -05:00
Andrea Marchesini 94547f20bb Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status, r=bkelly 2017-01-05 10:05:32 +01:00
Jeff Gilbert 8a9c965490 Bug 1324924 - Support ImageBitmap for Tex*Image*. (flattened) - r=bz,daoshengmu,mtseng
MozReview-Commit-ID: JzcbzeFHyHn
2016-12-20 19:24:25 -08:00
Kaku Kuo 42ed861e1e Bug 1312148 - report memory allocation while creating ImageBitmap; r=mtseng,smaug
Creating ImageBitmap from the following sources includes allocating new memory:
(1) from ImageData.
(2) from Blob.
(3) from HTMLCanvasElement.
(4) from CanvasRenderingContext2D.
(5) from Structured-clone.
(6) from Transferring.
(7) from OffscreenCanvas.
(8) from ArrayBuffer/TypedArray.

We need to report to DOM so that the GC would be triggered appropriately.

MozReview-Commit-ID: 7rvNsjVNqpz

--HG--
extra : rebase_source : 8879c9a1723b65fcd1bae2ae7e8befb5be8a5c69
extra : source : c0fc415ed753cb675a605a6e6a55e369733c6646
2016-10-28 18:18:48 +08:00
Sebastian Hengst a3b55f01b5 Backed out changeset 021cef553ece (bug 1312148) for failing test_bitmaprenderer.html on Windows 8 x64 opt. r=backout 2016-11-02 17:46:04 +01:00
Kaku Kuo de99dd7b42 Bug 1312148 - report memory allocation while creating ImageBitmap; r=mtseng,smaug
Creating ImageBitmap from the following sources includes allocating new memory:
(1) from ImageData.
(2) from Blob.
(3) from HTMLCanvasElement.
(4) from CanvasRenderingContext2D.
(5) from Structured-clone.
(6) from Transferring.
(7) from OffscreenCanvas.
(8) from ArrayBuffer/TypedArray.

We need to report to DOM so that the GC would be triggered appropriately.

MozReview-Commit-ID: 7rvNsjVNqpz

--HG--
extra : rebase_source : 25760f91bd71fe2150fa3ae37dfc1fb8b53c15a4
2016-10-28 18:18:48 +08:00
Gijs Kruitbosch bece3c3421 Bug 1308090, r=jrmuizel
MozReview-Commit-ID: A0wlb1qtk9r

--HG--
extra : rebase_source : c3bc7fc3fffc7f3d321aea9c0f7c582f55d3bfc7
2016-10-06 15:59:15 +01:00
kaku@mozilla.com 9a1c3746b2 Bug 1299718 part 3 - call MarkAsContentSource() at where using video element as a source; r=gerald,kamidphish,mtseng
MozReview-Commit-ID: Kg6UpcsCi0P
2016-09-14 15:50:29 +10:00