Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/platform/graphics/qt/ImageQt.cpp b/WebCore/platform/graphics/qt/ImageQt.cpp
index 136685c..206aee3 100644
--- a/WebCore/platform/graphics/qt/ImageQt.cpp
+++ b/WebCore/platform/graphics/qt/ImageQt.cpp
@@ -53,18 +53,17 @@
 // This function loads resources into WebKit
 static QPixmap loadResourcePixmap(const char *name)
 {
-    const QWebSettings settings = QWebSettings::global();
     const QString resource = name;
 
     QPixmap pixmap;
     if (resource == "missingImage")
-        pixmap = settings.webGraphic(QWebSettings::MissingImageGraphic);
+        pixmap = QWebSettings::webGraphic(QWebSettings::MissingImageGraphic);
     else if (resource == "nullPlugin")
-        pixmap = settings.webGraphic(QWebSettings::MissingPluginGraphic);
+        pixmap = QWebSettings::webGraphic(QWebSettings::MissingPluginGraphic);
     else if (resource == "urlIcon")
-        pixmap = settings.webGraphic(QWebSettings::DefaultFaviconGraphic);
+        pixmap = QWebSettings::webGraphic(QWebSettings::DefaultFaviconGraphic);
     else if (resource == "textAreaResizeCorner")
-        pixmap = settings.webGraphic(QWebSettings::TextAreaResizeCornerGraphic);
+        pixmap = QWebSettings::webGraphic(QWebSettings::TextAreaResizeCornerGraphic);
 
     return pixmap;
 }