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

Unified Diff: Source/core/html/HTMLOptionElement.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/HTMLOptionElement.cpp
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
index 85dffe1e993a33ce1dcfedb8d1253e4b9abd6248..f8c1d56d2c6943b5c2e420bfbf25c417d0a7da64 100644
--- a/Source/core/html/HTMLOptionElement.cpp
+++ b/Source/core/html/HTMLOptionElement.cpp
@@ -46,30 +46,24 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLOptionElement::HTMLOptionElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLOptionElement::HTMLOptionElement(Document& document)
+ : HTMLElement(optionTag, document)
, m_disabled(false)
, m_isSelected(false)
{
- ASSERT(hasTagName(optionTag));
setHasCustomStyleCallbacks();
ScriptWrappable::init(this);
}
PassRefPtr<HTMLOptionElement> HTMLOptionElement::create(Document& document)
{
- return adoptRef(new HTMLOptionElement(optionTag, document));
-}
-
-PassRefPtr<HTMLOptionElement> HTMLOptionElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLOptionElement(tagName, document));
+ return adoptRef(new HTMLOptionElement(document));
}
PassRefPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstructor(Document& document, const String& data, const String& value,
bool defaultSelected, bool selected, ExceptionState& es)
{
- RefPtr<HTMLOptionElement> element = adoptRef(new HTMLOptionElement(optionTag, document));
+ RefPtr<HTMLOptionElement> element = adoptRef(new HTMLOptionElement(document));
RefPtr<Text> text = Text::create(document, data.isNull() ? "" : data);

Powered by Google App Engine
This is Rietveld 408576698