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

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

Issue 23714006: Add toHTMLSummaryElement(), 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/html/shadow/DetailsMarkerControl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLSummaryElement.h
diff --git a/Source/core/html/HTMLSummaryElement.h b/Source/core/html/HTMLSummaryElement.h
index 67a1fe1d91144ea6cdaa58bcdd08482603c32456..01316113eb48e8c31e30ead681d3c9e6d041df6d 100644
--- a/Source/core/html/HTMLSummaryElement.h
+++ b/Source/core/html/HTMLSummaryElement.h
@@ -44,6 +44,12 @@ private:
bool supportsFocus() const OVERRIDE;
};
+inline HTMLSummaryElement* toHTMLSummaryElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::summaryTag));
+ return static_cast<HTMLSummaryElement*>(node);
+}
+
}
#endif // HTMLSummaryElement_h
« no previous file with comments | « no previous file | Source/core/html/shadow/DetailsMarkerControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698