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

Unified Diff: Source/core/html/HTMLImageElement.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/HTMLImageElement.cpp
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
index 6a96bc1f489d44b325d664b4a9e816dfdefa5fbb..25530270563cebb52bdb81f817486c6cdea9399e 100644
--- a/Source/core/html/HTMLImageElement.cpp
+++ b/Source/core/html/HTMLImageElement.cpp
@@ -42,14 +42,13 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLImageElement::HTMLImageElement(const QualifiedName& tagName, Document& document, HTMLFormElement* form)
- : HTMLElement(tagName, document)
+HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form)
+ : HTMLElement(imgTag, document)
, m_imageLoader(this)
, m_form(form)
, m_compositeOperator(CompositeSourceOver)
, m_imageDevicePixelRatio(1.0f)
{
- ASSERT(hasTagName(imgTag));
ScriptWrappable::init(this);
if (form)
form->registerImgElement(this);
@@ -57,12 +56,12 @@ HTMLImageElement::HTMLImageElement(const QualifiedName& tagName, Document& docum
PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document& document)
{
- return adoptRef(new HTMLImageElement(imgTag, document));
+ return adoptRef(new HTMLImageElement(document));
}
-PassRefPtr<HTMLImageElement> HTMLImageElement::create(const QualifiedName& tagName, Document& document, HTMLFormElement* form)
+PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document& document, HTMLFormElement* form)
{
- return adoptRef(new HTMLImageElement(tagName, document, form));
+ return adoptRef(new HTMLImageElement(document, form));
}
HTMLImageElement::~HTMLImageElement()
@@ -73,7 +72,7 @@ HTMLImageElement::~HTMLImageElement()
PassRefPtr<HTMLImageElement> HTMLImageElement::createForJSConstructor(Document& document, int width, int height)
{
- RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document));
+ RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(document));
if (width)
image->setWidth(width);
if (height)

Powered by Google App Engine
This is Rietveld 408576698