Commit graph

466 commits

Author SHA1 Message Date
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
Mats Palmgren
d4925f9157 Bug 1355873 - Add more consistent error handling and some code cleanup. r=mstange
--HG--
extra : amend_source : 28084308702094199fb667e004219bad4f125d6c
2017-04-12 08:41:00 -04:00
Tomislav Jovanovic
25ed6f5d60 Bug 1318565 - Allow extensions with permission to read from tainted Canvas r=bz
MozReview-Commit-ID: 1tMHynv9FBO

--HG--
extra : rebase_source : 4296af4ae94eaf618d7d33741b2a04a7e0dfd4a0
2017-04-07 21:32:18 +02:00
Brian Birtles
33041d1214 Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam
In the next patch we want to add a method called
GetUnanimatedStyleContextForElementNoFlush but that's much too long. Instead it
seems better to just drop 'ForElement' from all these methods since it should be
fairly obvious we are getting the style context for an element given that the
first argument is an element.

MozReview-Commit-ID: JQKaEuCKV2F

--HG--
extra : rebase_source : 3ba51f3b00d1ec7bc91102629d9c0abb88992fef
2017-04-05 14:39:23 +09:00
Jonathan Watt
94608339b3 Bug 1058040, part 12 - Make SVGImageContext's ctor's aViewportSize parameter optional. r=dholbert 2017-01-30 13:25:00 +00:00
Ehsan Akhgari
0fea8eec91 Bug 1342720 - Optimize away the cost of creating and destroying nsBidi from CanvasRenderingContext2D::DrawOrMeasureText(); r=baku
The ICU implementation of ~nsBidi is particularly expensive because
it calls free() several times.
2017-02-28 09:13:48 -05:00
Ethan Lin
7faa453e65 Bug 1341521 - Remove the retaining buffer machanism when setting the same canvas dimension. r=nical
--HG--
extra : rebase_source : 519ae1558bb0a771474508ebfd1f44ea38262015
2017-02-23 01:20:00 -05:00
George Wright
c881027454 Bug 1335145 - Only limit accelerated canvases for mobile r=milan 2017-02-21 13:42:32 -05:00
Lee Salzman
f1af01ebd4 Bug 738343 - part 4 - Use Moz2d swizzles in Canvas2D. r=jrmuizel 2017-02-12 09:27:39 -05:00
Milan Sreckovic
5b06720ff3 Bug 1329796 - Don't cache the mTarget too soon. r=mstange 2017-02-07 20:35:21 -05:00
Ryan VanderMeulen
e7c14086ff Backed out changeset b346ea98c29a (bug 1329796) for reftest failures. 2017-02-06 20:31:22 -05:00
Milan Sreckovic
c7daab6df3 Bug 1329796 - Don't cache the mTarget too soon. r=mstange 2017-02-06 19:32:50 -05:00
Carsten "Tomcat" Book
5131dfea4e Merge mozilla-central to mozilla-inbound 2017-02-02 14:28:07 +01:00
Carsten "Tomcat" Book
72823b1e95 merge mozilla-inbound to mozilla-central a=merge 2017-02-02 14:25:20 +01:00
Olli Pettay
96d3270619 Bug 1110928, ensure zone GC collects the zone from which canvas context is originated, r=mccr8
--HG--
extra : rebase_source : d9e4b2cb9ff5e683efc1ce25aec3ab5cead22481
2017-01-23 19:26:37 +02:00
Wes Kocher
f5eab47fb9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: HVH8TbXbw7N
2017-02-01 16:30:50 -08:00
Jeff Muizelaar
5e016321e6 Bug 1335149. Remove unnecessary flush() calls from canvas implementation.
Flushing should usually be done by the moz2d backend unless we're accessing
the data through other mechanisms.
2017-02-01 15:09:38 -05:00
Tomislav Jovanovic
460e6f68ee Bug 1310318 - Part 1: Allow access to canvas drawWindow() with web extensions permission r=bz
MozReview-Commit-ID: 4ee3pRfduIj

