| Index: Source/core/html/parser/HTMLPreloadScanner.h
|
| diff --git a/Source/core/html/parser/HTMLPreloadScanner.h b/Source/core/html/parser/HTMLPreloadScanner.h
|
| index ba63bab36b6cf466cc68f8da779c210f15a26737..cd2c652a8f4a565769e2988c9e99320c62ab23fa 100644
|
| --- a/Source/core/html/parser/HTMLPreloadScanner.h
|
| +++ b/Source/core/html/parser/HTMLPreloadScanner.h
|
| @@ -44,7 +44,7 @@ class SegmentedString;
|
| class TokenPreloadScanner {
|
| WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - explicit TokenPreloadScanner(const KURL& documentURL);
|
| + explicit TokenPreloadScanner(const KURL& documentURL, float deviceScaleFactor = 1.0);
|
| ~TokenPreloadScanner();
|
|
|
| void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& requests);
|
| @@ -89,6 +89,7 @@ private:
|
| const KURL m_documentURL;
|
| KURL m_predictedBaseElementURL;
|
| bool m_inStyle;
|
| + float m_deviceScaleFactor;
|
| size_t m_templateCount;
|
|
|
| Vector<Checkpoint> m_checkpoints;
|
| @@ -97,7 +98,7 @@ private:
|
| class HTMLPreloadScanner {
|
| WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL);
|
| + HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL, float deviceScaleFactor = 1.0);
|
| ~HTMLPreloadScanner();
|
|
|
| void appendToEnd(const SegmentedString&);
|
|
|