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

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: Added nested element tests 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..8ce44cef8a6dd966ca8d99de8735a248b07a8a1f 100644
--- a/Source/core/html/parser/HTMLPreloadScanner.h
+++ b/Source/core/html/parser/HTMLPreloadScanner.h
@@ -74,15 +74,17 @@ private:
void updatePredictedBaseURL(const Token&);
struct Checkpoint {
- Checkpoint(const KURL& predictedBaseElementURL, bool inStyle, size_t templateCount)
+ Checkpoint(const KURL& predictedBaseElementURL, bool inStyle, const Vector<String>& pictureSourceURLStack, size_t templateCount)
: predictedBaseElementURL(predictedBaseElementURL)
, inStyle(inStyle)
+ , pictureSourceURLStack(pictureSourceURLStack)
eseidel 2014/05/09 07:30:36 Why do these need to be stored on the checkpoint?
, templateCount(templateCount)
{
}
KURL predictedBaseElementURL;
bool inStyle;
+ Vector<String> pictureSourceURLStack;
size_t templateCount;
};
@@ -90,6 +92,7 @@ private:
const KURL m_documentURL;
KURL m_predictedBaseElementURL;
bool m_inStyle;
+ Vector<String> m_pictureSourceURLStack;
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
This is Rietveld 408576698