--HG--
extra : rebase_source : 428cf25f732c27ffd34e1a47105a96919c3cb36e
extra : source : 1063bdd7940796e9c4e8634b82d55f417e289e28
2017-02-01 21:47:59 +01:00
Andrew Osmond
42a6948d63 Bug 1331938 - Part 2c. Fix rooting hazard in CanvasRenderingContext2D::GetImageDataArray. r=nical
--HG--
extra : amend_source : 4aaf395e3206a3953895a64e717ac73835bb4407
2017-01-31 09:23:25 -05:00
Boris Zbarsky
11b7c7920e Bug 1334749. Avoid creating a temporary cairo surface, just to copy its data to a skia surface, in putImageData. r=lsalzman 2017-01-30 15:45:23 -05:00
Lee Salzman
76fbeec1b5 Bug 1334647 - make canvas.drawImage trigger a JS error rather than a critical error on an invalid target. r=rhunt
MozReview-Commit-ID: 3TxJM0tjhVC
2017-01-27 16:35:10 -05:00
Boris Zbarsky
11a5929f8e Bug 1334865 part 2. Remove the unused (and broken) asyncDrawXULElement API. r=smaug 2017-02-01 18:04:06 -05:00
Boris Zbarsky
02217e5d26 Bug 1335368 part 10. Stop using IsCallerChrome in CanvasRenderingContext2D. r=bholley 2017-02-01 15:43:37 -05:00
Boris Zbarsky
cce1668e68 Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8 2017-01-24 20:38:58 -05:00
Wes Kocher
ae32e28e86 Backed out 6 changesets (bug 1110928) for valgrind failures a=backout
Backed out changeset 97a60b61a65a (bug 1110928)
Backed out changeset 5b62dda2ebd0 (bug 1110928)
Backed out changeset b587547a6df1 (bug 1110928)
Backed out changeset fb7cb3957c0d (bug 1110928)
Backed out changeset 41d7f44db1ee (bug 1110928)
Backed out changeset e809ddd9c7db (bug 1110928)

MozReview-Commit-ID: L0DCJ0HD1sG
2017-01-23 17:34:23 -08:00
Olli Pettay
2f71a0e8da Bug 1110928, ensure zone GC collects the zone from which canvas context is originated, r=mccr8
--HG--
extra : rebase_source : 9649b3b2e67ecea1c8070ea105e145cd5214c4d6
2017-01-23 19:26:37 +02:00
Milan Sreckovic
533dce0966 Bug 1328932: Back out the diagnostic patch from bug 1318283. r=gw280
MozReview-Commit-ID: KRyhWLBuHWM

--HG--
extra : rebase_source : 4661026584981fa53d971fa5e694335d27e3e525
2017-01-17 16:58:02 -05:00
George Wright
738fcd7d41 Bug 1329777 - Don't bail early from SwitchRenderingMode unless there's also no buffer provider r=Bas 2017-01-10 21:12:40 -05:00
Cameron McCormack
babad063ff Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
cku
09c56e6da6 Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : b0a0aad1fec0c2765e96d23ed9b627345c793795
2017-01-03 13:53:22 +08:00
Iris Hsiao
c8e876e89c Backed out changeset c868ab532766 (bug 1323912) 2017-01-04 21:47:12 -05:00
cku
adab9bea9f Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : 080a843b34cc1ca27831310d474243b4066f59f2
2017-01-03 13:53:22 +08:00
Phil Ringnalda
c4d1ea9a14 Merge m-c to m-i
MozReview-Commit-ID: JYNBUrs2zC5
2017-01-03 18:46:43 -08:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Milan Sreckovic
e46c16114f Bug 1318283: UpdateFilter can sometimes invalidate the draw target. Back out the previous speculative patch. r=mstange
MozReview-Commit-ID: 8u2sjS9dyLu

--HG--
extra : rebase_source : 876ec3d4d2cd47d76fe57db645764eba281209d9
2017-01-03 12:01:11 -05:00
Milan Sreckovic
bb8db3d5ff Bug 1318283: Temporarily disable an optimization from bug 1289975 and do not keep the buffer when SetDimension is called with the same value. r=mstange
MozReview-Commit-ID: BRYxmuEz7fk

