Unreviewed, rolling out r234489.
[WebKit-https.git] / Source / WebCore / platform / graphics / gtk / ImageBufferGtk.cpp
index f0ac7bb..8e6095c 100644 (file)
@@ -67,7 +67,7 @@ static bool encodeImage(cairo_surface_t* surface, const String& mimeType, std::o
 
     GUniqueOutPtr<GError> error;
     if (type == "jpeg" && quality && *quality >= 0.0 && *quality <= 1.0) {
-        String qualityString = String::deprecatedFormat("%d", static_cast<int>(*quality * 100.0 + 0.5));
+        String qualityString = String::format("%d", static_cast<int>(*quality * 100.0 + 0.5));
         gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize, type.utf8().data(), &error.outPtr(), "quality", qualityString.utf8().data(), NULL);
     } else
         gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize, type.utf8().data(), &error.outPtr(), NULL);