Commit Graph

477 Commits

Author SHA1 Message Date
Mats Palmgren
b0c526e5af Bug 1352093 - Use an integer type for sNumLivingContexts that won't overflow when counting objects. r=mstange
MozReview-Commit-ID: 2w9y0flEdrX
2017-05-03 10:40:51 -04:00
Bill McCloskey
1a26f8b6f4 Bug 1359245 - Remove references to context from the cycle collector (r=mccr8)
MozReview-Commit-ID: 1QoNEiZMvBf
2017-04-27 15:34:46 -07:00
Kevin Chen
1c8ebc611f Bug 1355168 - Ensure mTarget in CanvasRendering2D::DrawWindow; r=mats
MozReview-Commit-ID: 3xmzJc5Mq7J
2017-04-17 10:40:53 +08:00
Mats Palmgren
4d242933b2 Bug 1357092 - Make EnsureWritablePath() always try to create a mPathBuilder, also when we don't have a valid target (i.e. for sErrorTarget). r=mstange
MozReview-Commit-ID: AzyZOpsIdwA
2017-04-18 00:56:34 +02:00
cku
21b8332975 Bug 1346618 - Part 1. Remove SVGImageContext::mGlobalOpacity. r=mstange
MozReview-Commit-ID: ByiPa4sreEh
2017-04-15 02:01:22 +08:00
Hiroyuki Ikezoe
2bb6ab33f4 Bug 1324700 - Drop warnings for stylo. r=heycam
The code path no longer happens on stylo.

MozReview-Commit-ID: LdQFPNd5YnX
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
fb9043d434 Bug 1324700 - Resolve filter property for servo. r=heycam
MozReview-Commit-ID: 6IHs682rZfH
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
8841a777a4 Bug 1324700 - Add a function which is equivalent to ResolveStyleForFilter for servo. r=heycam
Also ResolveStyleForFilter is renamed to ResolveFilterStyle for consistency.

