Backed out changeset 1ba19d1f07da (bug 1292628) for failing to create surface in reftests on Windows 7 VM. r=backout

This commit is contained in:
Sebastian Hengst 2016-08-20 12:31:00 +02:00
parent 3c832018ee
commit f1445a15e2

View File

@ -731,8 +731,7 @@ DrawTargetCairo::LockBits(uint8_t** aData, IntSize* aSize,
}
}
#endif
if (cairo_surface_get_type(surf) == CAIRO_SURFACE_TYPE_IMAGE &&
cairo_surface_status(surf) == CAIRO_STATUS_SUCCESS) {
if (cairo_surface_get_type(surf) == CAIRO_SURFACE_TYPE_IMAGE) {
PointDouble offset;
cairo_surface_get_device_offset(target, &offset.x, &offset.y);
// verify the device offset can be converted to integers suitable for a bounds rect