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

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

Issue 375923002: Don't dispatch '(SVG)load' to ancestors of <svg:image> after doc. 'load' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop assert_true; use toSVGElement. Created 6 years, 5 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/svg/SVGElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGImageLoader.cpp
diff --git a/Source/core/svg/SVGImageLoader.cpp b/Source/core/svg/SVGImageLoader.cpp
index af9d5b7587efbb2c1c8d12d5ea226b57bce46141..ed7fca449d5497232598789329da4f3827105565 100644
--- a/Source/core/svg/SVGImageLoader.cpp
+++ b/Source/core/svg/SVGImageLoader.cpp
@@ -36,11 +36,11 @@ SVGImageLoader::SVGImageLoader(SVGImageElement* node)
void SVGImageLoader::dispatchLoadEvent()
{
- if (image()->errorOccurred())
+ if (image()->errorOccurred()) {
element()->dispatchEvent(Event::create(EventTypeNames::error));
- else {
+ } else {
SVGImageElement* imageElement = toSVGImageElement(element());
- imageElement->sendSVGLoadEventIfPossible(true);
+ imageElement->sendSVGLoadEventToSelfAndAncestorChainIfPossible();
}
}
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698