[webkit-reviews] review denied: [Bug 29279] [Qt] Use RGB16 format for images on Symbian platform : [Attachment 40138] patch with different QWebSettings API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 7 08:14:19 PDT 2009


Simon Hausmann <hausmann at webkit.org> has denied Chang Shu
<Chang.Shu at nokia.com>'s request for review:
Bug 29279: [Qt] Use RGB16 format for images on Symbian platform
https://bugs.webkit.org/show_bug.cgi?id=29279

Attachment 40138: patch with different QWebSettings API
https://bugs.webkit.org/attachment.cgi?id=40138&action=review

------- Additional Comments from Simon Hausmann <hausmann at webkit.org>

>	   LocalContentCanAccessRemoteUrls,
>	   SessionStorageEnabled,
> -	   DnsPrefetchEnabled
> +	   DnsPrefetchEnabled,

The trailing comma shouldn't be there :)

>      };
>      enum WebGraphic {
>	   MissingImageGraphic,
> @@ -134,6 +134,9 @@ public:
>  
>      static void enablePersistentStorage(const QString& path = QString());
>  
> +    void setImageFormat(QImage::Format format);
> +    QImage::Format imageFormat();
> +

If this is a regular member function of QWebSettings, then it must also be
possible to 
set the image format per-page. However in the implementation we can only use
QWebSettings::globalSettings(), we
do not have access to the page. Therefore if we decide to use this API, then we
it should be a static function in QWebSettings.


I am however concerned that we need such an API in the first place. Is there
any way we can make a smart
decision ourselves? Do we really have to bother the application programmer with
this?

And most importantly: Is this optimization still necessary after Holger's
changes from #27538 ?


More information about the webkit-reviews mailing list