Chromium Code Reviews| Index: Source/core/html/HTMLLinkElement.cpp |
| diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp |
| index 99624489fabad5b929db12a74f0f7905310fa3fb..da121dc87b9e00a0e3827a92a73bbb6ff18aaef2 100644 |
| --- a/Source/core/html/HTMLLinkElement.cpp |
| +++ b/Source/core/html/HTMLLinkElement.cpp |
| @@ -137,6 +137,7 @@ inline HTMLLinkElement::HTMLLinkElement(Document& document, bool createdByParser |
| : HTMLElement(linkTag, document) |
| , m_linkLoader(this) |
| , m_sizes(DOMSettableTokenList::create()) |
| + , m_relList(ClassList::create(this)) |
| , m_createdByParser(createdByParser) |
| , m_isInShadowTree(false) |
| { |
| @@ -164,6 +165,7 @@ void HTMLLinkElement::parseAttribute(const QualifiedName& name, const AtomicStri |
| { |
| if (name == relAttr) { |
| m_relAttribute = LinkRelAttribute(value); |
| + m_relList->setValue(value); |
| process(); |
| } else if (name == hrefAttr) { |
| process(); |
| @@ -421,6 +423,11 @@ const AtomicString& HTMLLinkElement::rel() const |
| return getAttribute(relAttr); |
| } |
| +DOMTokenList* HTMLLinkElement::relList() const |
|
Inactive
2014/07/17 19:37:57
Could return a DOMTokenList&
|
| +{ |
| + return m_relList.get(); |
|
Inactive
2014/07/17 19:37:57
You could lazy initialize m_relList here instead o
|
| +} |
| + |
| const AtomicString& HTMLLinkElement::type() const |
| { |
| return getAttribute(typeAttr); |