From 39e6a0090faa4e73a658c1ca0ead3040309b84a2 Mon Sep 17 00:00:00 2001 From: Brian Ewins Date: Fri, 8 Jun 2007 01:12:24 +0100 Subject: [PATCH] [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. --- src/cairo-quartz-surface.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c index c2376fe07..dea8c26a0 100644 --- a/src/cairo-quartz-surface.c +++ b/src/cairo-quartz-surface.c @@ -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;