| Index: Source/core/svg/SVGImageLoader.cpp
|
| diff --git a/Source/core/svg/SVGImageLoader.cpp b/Source/core/svg/SVGImageLoader.cpp
|
| index 1b9c9842066a0ba283f828d978132bc19f2e50e9..af9d5b7587efbb2c1c8d12d5ea226b57bce46141 100644
|
| --- a/Source/core/svg/SVGImageLoader.cpp
|
| +++ b/Source/core/svg/SVGImageLoader.cpp
|
| @@ -47,9 +47,9 @@ void SVGImageLoader::dispatchLoadEvent()
|
| String SVGImageLoader::sourceURI(const AtomicString& attribute) const
|
| {
|
| KURL base = element()->baseURI();
|
| - if (base.isValid())
|
| - return KURL(base, stripLeadingAndTrailingHTMLSpaces(attribute)).string();
|
| - return element()->document().completeURL(stripLeadingAndTrailingHTMLSpaces(attribute));
|
| + if (!base.isValid())
|
| + base = element()->document().baseURI();
|
| + return element()->document().completeURLWithOverride(stripLeadingAndTrailingHTMLSpaces(attribute), base);
|
| }
|
|
|
| }
|
|
|