gfx/cairo/pattern_get_surface-no-error.patch
author Sylvestre Ledru <sledru@mozilla.com>
Thu, 12 Oct 2017 15:22:59 +0200
changeset 385816 d14dd0e5c41a54d4c5a82d7c82245c03854e5b5e
parent 60855 8b3806faa4b69c8ea87bbb5afa3ae8959067d4fe
permissions -rw-r--r--
Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium MozReview-Commit-ID: 89NxxGUVjHV

# HG changeset patch
# User Robert O'Callahan <robert@ocallahan.org>
# Date 1294019288 -46800
# Node ID e427b4ea7e2ff980769e1acd92f4730c5ed3654f
# Parent  bacc54d452a9fddb5a0d6a1442ec7be4de81ffa7
Bug 593604. Part 2.5: cairo_pattern_get_surface should not call cairo_error. r=jrmuizel,a=blocking

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
@@ -2940,17 +2940,17 @@ cairo_pattern_get_surface (cairo_pattern
 			   cairo_surface_t **surface)
 {
     cairo_surface_pattern_t *spat = (cairo_surface_pattern_t*) pattern;
 
     if (pattern->status)
 	return pattern->status;
 
     if (pattern->type != CAIRO_PATTERN_TYPE_SURFACE)
-	return _cairo_error (CAIRO_STATUS_PATTERN_TYPE_MISMATCH);
+	return CAIRO_STATUS_PATTERN_TYPE_MISMATCH;
 
     if (surface)
 	*surface = spat->surface;
 
     return CAIRO_STATUS_SUCCESS;
 }
 
 /**