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

Unified Diff: Source/core/html/HTMLParagraphElement.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/HTMLParagraphElement.cpp
diff --git a/Source/core/html/HTMLParagraphElement.cpp b/Source/core/html/HTMLParagraphElement.cpp
index 626e8d56f8c4d1197a90afeca004e9360cc30adc..459800856f9506bb4681c95dfc02d86becabd9de 100644
--- a/Source/core/html/HTMLParagraphElement.cpp
+++ b/Source/core/html/HTMLParagraphElement.cpp
@@ -31,21 +31,15 @@ namespace WebCore {
using namespace HTMLNames;
-inline HTMLParagraphElement::HTMLParagraphElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+inline HTMLParagraphElement::HTMLParagraphElement(Document& document)
+ : HTMLElement(pTag, document)
{
- ASSERT(hasTagName(pTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLParagraphElement> HTMLParagraphElement::create(Document& document)
{
- return adoptRef(new HTMLParagraphElement(pTag, document));
-}
-
-PassRefPtr<HTMLParagraphElement> HTMLParagraphElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLParagraphElement(tagName, document));
+ return adoptRef(new HTMLParagraphElement(document));
}
bool HTMLParagraphElement::isPresentationAttribute(const QualifiedName& name) const

Powered by Google App Engine
This is Rietveld 408576698