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

Unified Diff: Source/core/html/HTMLLinkElement.h

Issue 1060863003: Add initial link preload support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix uninit member :/ Created 5 years, 8 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/HTMLAttributeNames.in ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index bd5e61c4461cc28ec704fd6fa5cbc6cb8630fcfd..a0fd1cd3c53d0f88437449469f387d0602e7343a 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -131,6 +131,7 @@ public:
const AtomicString& rel() const;
String media() const { return m_media; }
String typeValue() const { return m_type; }
+ String asValue() const { return m_as; }
const LinkRelAttribute& relAttribute() const { return m_relAttribute; }
const AtomicString& type() const;
@@ -163,7 +164,7 @@ public:
virtual bool shouldLoadLink() override;
// For LinkStyle
- bool loadLink(const String& type, const KURL&);
+ bool loadLink(const String& type, const String& as, const KURL&);
bool isAlternate() const { return linkStyle()->isUnset() && m_relAttribute.isAlternate(); }
bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); }
bool isCreatedByParser() const { return m_createdByParser; }
@@ -211,6 +212,7 @@ private:
LinkLoader m_linkLoader;
String m_type;
+ String m_as;
String m_media;
RefPtrWillBeMember<DOMSettableTokenList> m_sizes;
Vector<IntSize> m_iconSizes;
« no previous file with comments | « Source/core/html/HTMLAttributeNames.in ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698