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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.h

Issue 1235603003: Use DOMSettableTokenList for {HTMLAnchorElement, HTMLAreaElement}.ping. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase it(2). Created 5 years, 3 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/HTMLAnchorElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.h b/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
index 17161225c936aa4128728b58dca51fd4aa26b120..e98b261dce1ea0bfaae8e5dc694b885c781c93b4 100644
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
+++ b/third_party/WebKit/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, private DOMSettableTokenListObserver {
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
+ void valueChanged() override;
+
uint32_t m_linkRelations;
mutable LinkHash m_cachedVisitedLinkHash;
bool m_wasFocusedByMouse;
+ RefPtrWillBeMember<DOMSettableTokenList> m_ping;
};
inline LinkHash HTMLAnchorElement::visitedLinkHash() const

Powered by Google App Engine
This is Rietveld 408576698