+2007-11-07 Simon Hausmann <hausmann@kde.org>
+
+ Reviewed by Lars.
+
+ Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
+
+ WARNING: NO TEST CASES ADDED OR CHANGED
+
+ * platform/graphics/qt/ImageQt.cpp:
+ (loadResourcePixmap):
+
2007-11-07 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
#include "GraphicsContext.h"
#include "AffineTransform.h"
#include "NotImplemented.h"
+#include "qwebsettings.h"
#include <QPixmap>
#include <QPainter>
#include <math.h>
// This function loads resources into WebKit
-QPixmap loadResourcePixmap(const char*);
+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);
+ else if (resource == "nullPlugin")
+ pixmap = settings.webGraphic(QWebSettings::MissingPluginGraphic);
+ else if (resource == "urlIcon")
+ pixmap = settings.webGraphic(QWebSettings::DefaultFaviconGraphic);
+ else if (resource == "textAreaResizeCorner")
+ pixmap = settings.webGraphic(QWebSettings::TextAreaResizeCornerGraphic);
+
+ return pixmap;
+}
namespace WebCore {
return d->attributes[attr];
}
-QPixmap loadResourcePixmap(const char *name)
-{
- const QWebSettings settings = QWebSettings::global();
- const QString resource = name;
-
- QPixmap pixmap;
- if (resource == "missingImage")
- pixmap = settings.webGraphic(QWebSettings::MissingImageGraphic);
- else if (resource == "nullPlugin")
- pixmap = settings.webGraphic(QWebSettings::MissingPluginGraphic);
- else if (resource == "urlIcon")
- pixmap = settings.webGraphic(QWebSettings::DefaultFaviconGraphic);
- else if (resource == "textAreaResizeCorner")
- pixmap = settings.webGraphic(QWebSettings::TextAreaResizeCornerGraphic);
-
- return pixmap;
-}
+2007-11-07 Simon Hausmann <hausmann@kde.org>
+
+ Reviewed by Lars.
+
+ Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
+
+ * Api/qwebsettings.cpp:
+
2007-11-07 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.