Index: Source/core/svg/SVGImageElement.cpp |
diff --git a/Source/core/svg/SVGImageElement.cpp b/Source/core/svg/SVGImageElement.cpp |
index 5b850375234bdfa28a9ce720f4747a8a73590de1..945da4fdeff8c409aab78a3f5f228c4bd14282c8 100644 |
--- a/Source/core/svg/SVGImageElement.cpp |
+++ b/Source/core/svg/SVGImageElement.cpp |
@@ -175,10 +175,10 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName) |
bool SVGImageElement::selfHasRelativeLengths() const |
{ |
- return x().isRelative() |
- || y().isRelative() |
- || width().isRelative() |
- || height().isRelative(); |
+ return xCurrentValue().isRelative() |
+ || yCurrentValue().isRelative() |
+ || widthCurrentValue().isRelative() |
+ || heightCurrentValue().isRelative(); |
} |
RenderObject* SVGImageElement::createRenderer(RenderStyle*) |
@@ -223,7 +223,7 @@ void SVGImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const |
{ |
SVGGraphicsElement::addSubresourceAttributeURLs(urls); |
- addSubresourceURL(urls, document()->completeURL(href())); |
+ addSubresourceURL(urls, document()->completeURL(hrefCurrentValue())); |
} |
void SVGImageElement::didMoveToNewDocument(Document* oldDocument) |