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

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

Issue 27142002: Use DEFINE_NODE_TYPE_CASTS instead of using manual toHTMLFooElement() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « Source/core/html/HTMLParamElement.h ('k') | Source/core/html/HTMLScriptElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.h
diff --git a/Source/core/html/HTMLPlugInElement.h b/Source/core/html/HTMLPlugInElement.h
index 0647dfd3d2422d80829c2582f571d44aef7139ff..23cb385f3d4f59258bfe7e676aa64f34920e4f3e 100644
--- a/Source/core/html/HTMLPlugInElement.h
+++ b/Source/core/html/HTMLPlugInElement.h
@@ -103,20 +103,7 @@ private:
DisplayState m_displayState;
};
-inline HTMLPlugInElement* toHTMLPlugInElement(Node* node)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isPluginElement());
- return static_cast<HTMLPlugInElement*>(node);
-}
-
-inline const HTMLPlugInElement* toHTMLPlugInElement(const Node* node)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isPluginElement());
- return static_cast<const HTMLPlugInElement*>(node);
-}
-
-// This will catch anyone doing an unnecessary cast.
-void toHTMLPlugInElement(const HTMLPlugInElement*);
+DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement());
} // namespace WebCore
« no previous file with comments | « Source/core/html/HTMLParamElement.h ('k') | Source/core/html/HTMLScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698