summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/premultiply-alpha-solid-gradients.patch
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-06 21:06:15 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-07 14:49:48 +0100
commit7efd71616ec5efedbe626a986a707c35d3cac323 (patch)
tree0223e8271d9d18763efd743f43f98b8b8b9e5c2e /gfx/cairo/premultiply-alpha-solid-gradients.patch
parentbbc2206a0fda053a6f5071b457bd209dab9ed268 (diff)
downloadUXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar.gz
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar.lz
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.tar.xz
UXP-7efd71616ec5efedbe626a986a707c35d3cac323.zip
Issue #1274 - Part 1: Adopt the cairo version as our own.
- Move header licensing from tri-license to MPL 2.0. MPL-compatible other licensing has been retained where originally present. - Remove individual superseded licensing terms. - Remove patches, outdated readmes & incomplete patch summaries. - Remove incomplete cairo release notes (only went up to 1.6.4 anyway). - Rewrite COPYING to indicate the current state of the library in tree.
Diffstat (limited to 'gfx/cairo/premultiply-alpha-solid-gradients.patch')
-rw-r--r--gfx/cairo/premultiply-alpha-solid-gradients.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/gfx/cairo/premultiply-alpha-solid-gradients.patch b/gfx/cairo/premultiply-alpha-solid-gradients.patch
deleted file mode 100644
index 665f64969..000000000
--- a/gfx/cairo/premultiply-alpha-solid-gradients.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-Fix single and multi-stop solid gradients by multiplying by the alpha component. r=roc
-
-This cairo commit that caused the problem: 2d790daa957471670f4ae0d3b22da89e4ee7111f.
-It was merged into mozilla-central with 1effb72d30cf
-
-diff --git a/gfx/cairo/cairo/src/cairo-pattern.c b/gfx/cairo/cairo/src/cairo-pattern.c
---- a/gfx/cairo/cairo/src/cairo-pattern.c
-+++ b/gfx/cairo/cairo/src/cairo-pattern.c
-@@ -2262,8 +2262,17 @@ _cairo_pattern_acquire_surface (const ca
-
- if (src->n_stops)
- {
-+ cairo_color_t color;
-+
-+ /* multiply by alpha */
-+ _cairo_color_init_rgba (&color,
-+ src->stops->color.red,
-+ src->stops->color.green,
-+ src->stops->color.blue,
-+ src->stops->color.alpha);
-+
- _cairo_pattern_init_solid (&solid,
-- &src->stops->color,
-+ &color,
- CAIRO_CONTENT_COLOR_ALPHA);
- }
- else
-@@ -2295,9 +2304,17 @@ _cairo_pattern_acquire_surface (const ca
- }
- if (i == src->n_stops) {
- cairo_solid_pattern_t solid;
-+ cairo_color_t color;
-+
-+ /* multiply by alpha */
-+ _cairo_color_init_rgba (&color,
-+ src->stops->color.red,
-+ src->stops->color.green,
-+ src->stops->color.blue,
-+ src->stops->color.alpha);
-
- _cairo_pattern_init_solid (&solid,
-- &src->stops->color,
-+ &color,
- CAIRO_CONTENT_COLOR_ALPHA);
-
- status =