Commit Graph

490 Commits

Author SHA1 Message Date
Bill McCloskey
67e8af4720 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
bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Kirk Steuber
dc26a712ff Bug 1370727 - Return void from nsICanvasRenderingContextInternal::SetIsOpaque r=bz
nsICanvasRenderingContextInternal::SetIsOpaque returns nsresult, but no implementations return errors. It should return void instead.

MozReview-Commit-ID: LrGouaeoCvo
2017-06-09 12:15:42 -07:00
Kevin Chen
ff4b8039ed Bug 1361574 - Restore texture after creating the video texture; r=sotaro
MozReview-Commit-ID: 1XAPVwW8zv3
2017-05-25 17:42:28 +08:00
Andrew Osmond
2bba52e5d7 Bug 1367058 - Clarify CanvasRenderingContext2D::GetImageDataArray when there is no overlapping data to read. r=mchang 2017-05-25 14:54:15 -04:00
Hiroyuki Ikezoe
afc2191d4e Bug 1362914 - Drop initial values of properties other than font-size and font-family in serialization of canvas font attribute. r=manishearth
According to the canvas spec [1], we must drop initial values other than
font-size and font-family when we serialize canvas font attribute.
As for font-size and font-family, the default values, '10px sans-serif' [2]
are not dropped at all.

[1] https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-font
[2] https://html.spec.whatwg.org/multipage/scripting.html#canvastextdrawingstyles

MozReview-Commit-ID: EyOxzJCQYQl
2017-05-20 07:38:26 +09:00
Nazım Can Altınova
072d3c9b05 Bug 1364746 - stylo: Continue to propagate quirks mode information to Servo r=bholley
I've propagated quirks mode information on some places. But we needed to pass
quirks mode to some other FFI functions to be able to handle that information
properly.

MozReview-Commit-ID: JovQWjN3YJx
2017-05-14 18:11:18 +03:00
Emilio Cobos Álvarez
b1cba72009 Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidorn
This allows us to access metadata using `match` instead of comparison with
atoms, which makes it doable to get the pseudo-element flags in the future.

Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: KgGjFePmhyS
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-14 18:39:22 +02:00
Hiroyuki Ikezoe
fcfc8db486 Bug 1357295 - Rename LengthParsingMode to ParsingMode and LengthParsingMode::SVG to PasingMode::AllowUnitlessLength. r=emilio
We need another flag that represents allow-negative-number for SMIL, so
this enum will also comprise the another parsing mode that allows negative number.

MozReview-Commit-ID: IDFNppjGeB
2017-05-13 19:47:38 +09:00
Hiroyuki Ikezoe
9c4f3d4774 Bug 1363574 - Allow unitless length for SMIL values. r=birtles
MozReview-Commit-ID: BkGCHgQVzHD
2017-05-11 08:29:36 +09:00
Jonathan Kew
f7e305bc0d Bug 1362167 - Use strongly-typed enum classes instead of generic uint16_t fields for the gfxShapedText and gfxTextRun flags. r=jrmuizel 2017-05-04 22:27:05 +01:00
Jonathan Kew
527ecaca8e Bug 1362167 - Split gfxShapedText.mFlags into two 16-bit flags fields, and arrange storage more compactly to reduce size of gfxShapedWord and gfxTextRun objects. r=jrmuizel 2017-05-04 22:25:16 +01:00
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