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

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

Issue 23606021: Add toHTMLMarqueeElement, and use it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderMarquee.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMarqueeElement.h
diff --git a/Source/core/html/HTMLMarqueeElement.h b/Source/core/html/HTMLMarqueeElement.h
index cfc4fb2c48e7f6b5f2d8052f3c282ce80d9d4e21..9169908586aa145b5fa953f2974c1141f3b12ebb 100644
--- a/Source/core/html/HTMLMarqueeElement.h
+++ b/Source/core/html/HTMLMarqueeElement.h
@@ -67,6 +67,12 @@ private:
RenderMarquee* renderMarquee() const;
};
+inline HTMLMarqueeElement* toHTMLMarqueeElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::marqueeTag));
+ return static_cast<HTMLMarqueeElement*>(node);
+}
+
} // namespace WebCore
#endif // HTMLMarqueeElement_h
« no previous file with comments | « no previous file | Source/core/rendering/RenderMarquee.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698