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

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

Issue 1220443004: Revert of Revert of Fix CH Width header when preloadScanner and <picture> are involved (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | 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 105818d6553f6b794409d26ace34a99b27fa8cd8..50acb47f509194b73b987c8d0c2d80e6cb548ae9 100644
--- a/Source/core/html/parser/HTMLPreloadScanner.h
+++ b/Source/core/html/parser/HTMLPreloadScanner.h
@@ -109,6 +109,19 @@
size_t templateCount;
};
+ struct PictureData {
+ PictureData()
+ : sourceSize(0.0)
+ , sourceSizeSet(false)
+ , picked(false)
+ {
+ }
+ String sourceURL;
+ float sourceSize;
+ bool sourceSizeSet;
+ bool picked;
+ };
+
CSSPreloadScanner m_cssScanner;
const KURL m_documentURL;
KURL m_predictedBaseElementURL;
@@ -116,7 +129,7 @@
bool m_inPicture;
bool m_isAppCacheEnabled;
bool m_isCSPEnabled;
- String m_pictureSourceURL;
+ PictureData m_pictureData;
size_t m_templateCount;
OwnPtr<CachedDocumentParameters> m_documentParameters;
ClientHintsPreferences m_clientHintsPreferences;
« no previous file with comments | « no previous file | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698