Changeset 100614 in webkit


Ignore:
Timestamp:
Nov 17, 2011 6:23:49 AM (12 years ago)
Author:
Simon Hausmann
Message:

[Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
https://bugs.webkit.org/show_bug.cgi?id=72596

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

We don't need to use QWebSettings here, because we now propagate the DNS prefetch
setting to WebCore::Settings and the rest of WebCore checks the setting before calling
WebCore::prefetchDNS.

  • platform/network/qt/DnsPrefetchHelper.cpp:

(WebCore::prefetchDNS): Removed the use of QWebSettings.

  • platform/network/qt/DnsPrefetchHelper.h: Remove offending qwebsettings.h inclusion.

Source/WebKit/qt:

  • Api/qwebsettings.cpp:

(QWebSettingsPrivate::apply): Propagate the DNS prefetch setting to WebCore::Settings.

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r100613 r100614  
     12011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
     4        https://bugs.webkit.org/show_bug.cgi?id=72596
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        We don't need to use QWebSettings here, because we now propagate the DNS prefetch
     9        setting to WebCore::Settings and the rest of WebCore checks the setting before calling
     10        WebCore::prefetchDNS.
     11
     12        * platform/network/qt/DnsPrefetchHelper.cpp:
     13        (WebCore::prefetchDNS): Removed the use of QWebSettings.
     14        * platform/network/qt/DnsPrefetchHelper.h: Remove offending qwebsettings.h inclusion.
     15
    1162011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
    217
  • trunk/Source/WebCore/platform/network/qt/DnsPrefetchHelper.cpp

    r95901 r100614  
    2727void prefetchDNS(const String& hostname)
    2828{
    29     if (QWebSettings::globalSettings()->testAttribute(QWebSettings::DnsPrefetchEnabled)) {
    30         static DnsPrefetchHelper dnsPrefetchHelper;
    31         dnsPrefetchHelper.lookup(QString(hostname));
    32     }
     29    static DnsPrefetchHelper dnsPrefetchHelper;
     30    dnsPrefetchHelper.lookup(QString(hostname));
    3331}
    3432
  • trunk/Source/WebCore/platform/network/qt/DnsPrefetchHelper.h

    r95901 r100614  
    2626#include <QString>
    2727#include <QTime>
    28 #include "qwebsettings.h"
    2928
    3029namespace WebCore {
  • trunk/Source/WebKit/qt/Api/qwebsettings.cpp

    r100613 r100614  
    141141                                      global->attributes.value(QWebSettings::AutoLoadImages));
    142142        settings->setLoadsImagesAutomatically(value);
     143
     144        value = attributes.value(QWebSettings::DnsPrefetchEnabled,
     145                                 global->attributes.value(QWebSettings::DnsPrefetchEnabled));
     146        settings->setDNSPrefetchingEnabled(value);
    143147
    144148        value = attributes.value(QWebSettings::JavascriptEnabled,
  • trunk/Source/WebKit/qt/ChangeLog

    r100613 r100614  
     12011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
     4        https://bugs.webkit.org/show_bug.cgi?id=72596
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        * Api/qwebsettings.cpp:
     9        (QWebSettingsPrivate::apply): Propagate the DNS prefetch setting to WebCore::Settings.
     10
    1112011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
    212
Note: See TracChangeset for help on using the changeset viewer.