--HG--
extra : rebase_source : 352a9055c3a5fc9ca97f0ab103fb276634def291
2016-12-15 16:33:36 -05:00
Jonathan Kew
4ab3ae7306 Bug 1319668 - Check for null context before trying to draw canvas text. r=mats 2016-12-03 14:49:46 +00:00
Edwin Flores
3af4985263 Bug 1318283 - Debug patch - r=milan 2016-11-28 19:32:49 +00:00
Ethan Lin
fa1ec91634 Bug 1319362 - Use area but not just dimension to check SkiaGL minimum size. r=lsalzman 2016-11-22 19:52:00 +01:00
Nicolas Silva
36605f9e7b Bug 1300121 - Make PersistentBufferProviderShared::BorrowDrawTarget more robust agaist bad edge cases and if all fails, fallback to the basic provider. r=Bas 2016-10-11 13:23:11 +02:00
Nicolas Silva
4ae68feb2d Bug 1300121 - Make switching between canvas buffer providers a tad more robust. r=Bas 2016-11-24 15:08:10 +01:00
Milan Sreckovic
7bf73e0916 Bug 1313884: Part 2. Additional nullptr test and nightly/aurora crash if bad things happen. r=gw280 2016-11-15 12:56:16 -05:00
Phil Ringnalda
be66b650bb Backed out changeset bb4879b87c17 (bug 1313884) because bad things happen @mozilla::dom::CanvasRenderingContext2D::DrawImage all the time
CLOSED TREE
2016-11-10 23:28:02 -08:00
Milan Sreckovic
09875b84c7 Bug 1313884 - Part 2: Additional nullptr test and nightly/aurora crash if bad things happen. r=gw280
--HG--
extra : rebase_source : 14ff98dde9eeccb1bbdeb0ccb9b6dcba75d5ebf2
2016-11-10 10:26:00 -05:00
Phil Ringnalda
c9fdc270b6 Merge m-c to autoland
--HG--
rename : dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp => dom/media/webaudio/gtest/TestAudioEventTimeline.cpp
2016-11-03 20:02:24 -07:00
Milan Sreckovic
976fdb1420 Bug 1309913: Pass the compositor type to canvas on creation. r=dvander
MozReview-Commit-ID: 81HtvWPdLQa

--HG--
extra : rebase_source : a448447fcb573beb320b2b2a352b97f77a5bafe3
2016-11-03 10:57:33 -04:00
Ryan Hunt
e79eae17bc Bug 1313884 - Check if mTarget is null in CanvasRenderingContext2D::DrawImage
--HG--
extra : rebase_source : 0eb7b22cd829dc5f4ad6eaaa44a0009529010e47
2016-11-01 13:56:55 -05:00
Xidorn Quan
5e29805363 Bug 1294299 part 8 - Refactor interface provided by css::Declaration. r=heycam
The main targets of this refactor are:
1. Move most of the logic of distinguishing properties and custom
   properties from nsDOMCSSDeclaration into css::Declaration, which
   gives ServoDeclarationBlock more flexibility to implement.
2. Rename those methods of css::Declaration to provide a clear interface
   which makes sense for implementing in ServoDeclarationBlock, and also
   avoid method overload, which can impede the forward macro, on them.

MozReview-Commit-ID: 2cCqF855TVK

--HG--
extra : source : 3837e1e558caac4f2901e838371e97c17821530e
2016-11-03 14:41:02 +11:00
Markus Stange
c19af15fab Bug 1308859 - Back out the instrumentation because I think I know what the problem is now.
MozReview-Commit-ID: 7XdGDR950df

--HG--
extra : rebase_source : 457da3f8547a9a4a8e162c56b6a52bf9b1472661
2016-10-25 14:00:21 -04:00
Phil Ringnalda
7fd865b93f Merge autoland to m-c, a=merge
MozReview-Commit-ID: 3nuTAHtJkkD
2016-10-19 18:25:54 -07:00
Markus Stange
0853911668 Bug 1307740 - Properly handle filter input tainting with CSS filters and multiple filters. r=jwatt
MozReview-Commit-ID: HwOJ8SFhkUq

--HG--
extra : rebase_source : d3c4e8568513a0bf08d308f9f88232b19442ebd2
2016-10-19 11:32:02 -04:00
Markus Stange
20096eceeb Bug 1308859 - Add some instrumentation to help debugging the crash. r=gw280
MozReview-Commit-ID: Dq04qFrEdHx

