diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /gfx/cairo/premultiply-alpha-solid-gradients.patch | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'gfx/cairo/premultiply-alpha-solid-gradients.patch')
-rw-r--r-- | gfx/cairo/premultiply-alpha-solid-gradients.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gfx/cairo/premultiply-alpha-solid-gradients.patch b/gfx/cairo/premultiply-alpha-solid-gradients.patch new file mode 100644 index 000000000..665f64969 --- /dev/null +++ b/gfx/cairo/premultiply-alpha-solid-gradients.patch @@ -0,0 +1,46 @@ +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 = |