Index: Source/core/html/HTMLLinkElement.h |
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h |
index c8541409e866f406e7a93b3a25b9af1c33b7c1a9..941fa3c2693c12c01f22d8d70d9a943583c75a64 100644 |
--- a/Source/core/html/HTMLLinkElement.h |
+++ b/Source/core/html/HTMLLinkElement.h |
@@ -203,6 +203,12 @@ private: |
int m_beforeLoadRecurseCount; |
}; |
+inline HTMLLinkElement* toHTMLLinkElement(Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::linkTag)); |
+ return static_cast<HTMLLinkElement*>(node); |
+} |
+ |
} //namespace |
#endif |