--HG--
extra : rebase_source : d6b8bb8cbf3d1c4401b8306c0d63af5a0dfa6e5d
2016-10-18 13:15:28 -04:00
George Wright
0d128cb330 Bug 1307749 - Ensure that we still set filterSourceGraphicTainted and an empty filter when updating our filter in CanvasRenderingContext2D r=mstange 2016-10-12 13:06:02 -04:00
Carsten "Tomcat" Book
7c8e81673d merge mozilla-inbound to mozilla-central a=merge 2016-10-06 11:59:54 +02:00
Thomas Wisniewski
50934d0360 Bug 931389 - remove CanvasRenderingContext2D.mozDash/mozDashOffset. r=gw280, r=baku
--HG--
extra : rebase_source : 2192c147822a28796e24532b0df10a38a5481a55
2016-10-04 11:53:57 -04:00
Milan Sreckovic
cc08d3d97e Bug 1294812: Clean up SkiaGL canvas logic, making sure we only take it for OpenGL layers. Rename a function for clarity. r=BenWa,dvander
MozReview-Commit-ID: OTUXNNYdnJ

--HG--
extra : rebase_source : 4531fc96899f1a2f6524289d5db1054345e0e5f4
2016-09-30 13:54:22 -04:00
Ethan Lin
a6241ed972 Bug 1305963 - Add EnsureTarget for GetMozCurrentTransform and GetMozCurrentTransformInverse. r=nical
--HG--
extra : rebase_source : aa42275528dec8bf8ce6d954d8ba3e26217fe818
2016-10-02 23:55:00 -04:00
Tooru Fujisawa
13783142a7 Bug 1289050 - Part 5.1: Use ASCII variants of JS_ReportWarning in dom/canvas. r=jwalden,jgilbert 2016-09-30 12:34:45 +09:00
Ethan Lin
9a6b820bb2 Bug 1304539 - Use AdjustedDrawTarget to draw text. r=mstange
--HG--
extra : source : f205f28cbcf3723aee0e302ea2ce7b71a00f4210
2016-09-23 18:37:00 +02:00
Wes Kocher
4894f8488a Backed out 2 changesets (bug 1304539) for Windows unaccelerated reftest failures a=backout
Backed out changeset fbfe71842bb7 (bug 1304539)
Backed out changeset f205f28cbcf3 (bug 1304539)
2016-09-29 11:55:08 -07:00
Ethan Lin
5ec5294315 Bug 1304539 - Use AdjustedDrawTarget to draw text. r=mstange 2016-09-23 18:37:00 +02:00
Carsten "Tomcat" Book
762cd18602 Merge mozilla-central to autoland 2016-09-28 16:52:13 +02:00
Lee Salzman
632d270fe0 Bug 1305312 - write putImageData pixels as opaque for opaque canvas. r=jrmuizel
MozReview-Commit-ID: 5mVzeNwY28u
2016-09-27 17:31:13 -04:00
James Cheng
48efb9caad Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
MozReview-Commit-ID: JboGO0w4tcE

--HG--
extra : rebase_source : abfe53f30081f74fc39c900cab48d08c7574bfec
2016-09-08 18:06:20 +08:00
Jonathan Kew
cbbe3d0e74 Bug 1304353 - part 1 - Set up the DrawOptions appropriately when painting canvas text for FILL, not only for STROKE. r=bas 2016-09-23 13:38:06 +01:00
Markus Stange
3003c70285 Bug 1298552 - Call UpdateFilter whenever the canvas's IsWriteOnly state changes. r=jrmuizel
MozReview-Commit-ID: 2CqWhmyzUZc

