Index: Source/core/svg/graphics/filters/SVGFEImage.cpp |
diff --git a/Source/core/svg/graphics/filters/SVGFEImage.cpp b/Source/core/svg/graphics/filters/SVGFEImage.cpp |
index 0f2bf2c1dc6a35826a4282bd8121d56640264184..f61a702fc566ee176d130ecb09d40aa5338ec0e8 100644 |
--- a/Source/core/svg/graphics/filters/SVGFEImage.cpp |
+++ b/Source/core/svg/graphics/filters/SVGFEImage.cpp |
@@ -47,9 +47,9 @@ FEImage::FEImage(Filter* filter, PassRefPtr<Image> image, const SVGPreserveAspec |
{ |
} |
-FEImage::FEImage(Filter* filter, Document* document, const String& href, const SVGPreserveAspectRatio& preserveAspectRatio) |
+FEImage::FEImage(Filter* filter, Document& document, const String& href, const SVGPreserveAspectRatio& preserveAspectRatio) |
: FilterEffect(filter) |
- , m_document(document) |
+ , m_document(&document) |
, m_href(href) |
, m_preserveAspectRatio(preserveAspectRatio) |
{ |
@@ -60,7 +60,7 @@ PassRefPtr<FEImage> FEImage::createWithImage(Filter* filter, PassRefPtr<Image> i |
return adoptRef(new FEImage(filter, image, preserveAspectRatio)); |
} |
-PassRefPtr<FEImage> FEImage::createWithIRIReference(Filter* filter, Document* document, const String& href, const SVGPreserveAspectRatio& preserveAspectRatio) |
+PassRefPtr<FEImage> FEImage::createWithIRIReference(Filter* filter, Document& document, const String& href, const SVGPreserveAspectRatio& preserveAspectRatio) |
{ |
return adoptRef(new FEImage(filter, document, href, preserveAspectRatio)); |
} |
@@ -86,7 +86,7 @@ RenderObject* FEImage::referencedRenderer() const |
{ |
if (!m_document) |
return 0; |
- Element* hrefElement = SVGURIReference::targetElementFromIRIString(m_href, m_document); |
+ Element* hrefElement = SVGURIReference::targetElementFromIRIString(m_href, *m_document); |
if (!hrefElement || !hrefElement->isSVGElement()) |
return 0; |
return hrefElement->renderer(); |