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

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

Issue 457413002: Defer late and async scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Lower priorities for late/async scripts Created 6 years, 4 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
« no previous file with comments | « Source/core/html/parser/CSSPreloadScanner.cpp ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLPreloadScanner.h
diff --git a/Source/core/html/parser/HTMLPreloadScanner.h b/Source/core/html/parser/HTMLPreloadScanner.h
index 03f53d923f4da7b1919d6c7ae54ae97bed137af3..9ed303d8181548fba219eaeae914c7d22a2a6ada 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, bool isBeforeBody, size_t templateCount)
: predictedBaseElementURL(predictedBaseElementURL)
, inStyle(inStyle)
+ , isBeforeBody(isBeforeBody)
, templateCount(templateCount)
{
}
KURL predictedBaseElementURL;
bool inStyle;
+ bool isBeforeBody;
size_t templateCount;
};
@@ -91,6 +93,7 @@ private:
KURL m_predictedBaseElementURL;
bool m_inStyle;
bool m_inPicture;
+ bool m_isBeforeBody;
String m_pictureSourceURL;
size_t m_templateCount;
RefPtr<MediaValues> m_mediaValues;
« no previous file with comments | « Source/core/html/parser/CSSPreloadScanner.cpp ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698