Chromium Code Reviews

Unified Diff: Source/core/html/parser/HTMLPreloadScanner.h

Issue 265763010: Add preloader support for picture based source selection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed nesting issues Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/html/parser/HTMLPreloadScanner.h
diff --git a/Source/core/html/parser/HTMLPreloadScanner.h b/Source/core/html/parser/HTMLPreloadScanner.h
index 8117458c98585c4aa48e371e5603d1393ee35c91..6a7f99d7c3ef7630f14d14b2e88d53bd615fc101 100644
--- a/Source/core/html/parser/HTMLPreloadScanner.h
+++ b/Source/core/html/parser/HTMLPreloadScanner.h
@@ -86,10 +86,20 @@ private:
size_t templateCount;
};
+ struct Parent {
+ String sourceURL;
+ const StringImpl* tagImpl;
eseidel 2014/05/15 06:29:13 Why not just String?
+ Parent(const StringImpl* tagImpl)
+ : tagImpl(tagImpl)
+ {
+ }
+ };
+
CSSPreloadScanner m_cssScanner;
const KURL m_documentURL;
KURL m_predictedBaseElementURL;
bool m_inStyle;
+ Vector<Parent> m_pictureParentStack;
size_t m_templateCount;
RefPtr<MediaValues> m_mediaValues;
« no previous file with comments | « LayoutTests/http/tests/loading/preload-picture-sizes-expected.txt ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine