Bug 1202696 - check surface status in _cairo_surface_get_extents. r=jmuizelaar, a=sylvestre
authorLee Salzman <lsalzman@mozilla.com>
Wed, 23 Sep 2015 14:40:18 -0400
changeset 296179 10ebd4bb39d1f74b6600bcfb36b0d411c25e4321
parent 296178 6f724b1e2353d2924b7598a511cea60ebe35e0d6
child 296180 f9de006c505e8c95341cdfaa5596f8b2e42e3ef6
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar, sylvestre
bugs1202696
milestone43.0a2
Bug 1202696 - check surface status in _cairo_surface_get_extents. r=jmuizelaar, a=sylvestre
gfx/cairo/cairo/src/cairo-surface.c
--- a/gfx/cairo/cairo/src/cairo-surface.c
+++ b/gfx/cairo/cairo/src/cairo-surface.c
@@ -2564,17 +2564,17 @@ slim_hidden_def (cairo_surface_show_page
  */
 cairo_bool_t
 _cairo_surface_get_extents (cairo_surface_t         *surface,
 			    cairo_rectangle_int_t   *extents)
 {
     cairo_bool_t bounded;
 
     bounded = FALSE;
-    if (surface->backend->get_extents != NULL)
+    if (! surface->status && surface->backend->get_extents != NULL)
 	bounded = surface->backend->get_extents (surface, extents);
 
     if (! bounded)
 	_cairo_unbounded_rectangle_init (extents);
 
     return bounded;
 }