| Index: Source/core/html/HTMLImageElement.cpp
|
| diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
|
| index bf88109ed9ecad7b640245f02d5216edaa77a176..30c86681dd7a5c4561fa6e1be5360d6ddb0eec71 100644
|
| --- a/Source/core/html/HTMLImageElement.cpp
|
| +++ b/Source/core/html/HTMLImageElement.cpp
|
| @@ -40,7 +40,7 @@ namespace WebCore {
|
|
|
| using namespace HTMLNames;
|
|
|
| -HTMLImageElement::HTMLImageElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
|
| +HTMLImageElement::HTMLImageElement(const QualifiedName& tagName, Document& document, HTMLFormElement* form)
|
| : HTMLElement(tagName, document)
|
| , m_imageLoader(this)
|
| , m_form(form)
|
| @@ -52,12 +52,12 @@ HTMLImageElement::HTMLImageElement(const QualifiedName& tagName, Document* docum
|
| form->registerImgElement(this);
|
| }
|
|
|
| -PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document* document)
|
| +PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document& document)
|
| {
|
| return adoptRef(new HTMLImageElement(imgTag, document));
|
| }
|
|
|
| -PassRefPtr<HTMLImageElement> HTMLImageElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
|
| +PassRefPtr<HTMLImageElement> HTMLImageElement::create(const QualifiedName& tagName, Document& document, HTMLFormElement* form)
|
| {
|
| return adoptRef(new HTMLImageElement(tagName, document, form));
|
| }
|
| @@ -68,7 +68,7 @@ HTMLImageElement::~HTMLImageElement()
|
| m_form->removeImgElement(this);
|
| }
|
|
|
| -PassRefPtr<HTMLImageElement> HTMLImageElement::createForJSConstructor(Document* document, const int* optionalWidth, const int* optionalHeight)
|
| +PassRefPtr<HTMLImageElement> HTMLImageElement::createForJSConstructor(Document& document, const int* optionalWidth, const int* optionalHeight)
|
| {
|
| RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document));
|
| if (optionalWidth)
|
|
|