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

Unified Diff: Source/core/html/HTMLLinkElement.h

Issue 400763002: Adding relList attr to link and anchor element Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified as per review comments Created 6 years, 5 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: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index f8a7878b5901dc7f8b61f2d66c8538249763f58b..2c77b844f954ea15f65e669c4eb9894a46b3dfb2 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -33,6 +33,7 @@
#include "core/html/HTMLElement.h"
#include "core/html/LinkRelAttribute.h"
#include "core/html/LinkResource.h"
+#include "core/html/RelList.h"
#include "core/loader/LinkLoader.h"
#include "core/loader/LinkLoaderClient.h"
@@ -121,6 +122,7 @@ public:
KURL href() const;
const AtomicString& rel() const;
+ DOMTokenList& relList();
String media() const { return m_media; }
String typeValue() const { return m_type; }
const LinkRelAttribute& relAttribute() const { return m_relAttribute; }
@@ -151,6 +153,8 @@ public:
void dispatchEventImmediately();
static void dispatchPendingLoadEvents();
+ void setRelList(PassOwnPtrWillBeRawPtr<RelList> relList) { m_relList = relList; }
Inactive 2014/07/23 13:26:44 We don't really need this getter. Especially not a
+
// From LinkLoaderClient
virtual bool shouldLoadLink() OVERRIDE;
@@ -207,6 +211,7 @@ private:
RefPtrWillBeMember<DOMSettableTokenList> m_sizes;
Vector<IntSize> m_iconSizes;
LinkRelAttribute m_relAttribute;
+ OwnPtrWillBeMember<RelList> m_relList;
bool m_createdByParser;
bool m_isInShadowTree;

Powered by Google App Engine
This is Rietveld 408576698