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

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

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month 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
Index: Source/core/html/shadow/HTMLContentElement.cpp
diff --git a/Source/core/html/shadow/HTMLContentElement.cpp b/Source/core/html/shadow/HTMLContentElement.cpp
index e0845b74642a16b58a6609f90928229d6ff14889..2da1daa166e0f0c41669b36bdfc1339568a3b61c 100644
--- a/Source/core/html/shadow/HTMLContentElement.cpp
+++ b/Source/core/html/shadow/HTMLContentElement.cpp
@@ -42,20 +42,14 @@ using namespace HTMLNames;
PassRefPtr<HTMLContentElement> HTMLContentElement::create(Document& document)
{
- return adoptRef(new HTMLContentElement(contentTag, document));
+ return adoptRef(new HTMLContentElement(document));
}
-PassRefPtr<HTMLContentElement> HTMLContentElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLContentElement(tagName, document));
-}
-
-HTMLContentElement::HTMLContentElement(const QualifiedName& name, Document& document)
- : InsertionPoint(name, document)
+HTMLContentElement::HTMLContentElement(Document& document)
+ : InsertionPoint(contentTag, document)
, m_shouldParseSelect(false)
, m_isValidSelector(true)
{
- ASSERT(hasTagName(contentTag));
ScriptWrappable::init(this);
}

Powered by Google App Engine
This is Rietveld 408576698