Index: Source/core/html/ImageDocument.cpp |
diff --git a/Source/core/html/ImageDocument.cpp b/Source/core/html/ImageDocument.cpp |
index 70c13611a6dcfd6310a75e3735e53eb34adf8112..23b02c3349893e1a014bcb59f227c3cf2e210c40 100644 |
--- a/Source/core/html/ImageDocument.cpp |
+++ b/Source/core/html/ImageDocument.cpp |
@@ -166,23 +166,23 @@ PassRefPtr<DocumentParser> ImageDocument::createParser() |
void ImageDocument::createDocumentStructure() |
{ |
- RefPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(this); |
+ RefPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(*this); |
appendChild(rootElement); |
rootElement->insertedByParser(); |
if (frame() && frame()->loader()) |
frame()->loader()->dispatchDocumentElementAvailable(); |
- RefPtr<HTMLHeadElement> head = HTMLHeadElement::create(this); |
- RefPtr<HTMLMetaElement> meta = HTMLMetaElement::create(this); |
+ RefPtr<HTMLHeadElement> head = HTMLHeadElement::create(*this); |
+ RefPtr<HTMLMetaElement> meta = HTMLMetaElement::create(*this); |
meta->setAttribute(nameAttr, "viewport"); |
meta->setAttribute(contentAttr, "width=device-width"); |
head->appendChild(meta); |
- RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(this); |
+ RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(*this); |
body->setAttribute(styleAttr, "margin: 0px;"); |
- m_imageElement = HTMLImageElement::create(this); |
+ m_imageElement = HTMLImageElement::create(*this); |
m_imageElement->setAttribute(styleAttr, "-webkit-user-select: none"); |
m_imageElement->setLoadManually(true); |
m_imageElement->setSrc(url().string()); |