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

Unified Diff: Source/core/html/LinkRelAttribute.cpp

Issue 15856002: First step of HTMLImports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Mac build Created 7 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
« no previous file with comments | « Source/core/html/LinkRelAttribute.h ('k') | Source/core/html/LinkResource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LinkRelAttribute.cpp
diff --git a/Source/core/html/LinkRelAttribute.cpp b/Source/core/html/LinkRelAttribute.cpp
index 272d294c63746800104440f39bdef330cf95eb95..b9df78ffe6b076a488cf713a8b202226ffa14f04 100644
--- a/Source/core/html/LinkRelAttribute.cpp
+++ b/Source/core/html/LinkRelAttribute.cpp
@@ -35,24 +35,26 @@
namespace WebCore {
LinkRelAttribute::LinkRelAttribute()
- : m_isStyleSheet(false)
- , m_iconType(InvalidIcon)
+ : m_iconType(InvalidIcon)
+ , m_isStyleSheet(false)
, m_isAlternate(false)
, m_isDNSPrefetch(false)
, m_isLinkPrefetch(false)
, m_isLinkSubresource(false)
, m_isLinkPrerender(false)
+ , m_isImport(false)
{
}
LinkRelAttribute::LinkRelAttribute(const String& rel)
- : m_isStyleSheet(false)
- , m_iconType(InvalidIcon)
+ : m_iconType(InvalidIcon)
+ , m_isStyleSheet(false)
, m_isAlternate(false)
, m_isDNSPrefetch(false)
, m_isLinkPrefetch(false)
, m_isLinkSubresource(false)
, m_isLinkPrerender(false)
+ , m_isImport(false)
{
if (equalIgnoringCase(rel, "stylesheet"))
m_isStyleSheet = true;
@@ -69,6 +71,10 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
else if (equalIgnoringCase(rel, "alternate stylesheet") || equalIgnoringCase(rel, "stylesheet alternate")) {
m_isStyleSheet = true;
m_isAlternate = true;
+ } else if (equalIgnoringCase(rel, "dns-prefetch")) {
+ m_isDNSPrefetch = true;
+ } else if (equalIgnoringCase(rel, "import")) {
+ m_isImport = true;
} else {
// Tokenize the rel attribute and set bits based on specific keywords that we find.
String relCopy = rel;
« no previous file with comments | « Source/core/html/LinkRelAttribute.h ('k') | Source/core/html/LinkResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698