Changeset 100614 in webkit
- Timestamp:
- Nov 17, 2011 6:23:49 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r100613 r100614 1 2011-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 1 16 2011-11-17 Simon Hausmann <simon.hausmann@nokia.com> 2 17 -
trunk/Source/WebCore/platform/network/qt/DnsPrefetchHelper.cpp
r95901 r100614 27 27 void prefetchDNS(const String& hostname) 28 28 { 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)); 33 31 } 34 32 -
trunk/Source/WebCore/platform/network/qt/DnsPrefetchHelper.h
r95901 r100614 26 26 #include <QString> 27 27 #include <QTime> 28 #include "qwebsettings.h"29 28 30 29 namespace WebCore { -
trunk/Source/WebKit/qt/Api/qwebsettings.cpp
r100613 r100614 141 141 global->attributes.value(QWebSettings::AutoLoadImages)); 142 142 settings->setLoadsImagesAutomatically(value); 143 144 value = attributes.value(QWebSettings::DnsPrefetchEnabled, 145 global->attributes.value(QWebSettings::DnsPrefetchEnabled)); 146 settings->setDNSPrefetchingEnabled(value); 143 147 144 148 value = attributes.value(QWebSettings::JavascriptEnabled, -
trunk/Source/WebKit/qt/ChangeLog
r100613 r100614 1 2011-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 1 11 2011-11-17 Simon Hausmann <simon.hausmann@nokia.com> 2 12
Note: See TracChangeset
for help on using the changeset viewer.