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

Unified Diff: Source/core/html/shadow/DetailsMarkerControl.cpp

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 | « Source/core/html/HTMLSummaryElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/DetailsMarkerControl.cpp
diff --git a/Source/core/html/shadow/DetailsMarkerControl.cpp b/Source/core/html/shadow/DetailsMarkerControl.cpp
index 77f6b7cd147d09eb4ba76eccf2a114eb997b3721..ed9d7394b930b14be2a6382366299c4048ec5a50 100644
--- a/Source/core/html/shadow/DetailsMarkerControl.cpp
+++ b/Source/core/html/shadow/DetailsMarkerControl.cpp
@@ -56,9 +56,7 @@ bool DetailsMarkerControl::rendererIsNeeded(const NodeRenderingContext& context)
HTMLSummaryElement* DetailsMarkerControl::summaryElement()
{
- Element* element = shadowHost();
- ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(summaryTag));
- return static_cast<HTMLSummaryElement*>(element);
+ return toHTMLSummaryElement(shadowHost());
}
}
« no previous file with comments | « Source/core/html/HTMLSummaryElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698