Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

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: Fix algo issue with self closing tags Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+ 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;

Powered by Google App Engine
This is Rietveld 408576698