Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1793)

Unified Diff: Source/core/svg/SVGImageElement.cpp

Issue 1374793005: Single image reload fix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/ImageLoader.cpp ('k') | Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGImageElement.cpp
diff --git a/Source/core/svg/SVGImageElement.cpp b/Source/core/svg/SVGImageElement.cpp
index 4e1d852d8775e4f590f50b1882d82aa06c3930b2..7c4b83e19a64b5a967cd873d22ff4dd8d99d3417 100644
--- a/Source/core/svg/SVGImageElement.cpp
+++ b/Source/core/svg/SVGImageElement.cpp
@@ -138,7 +138,7 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName)
if (SVGURIReference::isKnownAttribute(attrName)) {
SVGElement::InvalidationGuard invalidationGuard(this);
if (inDocument())
- imageLoader().updateFromElement(ImageLoader::UpdateIgnorePreviousError);
+ imageLoader().updateFromElement(0, ImageLoader::UpdateIgnorePreviousError);
else
m_needsLoaderURIUpdate = true;
return;
@@ -186,13 +186,13 @@ Node::InsertionNotificationRequest SVGImageElement::insertedInto(ContainerNode*
// We can only resolve base URIs properly after tree insertion - hence, URI mutations while
// detached are deferred until this point.
if (m_needsLoaderURIUpdate) {
- imageLoader().updateFromElement(ImageLoader::UpdateIgnorePreviousError);
+ imageLoader().updateFromElement(0, ImageLoader::UpdateIgnorePreviousError);
m_needsLoaderURIUpdate = false;
} else {
// A previous loader update may have failed to actually fetch the image if the document
// was inactive. In that case, force a re-update (but don't clear previous errors).
if (!imageLoader().image())
- imageLoader().updateFromElement();
+ imageLoader().updateFromElement(0);
}
return InsertionDone;
« no previous file with comments | « Source/core/loader/ImageLoader.cpp ('k') | Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698