| Index: Source/core/html/parser/HTMLDocumentParser.cpp | 
| diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp | 
| index b5b283ec2f12702866b083d04aa5dcdb9806649d..7d5af801f365a8fd413c84be1f68a4095b2aa3b5 100644 | 
| --- a/Source/core/html/parser/HTMLDocumentParser.cpp | 
| +++ b/Source/core/html/parser/HTMLDocumentParser.cpp | 
| @@ -558,7 +558,7 @@ void HTMLDocumentParser::pumpTokenizer(SynchronousMode mode) | 
| if (isWaitingForScripts()) { | 
| ASSERT(m_tokenizer->state() == HTMLTokenizer::DataState); | 
| if (!m_preloadScanner) { | 
| -            m_preloadScanner = adoptPtr(new HTMLPreloadScanner(m_options, document()->url())); | 
| +            m_preloadScanner = adoptPtr(new HTMLPreloadScanner(m_options, document()->url(), document()->devicePixelRatio())); | 
| m_preloadScanner->appendToEnd(m_input.current()); | 
| } | 
| m_preloadScanner->scan(m_preloader.get(), document()->baseElementURL()); | 
| @@ -632,8 +632,9 @@ void HTMLDocumentParser::insert(const SegmentedString& source) | 
| if (isWaitingForScripts()) { | 
| // Check the document.write() output with a separate preload scanner as | 
| // the main scanner can't deal with insertions. | 
| -        if (!m_insertionPreloadScanner) | 
| -            m_insertionPreloadScanner = adoptPtr(new HTMLPreloadScanner(m_options, document()->url())); | 
| +        if (!m_insertionPreloadScanner) { | 
| +            m_insertionPreloadScanner = adoptPtr(new HTMLPreloadScanner(m_options, document()->url(), document()->devicePixelRatio())); | 
| +        } | 
| m_insertionPreloadScanner->appendToEnd(source); | 
| m_insertionPreloadScanner->scan(m_preloader.get(), document()->baseElementURL()); | 
| } | 
| @@ -657,7 +658,7 @@ void HTMLDocumentParser::startBackgroundParser() | 
| config->parser = m_weakFactory.createWeakPtr(); | 
| config->xssAuditor = adoptPtr(new XSSAuditor); | 
| config->xssAuditor->init(document(), &m_xssAuditorDelegate); | 
| -    config->preloadScanner = adoptPtr(new TokenPreloadScanner(document()->url().copy())); | 
| +    config->preloadScanner = adoptPtr(new TokenPreloadScanner(document()->url().copy(), document()->devicePixelRatio())); | 
|  | 
| ASSERT(config->xssAuditor->isSafeToSendToAnotherThread()); | 
| ASSERT(config->preloadScanner->isSafeToSendToAnotherThread()); | 
|  |