--HG--
extra : rebase_source : df8b033263e16e36daca32437ac009800ca520b0
2016-08-26 20:21:34 -04:00
Sebastian Hengst
548f7778a1 Backed out changeset e0d755ab4cbd (bug 1302380) for timeouts reftest with e10s invariable-declaration-XX.html on Linux 32 bit. r=backout 2016-09-16 18:55:44 +02:00
Ethan Lin
20b88c7843 Bug 1301551 - Remove unnecessary debug lines. r=nical 2016-09-16 10:33:26 +02:00
Nicolas Silva
f4d4ceeeed Bug 1302380 - Report canvas memory usage through the buffer provider. r=gw280 2016-09-16 10:13:19 +02:00
Ethan Lin
bb3e5efbec Bug 1301551 - Don't do anti-alias if 'imageSmoothingEnabled' is false. r=bas 2016-09-09 03:04:00 -04:00
Milan Sreckovic
e13a243ec1 Bug 1299164: Part 2. Use BufferSizeFromDimensions method, as well as some of the others that check for valid size. r=bas 2016-09-15 10:36:21 -04: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
George Wright
3480df735c Bug 1241865 - Disable canvas-2d-pixels memory reporter as it currently reports inaccurate values. r=nical 2016-09-13 23:03:09 -04:00
Nicolas Silva
918fc7f847 Bug 1298373 - Clear the transform when resetting the canvas target state. r=Bas 2016-09-12 16:47:13 +02:00
Nicolas Silva
56e5119c61 Bug 1301027 - Remove the matrix * point operator and replace it with TransformPoint methods. r=Bas 2016-09-08 18:26:03 +02:00
Nicolas Silva
ebb3c8a52f Bug 1298345 - Dead code warning fix. r=njn 2016-09-06 13:19:11 +02:00
Lee Salzman
0716a90344 Bug 1299485 - fix USE_SKIA_GPU ifdefs. r=mchang 2016-09-01 21:10:39 -04:00
Nicolas Silva
47e7bc67f9 Bug 1298345 - Refactor CanvasRenderingContext2D's texture allocation code. r=Bas 2016-09-01 15:51:09 +02:00
Ethan Lin
3ead7f93ab Bug 1299062 - Check if drawtarget valid. r=nical 2016-08-31 22:43:47 -04:00
Milan Sreckovic
ff3ca93c38 Bug 1287316 - Release assert or deal with empty arrays. r=mstange
--HG--
extra : rebase_source : 07b022071bf63b213f78d361d18464cbcbf6b562
2016-08-30 18:38:30 -04:00
Nicolas Silva
b448411938 Bug 1294351 - Move restoring the canvas clip stack to its own method and early return form EnsureTarget. r=Bas 2016-08-26 14:31:58 +02:00
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
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
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
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
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
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
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
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
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
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
Nicolas Silva
2f14332a8d Bug 1292192 - Simplify CanvasRenderingContext2D::SwitchRenderingMode. r=gw280 2016-08-09 18:18:58 +02:00
Ethan Lin
51818f44f0 Bug 1289975 - Reuse canvas buffer when setting the same dimension. r=nical 2016-08-02 23:00:00 +02:00
Nicolas Silva
1fdb65d654 Bug 1289816 - Simplify CopyableCanvasLayer::UpdateTarget and remove unnecessary copies. r=jnicol 2016-07-29 20:19:28 +02:00
Nicolas Silva
a4ee782267 Bug 1289380 - Simplify PersistentBufferProviderShared. r=edwin 2016-07-27 16:50:20 +02:00
Nicolas Silva
48805c9b3e Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
Sotaro Ikeda
2c8122c501 Bug 1250914 - Create gl texture for each video frame drawing to SkiaGL canvas r=jrmuizel 2016-07-22 18:10:13 -07:00
Nicolas Silva
e4a4580aeb Bug 1285263 - Restore clips with the proper transform when in CanvasRenderingContext2D::EnsureTarget. r=bas 2016-07-21 11:02:12 +02:00
vincentliu
acbc420513 Bug 1281800 - The API should return an empty array if maxWidth was provided but is less than or equal to zero or equal to NaN. r=jrmuizel
---
 dom/canvas/CanvasRenderingContext2D.cpp | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
2016-07-19 10:52:50 +08:00
Kevin Chen
cac9daeb79 Bug 1275693 - Refactor <canvas> strokeText drawing to re-use gfxTextRun::Draw. r=jfkthame 2016-07-14 02:00:00 +02:00
Kevin Chen
9873933cfb Bug 1275693 - Refactor <canvas> fillText drawing to re-use gfxTextRun::Draw. r=jfkthame 2016-07-13 19:07:00 +02:00
Nicolas Silva
144561ee0b Bug 1284721 - Flush CanvasRenderingContext2D's DrawTarget when returning it to the BufferProvider. r=lsalzman 2016-07-11 17:44:27 +02:00
Nicolas Silva
37464db2f3 Bug 1285207 - Don't let canvas have a DrawTarget without a BufferProvider and keep them in sync. r=lsalzman 2016-07-11 17:44:25 +02:00
Wes Kocher
743746da45 Backed out changeset b966ababca8d (bug 1284721) for bustage CLOSED TREE
***
Backed out 3 changesets (bug 1284721, bug 1285207) for bustage CLOSED TREE

