diff options
Diffstat (limited to 'Source/WebCore/dom')
-rw-r--r-- | Source/WebCore/dom/Document.cpp | 3 | ||||
-rw-r--r-- | Source/WebCore/dom/SlotAssignment.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp index 2598b0f1e..1bca2d0a6 100644 --- a/Source/WebCore/dom/Document.cpp +++ b/Source/WebCore/dom/Document.cpp @@ -5315,6 +5315,9 @@ void Document::initDNSPrefetch() void Document::parseDNSPrefetchControlHeader(const String& dnsPrefetchControl) { + if (!settings()->dnsPrefetchingEnabled()) + return; + if (equalLettersIgnoringASCIICase(dnsPrefetchControl, "on") && !m_haveExplicitlyDisabledDNSPrefetch) { m_isDNSPrefetchEnabled = true; return; diff --git a/Source/WebCore/dom/SlotAssignment.h b/Source/WebCore/dom/SlotAssignment.h index 0fcd4dfa6..9b9ebe429 100644 --- a/Source/WebCore/dom/SlotAssignment.h +++ b/Source/WebCore/dom/SlotAssignment.h @@ -28,6 +28,7 @@ #if ENABLE(SHADOW_DOM) || ENABLE(DETAILS_ELEMENT) +#include <functional> #include <wtf/HashMap.h> #include <wtf/HashSet.h> #include <wtf/Vector.h> |