Index: Source/core/page/Chrome.cpp |
diff --git a/Source/core/page/Chrome.cpp b/Source/core/page/Chrome.cpp |
index 1972ef53c73ec7fdb0c4c7ffcd92a3465f365dc1..6824d1531774785233f59ffe26bd98a8165de143 100644 |
--- a/Source/core/page/Chrome.cpp |
+++ b/Source/core/page/Chrome.cpp |
@@ -306,8 +306,7 @@ IntRect Chrome::windowResizerRect() const |
void Chrome::mouseDidMoveOverElement(const HitTestResult& result, unsigned modifierFlags) |
{ |
if (result.innerNode()) { |
- Document* document = result.innerNode()->document(); |
- if (document && document->isDNSPrefetchEnabled()) |
+ if (result.innerNode()->document()->isDNSPrefetchEnabled()) |
prefetchDNS(result.absoluteLinkURL().host()); |
} |
m_client->mouseDidMoveOverElement(result, modifierFlags); |