 Chromium Code Reviews
 Chromium Code Reviews Issue 1235603003:
  Use DOMSettableTokenList for {HTMLAnchorElement, HTMLAreaElement}.ping.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master
    
  
    Issue 1235603003:
  Use DOMSettableTokenList for {HTMLAnchorElement, HTMLAreaElement}.ping.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master| Index: Source/core/html/HTMLAnchorElement.h | 
| diff --git a/Source/core/html/HTMLAnchorElement.h b/Source/core/html/HTMLAnchorElement.h | 
| index 142ac645069f5180f450d13b78c6d6096df1ad55..4a829ccb813bd0ec16756c87854dc75192ce0382 100644 | 
| --- a/Source/core/html/HTMLAnchorElement.h | 
| +++ b/Source/core/html/HTMLAnchorElement.h | 
| @@ -26,6 +26,7 @@ | 
| #include "core/CoreExport.h" | 
| #include "core/HTMLNames.h" | 
| +#include "core/dom/DOMSettableTokenList.h" | 
| #include "core/dom/DOMURLUtils.h" | 
| #include "core/dom/Document.h" | 
| #include "core/html/HTMLElement.h" | 
| @@ -56,9 +57,10 @@ enum { | 
| // RelationUp = 0x00020000, | 
| }; | 
| -class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils { | 
| +class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils, public DOMSettableTokenListObserver { | 
| 
tkent
2015/07/14 00:29:44
should be |private DOMSettableTokenListObserver| b
 | 
| DEFINE_WRAPPERTYPEINFO(); | 
| public: | 
| + DECLARE_VIRTUAL_TRACE(); | 
| static PassRefPtrWillBeRawPtr<HTMLAnchorElement> create(Document&); | 
| ~HTMLAnchorElement() override; | 
| @@ -86,6 +88,8 @@ public: | 
| void sendPings(const KURL& destinationURL) const; | 
| + DOMSettableTokenList* ping() const; | 
| + | 
| protected: | 
| HTMLAnchorElement(const QualifiedName&, Document&); | 
| @@ -111,9 +115,13 @@ private: | 
| InsertionNotificationRequest insertedInto(ContainerNode*) override; | 
| void handleClick(Event*); | 
| + // DOMSettableTokenListObserver | 
| + virtual void valueChanged() override; | 
| 
tkent
2015/07/14 00:29:44
|virtual| is not necessary.
 | 
| + | 
| uint32_t m_linkRelations; | 
| mutable LinkHash m_cachedVisitedLinkHash; | 
| bool m_wasFocusedByMouse; | 
| + RefPtrWillBeMember<DOMSettableTokenList> m_ping; | 
| }; | 
| inline LinkHash HTMLAnchorElement::visitedLinkHash() const |