summaryrefslogtreecommitdiffstats
path: root/WebCore/wml/WMLImageElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/wml/WMLImageElement.cpp')
-rw-r--r--WebCore/wml/WMLImageElement.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/WebCore/wml/WMLImageElement.cpp b/WebCore/wml/WMLImageElement.cpp
index f6b3f1e..c4f6b06 100644
--- a/WebCore/wml/WMLImageElement.cpp
+++ b/WebCore/wml/WMLImageElement.cpp
@@ -43,6 +43,11 @@ WMLImageElement::WMLImageElement(const QualifiedName& tagName, Document* doc)
{
}
+PassRefPtr<WMLImageElement> WMLImageElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new WMLImageElement(tagName, document));
+}
+
WMLImageElement::~WMLImageElement()
{
}
@@ -109,7 +114,9 @@ void WMLImageElement::attach()
RenderObject* WMLImageElement::createRenderer(RenderArena* arena, RenderStyle*)
{
- return new (arena) RenderImage(this);
+ RenderImage* image = new (arena) RenderImage(this);
+ image->setImageResource(RenderImageResource::create());
+ return image;
}
void WMLImageElement::insertedIntoDocument()