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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp

Issue 1629403003: Merge DOMSettableTokensList into DOMTokensList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed non-oilpan inheritance Created 4 years, 10 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
Index: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index 9ef340250f1758eb11232cc378e3f8677b22be10..3d1da1b62e780296870aa603e331267493c124ad 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -148,7 +148,7 @@ void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntS
inline HTMLLinkElement::HTMLLinkElement(Document& document, bool createdByParser)
: HTMLElement(linkTag, document)
, m_linkLoader(LinkLoader::create(this))
- , m_sizes(DOMSettableTokenList::create(this))
+ , m_sizes(DOMTokenList::create(this))
, m_relList(RelList::create(this))
, m_createdByParser(createdByParser)
, m_isInShadowTree(false)
@@ -164,6 +164,7 @@ HTMLLinkElement::~HTMLLinkElement()
{
#if !ENABLE(OILPAN)
m_sizes->setObserver(nullptr);
+ m_relList->setObserver(nullptr);
m_link.clear();
if (inDocument())
document().styleEngine().removeStyleSheetCandidateNode(this);
@@ -453,7 +454,7 @@ const Vector<IntSize>& HTMLLinkElement::iconSizes() const
return m_iconSizes;
}
-DOMSettableTokenList* HTMLLinkElement::sizes() const
+DOMTokenList* HTMLLinkElement::sizes() const
{
return m_sizes.get();
}
@@ -466,7 +467,7 @@ DEFINE_TRACE(HTMLLinkElement)
visitor->trace(m_relList);
HTMLElement::trace(visitor);
LinkLoaderClient::trace(visitor);
- DOMSettableTokenListObserver::trace(visitor);
+ DOMTokenListObserver::trace(visitor);
}
PassOwnPtrWillBeRawPtr<LinkStyle> LinkStyle::create(HTMLLinkElement* owner)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.h ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698