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

Unified Diff: Source/core/html/HTMLDialogElement.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/HTMLDialogElement.cpp
diff --git a/Source/core/html/HTMLDialogElement.cpp b/Source/core/html/HTMLDialogElement.cpp
index b264572319d7a1f09e51040bdb1d235e4718543a..564929b02f8ac310fe8439ac1d48c8ee70d89e90 100644
--- a/Source/core/html/HTMLDialogElement.cpp
+++ b/Source/core/html/HTMLDialogElement.cpp
@@ -57,19 +57,18 @@ static void runAutofocus(HTMLDialogElement* dialog)
}
}
-HTMLDialogElement::HTMLDialogElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLDialogElement::HTMLDialogElement(Document& document)
+ : HTMLElement(dialogTag, document)
, m_centeringMode(Uninitialized)
, m_centeredPosition(0)
, m_returnValue("")
{
- ASSERT(hasTagName(dialogTag));
ScriptWrappable::init(this);
}
-PassRefPtr<HTMLDialogElement> HTMLDialogElement::create(const QualifiedName& tagName, Document& document)
+PassRefPtr<HTMLDialogElement> HTMLDialogElement::create(Document& document)
{
- return adoptRef(new HTMLDialogElement(tagName, document));
+ return adoptRef(new HTMLDialogElement(document));
}
void HTMLDialogElement::close(const String& returnValue, ExceptionState& es)

Powered by Google App Engine
This is Rietveld 408576698