mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-08 08:20:36 +01:00
[quartz] fall back on extended gradients
A temporary fix for mozilla bug 379321, use an image fallback for gradients that use EXTEND_REPEAT or EXTEND_REFLECT.
This commit is contained in:
parent
7c1afdcd59
commit
39e6a0090f
1 changed files with 7 additions and 0 deletions
|
|
@ -393,6 +393,13 @@ _cairo_quartz_cairo_gradient_pattern_to_quartz (cairo_pattern_t *abspat)
|
|||
abspat->type != CAIRO_PATTERN_TYPE_RADIAL)
|
||||
return NULL;
|
||||
|
||||
/* bandaid for mozilla bug 379321, also visible in the
|
||||
* linear-gradient-reflect test.
|
||||
*/
|
||||
if (abspat->extend == CAIRO_EXTEND_REFLECT ||
|
||||
abspat->extend == CAIRO_EXTEND_REPEAT)
|
||||
return NULL;
|
||||
|
||||
/* We can only do this if we have an identity pattern matrix;
|
||||
* otherwise fall back through to the generic pattern case.
|
||||
* XXXperf we could optimize this by creating a pattern with the shading;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue