Index: Source/core/html/HTMLDetailsElement.cpp |
diff --git a/Source/core/html/HTMLDetailsElement.cpp b/Source/core/html/HTMLDetailsElement.cpp |
index ec4d7699538c5bd77d82ea0593ed5a656f3a9d54..f3220bc39e4d721fb10da4f53968e2b95d8bb20b 100644 |
--- a/Source/core/html/HTMLDetailsElement.cpp |
+++ b/Source/core/html/HTMLDetailsElement.cpp |
@@ -34,18 +34,17 @@ namespace WebCore { |
using namespace HTMLNames; |
-PassRefPtr<HTMLDetailsElement> HTMLDetailsElement::create(const QualifiedName& tagName, Document& document) |
+PassRefPtr<HTMLDetailsElement> HTMLDetailsElement::create(Document& document) |
{ |
- RefPtr<HTMLDetailsElement> details = adoptRef(new HTMLDetailsElement(tagName, document)); |
+ RefPtr<HTMLDetailsElement> details = adoptRef(new HTMLDetailsElement(document)); |
details->ensureUserAgentShadowRoot(); |
return details.release(); |
} |
-HTMLDetailsElement::HTMLDetailsElement(const QualifiedName& tagName, Document& document) |
- : HTMLElement(tagName, document) |
+HTMLDetailsElement::HTMLDetailsElement(Document& document) |
+ : HTMLElement(detailsTag, document) |
, m_isOpen(false) |
{ |
- ASSERT(hasTagName(detailsTag)); |
ScriptWrappable::init(this); |
} |
@@ -58,7 +57,7 @@ void HTMLDetailsElement::didAddUserAgentShadowRoot(ShadowRoot& root) |
{ |
DEFINE_STATIC_LOCAL(AtomicString, summarySelector, ("summary:first-of-type", AtomicString::ConstructFromLiteral)); |
- RefPtr<HTMLSummaryElement> defaultSummary = HTMLSummaryElement::create(summaryTag, document()); |
+ RefPtr<HTMLSummaryElement> defaultSummary = HTMLSummaryElement::create(document()); |
defaultSummary->appendChild(Text::create(document(), locale().queryString(blink::WebLocalizedString::DetailsLabel))); |
RefPtr<HTMLContentElement> content = HTMLContentElement::create(document()); |