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

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: 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 f93b4129afb7485f13ec29fd4f495f2493200f00..0a66195fd429007399142914a4508233b3fb793d 100644
--- a/Source/core/html/HTMLDialogElement.cpp
+++ b/Source/core/html/HTMLDialogElement.cpp
@@ -64,19 +64,18 @@ static void inertSubtreesChanged(Document& document)
cache->handleInertSubtreesChanged();
}
-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