Backed out changeset 75f6c7e15d76 (bug 1284721)
Backed out changeset b7f2d54f3904 (bug 1285207)
Backed out changeset fceb3f145f91 (bug 1284721)

--HG--
extra : amend_source : b849891c44fd8704c0f601cf58ebeac13c88e2e6
extra : histedit_source : 54c8ef4b974c761a774260ec11e28d29013e0378%2C4d2cb79fbedcdabb4ea4fc52dcd26618bef2225e
2016-07-08 12:17:06 -07:00
Nicolas Silva
b51ed22a3f Bug 1284721 - Flush CanvasRenderingContext2D's DrawTarget before handing it off to the BufferProvider. r=lsalzman 2016-07-08 19:26:48 +02:00
Nicolas Silva
ff42b1930a Bug 1285207 - Don't let canvas have a DrawTarget without a BufferProvider and keep them in sync. r=lsalzman 2016-07-08 19:26:44 +02:00
Carsten "Tomcat" Book
838f21f656 merge mozilla-inbound to mozilla-central a=merge 2016-07-08 11:58:46 +02:00
kearwood
694ce1cf8d Bug 1284324 - Implement Canvas Layer mirrors r=bas
- When a canvas layer is set to mirror, it copies the
  texture from the canvas rather than changing the
  texture factory with Morph().
- This is useful when a canvas content will be sent to
  multiple devices simultaneously, such as a VR HMD
  and a 2d monitor mirror.
- This is used by the WebVR 1.0 API, in Bug 1250244

MozReview-Commit-ID: JfMSockO2uz

--HG--
extra : rebase_source : ba9633f7cb9a622efb8389d834b4232205c72755
2016-07-04 13:11:07 -07:00
Boris Zbarsky
97b0a16147 Bug 1282150 part 4. Have just one way of getting the rooting JSContext, and call it nsContentUtils::RootingCx(). r=bholley 2016-07-07 20:08:26 -04:00
Nicolas Silva
3e441f64b1 Bug 1167235 - Part 7 - Don't paint directly into a canvas with DrawWindow when using a shared PersistentBufferProvider. r=lsalzman 2016-07-01 10:58:26 +02:00
Nicolas Silva
a1fc947ed0 Bug 1167235 - Part 5 - Unlock canvas2D resources after drawing. r=Bas 2016-07-01 10:58:20 +02:00
Nicolas Silva
6837c5c2f2 Bug 1167235 - Part 4 - Forward the shutdown notification to CanvasRenderingContext2D. r=Bas 2016-07-01 10:58:18 +02:00
Nicolas Silva
55982c743c Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas 2016-07-01 10:58:06 +02:00
Sebastian Hengst
51e7f34222 Backed out changeset 14dfa550c783 (bug 1167235) 2016-06-28 20:28:23 +02:00
Sebastian Hengst
7f0473d085 Backed out changeset f534fcb785c9 (bug 1167235) 2016-06-28 20:28:22 +02:00
Sebastian Hengst
955599781a Backed out changeset 61465f67b591 (bug 1167235) 2016-06-28 20:28:22 +02:00
Nicolas Silva
d214a9bc30 Bug 1167235 - Part 5 - Unlock canvas2D resources after drawing. r=Bas 2016-06-28 14:07:02 +02:00
Nicolas Silva
f8343772b9 Bug 1167235 - Part 4 - Forward the shutdown notification to CanvasRenderingContext2D. r=Bas 2016-06-28 14:07:00 +02:00
Nicolas Silva
9367516d33 Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas 2016-06-28 14:06:51 +02:00
Jonathan Watt
483ce4fb50 Bug 1279628, part 3 - Replace the last gfxASurface::CheckSurfaceSize call, and remove gfxASurface::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00
Jonathan Watt
06b29e4abf Bug 1279628, part 2 - Switch all but one of the gfxASurface::CheckSurfaceSize calls to call Factory::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00
Phil Ringnalda
1cce1f61f8 Back out 2 changesets (bug 1279628) for reftest bustage
CLOSED TREE

