| Index: third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| index 15976d9d2d344a4873f215ec76846012cce146d5..8bd5312c2f0d97d1f5dd7047d15bfaf68aa7103c 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| @@ -134,7 +134,7 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName)
|
|
|
| if (SVGURIReference::isKnownAttribute(attrName)) {
|
| SVGElement::InvalidationGuard invalidationGuard(this);
|
| - if (inDocument())
|
| + if (inShadowIncludingDocument())
|
| imageLoader().updateFromElement(ImageLoader::UpdateIgnorePreviousError);
|
| else
|
| m_needsLoaderURIUpdate = true;
|
| @@ -177,7 +177,7 @@ void SVGImageElement::attach(const AttachContext& context)
|
| Node::InsertionNotificationRequest SVGImageElement::insertedInto(ContainerNode* rootParent)
|
| {
|
| SVGGraphicsElement::insertedInto(rootParent);
|
| - if (!rootParent->inDocument())
|
| + if (!rootParent->inShadowIncludingDocument())
|
| return InsertionDone;
|
|
|
| // We can only resolve base URIs properly after tree insertion - hence, URI mutations while
|
|
|