| 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;
|
|
|