Backed out changeset 07e4432bd6b3 (bug 1279628)
Backed out changeset 416fa9aeec55 (bug 1279628)
2016-06-11 00:44:51 -07:00
Jonathan Watt
8ea6b72d47 Bug 1279628, part 2 - Replace all gfxASurface::CheckSurfaceSize calls with Factory::CheckSurfaceSize and remove gfxASurface::CheckSurfaceSize. r=mstange
--HG--
extra : rebase_source : 314cf522b5760e63e176418ae170301fafa80f89
2016-06-09 15:31:24 +01:00
eyim
b0ca07b635 Bug 1277027 - fix MOZ_CRASH to have GFX prefix in webGL code r=BenWa,milan
MozReview-Commit-ID: FjLA9xNH3zD

--HG--
extra : rebase_source : 5809a1f8126360b3fa8ee069b3a463747cb31e6f
2016-06-06 11:17:23 -04:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Nicholas Nethercote
4e8f3b6d6e Bug 1276824 (part 2) - Fix up checks for calls to gfxContext::Create{,PreservingTransform}OrNull(). r=milan.
--HG--
extra : rebase_source : 80644c1a6658da553c13ae1ab3b8d03e916ee6e7
2016-06-07 11:17:48 +10:00
Nicholas Nethercote
a02611e830 Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.

--HG--
extra : rebase_source : a36bd9a2bcdfae281868959403f811f2bc690ad4
2016-06-07 09:39:56 +10:00
Jonathan Watt
2eb705bb3f Bug 1277862, part 3 - Rename Moz2D's Filter to SamplingFilter in the rest of the tree. r=Bas 2016-05-25 17:01:18 +01:00
Chris Peterson
11ef78ae89 Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
--HG--
rename : mfbt/Endian.h => mfbt/EndianUtils.h
2016-05-22 13:31:11 -07:00
Tobias Schneider
2bf9b9a3e6 Bug 1174278 - Make filter tainting and canvas tainting. r=jrmuizel
--HG--
extra : rebase_source : 676ae4a6551246499d3a736ac9a35e6ac7f2c91c
2016-05-24 21:50:02 -07:00
Jonathan Kew
ec45c18193 Bug 1274936 - When <canvas> fillText is using a simple color, draw via the gfxTextRun::Draw code path to get support for COLR and SVG-in-OT fonts. r=bas 2016-05-25 09:21:10 +01:00
Mason Chang
376575c614 Bug 1267260 - Change CanvasImageCache to lookup cache images based on imgIContainer instead of imgIRequest. r=seth
--HG--
extra : rebase_source : 872ee783a05d0319ed69ce3c494dbf2a3206e26d
2016-05-10 08:00:06 -07:00
Michael Kohler
0793a8cbff Bug 1217031 - createPattern should not throw NS_ERROR_NOT_AVAILABLE if image usability check returns bad r=bz
MozReview-Commit-ID: 101uAYhcx3u

--HG--
extra : rebase_source : 1975f947176b61bb232348458ef7a0f485a0f479
2016-05-03 17:41:02 -07:00
Carsten "Tomcat" Book
dabe843f8b Backed out changeset d6cca05b4e9f (bug 1217031) for issues in 2d.pattern.image.incomplete.immediate.html 2016-05-03 12:20:24 +02:00
Michael Kohler
b68d05d398 Bug 1217031 - createPattern should not throw NS_ERROR_NOT_AVAILABLE if image usability check returns bad. r=bz
--HG--
extra : amend_source : e241dccd5b12b44cbc99467fa9a8d73ecfe5c584
2016-04-24 12:20:00 +02:00
Bob Owen
c4ec1107e4 Bug 1258609: Initialize nsICanvasRenderingContextInternal with a DrawTarget instead of a gfxASurface. r=jrmuizel
MozReview-Commit-ID: JNQ9GWvDUSq
2016-04-21 10:30:38 +01:00