MozReview-Commit-ID: IEOxNexpnl5
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
579d65ee24 Bug 1324700 - Resolve font property for servo. r=heycam
MozReview-Commit-ID: BvQXFMP0Zr9
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
df5baeaaba Bug 1324700 - Add a function which is equivalent to GetFontStyleContext() for servo. r=heycam
MozReview-Commit-ID: K4KvPk4fJTb
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
c2d93f321b Bug 1324700 - Add a function which is equivalent to CreateDeclaration() for servo. r=heycam
MozReview-Commit-ID: 8zgpqLzftbV
2017-04-15 07:37:34 +09:00
Timothy Nikkel
203896ccec 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
0e0e9f12e0 Bug 1355873 - Add more consistent error handling and some code cleanup. r=mstange 2017-04-12 08:41:00 -04:00
Tomislav Jovanovic
a90a869d77 Bug 1318565 - Allow extensions with permission to read from tainted Canvas r=bz
MozReview-Commit-ID: 1tMHynv9FBO
2017-04-07 21:32:18 +02:00
Brian Birtles
4de61d72aa 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
2017-04-05 14:39:23 +09:00
Jonathan Watt
fda2839f54 Bug 1058040, part 12 - Make SVGImageContext's ctor's aViewportSize parameter optional. r=dholbert 2017-01-30 13:25:00 +00:00
Ehsan Akhgari
0b25cbb244 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
4d558d45a5 Bug 1341521 - Remove the retaining buffer machanism when setting the same canvas dimension. r=nical 2017-02-23 01:20:00 -05:00
George Wright
060544953d Bug 1335145 - Only limit accelerated canvases for mobile r=milan 2017-02-21 13:42:32 -05:00
Lee Salzman
0d588fbab3 Bug 738343 - part 4 - Use Moz2d swizzles in Canvas2D. r=jrmuizel 2017-02-12 09:27:39 -05:00
Milan Sreckovic
2048447669 Bug 1329796 - Don't cache the mTarget too soon. r=mstange 2017-02-07 20:35:21 -05:00
Ryan VanderMeulen
e2d854912c Backed out changeset b346ea98c29a (bug 1329796) for reftest failures. 2017-02-06 20:31:22 -05:00
Milan Sreckovic
eb093294e5 Bug 1329796 - Don't cache the mTarget too soon. r=mstange 2017-02-06 19:32:50 -05:00
Carsten "Tomcat" Book
194cbe9850 Merge mozilla-central to mozilla-inbound 2017-02-02 14:28:07 +01:00
Carsten "Tomcat" Book
2ecd3be932 merge mozilla-inbound to mozilla-central a=merge 2017-02-02 14:25:20 +01:00
Olli Pettay
94d031a516 Bug 1110928, ensure zone GC collects the zone from which canvas context is originated, r=mccr8 2017-01-23 19:26:37 +02:00
Wes Kocher
a37b047a41 Merge m-c to autoland, a=merge
MozReview-Commit-ID: HVH8TbXbw7N
2017-02-01 16:30:50 -08:00
Jeff Muizelaar
e81bc6cd85 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
5a9f490db5 Bug 1310318 - Part 1: Allow access to canvas drawWindow() with web extensions permission r=bz
MozReview-Commit-ID: 4ee3pRfduIj
2017-02-01 21:47:59 +01:00
Andrew Osmond
6e9f67a033 Bug 1331938 - Part 2c. Fix rooting hazard in CanvasRenderingContext2D::GetImageDataArray. r=nical 2017-01-31 09:23:25 -05:00
Boris Zbarsky
84f75639fe 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
9dd98f526b 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
ab489a1346 Bug 1334865 part 2. Remove the unused (and broken) asyncDrawXULElement API. r=smaug 2017-02-01 18:04:06 -05:00
Boris Zbarsky
d707eddbb1 Bug 1335368 part 10. Stop using IsCallerChrome in CanvasRenderingContext2D. r=bholley 2017-02-01 15:43:37 -05:00
Boris Zbarsky
33b60b6ff4 Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8 2017-01-24 20:38:58 -05:00
Wes Kocher
a5b654a9fa 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
7629dad1aa Bug 1110928, ensure zone GC collects the zone from which canvas context is originated, r=mccr8 2017-01-23 19:26:37 +02:00
Milan Sreckovic
fb6470697b Bug 1328932: Back out the diagnostic patch from bug 1318283. r=gw280
MozReview-Commit-ID: KRyhWLBuHWM
2017-01-17 16:58:02 -05:00
George Wright
2f9fe069dc 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
5f9911da79 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
45e5563bae 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
2017-01-03 13:53:22 +08:00
Iris Hsiao
f05dc61a9f Backed out changeset c868ab532766 (bug 1323912) 2017-01-04 21:47:12 -05:00
cku
f1ffeaa1c2 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
2017-01-03 13:53:22 +08:00
Phil Ringnalda
1c41e66307 Merge m-c to m-i
MozReview-Commit-ID: JYNBUrs2zC5
2017-01-03 18:46:43 -08:00
Olli Pettay
3898f7d882 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8 2017-01-03 21:47:55 +02:00
Milan Sreckovic
2257cb024d Bug 1318283: UpdateFilter can sometimes invalidate the draw target. Back out the previous speculative patch. r=mstange
MozReview-Commit-ID: 8u2sjS9dyLu
2017-01-03 12:01:11 -05:00
Milan Sreckovic
82deeb7579 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
2016-12-15 16:33:36 -05:00
Jonathan Kew
cd1a5e3ba0 Bug 1319668 - Check for null context before trying to draw canvas text. r=mats 2016-12-03 14:49:46 +00:00
Edwin Flores
ece59d2f27 Bug 1318283 - Debug patch - r=milan 2016-11-28 19:32:49 +00:00
Ethan Lin
5046c9b9cd Bug 1319362 - Use area but not just dimension to check SkiaGL minimum size. r=lsalzman 2016-11-22 19:52:00 +01:00