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

Unified Diff: third_party/WebKit/Source/core/loader/ImageLoader.cpp

Issue 2888953004: Check that SVGImage is loaded in ImageNotifyFinished() (Closed)
Patch Set: Rebase Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/ImageLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.cpp b/third_party/WebKit/Source/core/loader/ImageLoader.cpp
index d1bf60bbf24ab085b06a6ac0df22fe195118f243..bbd5ae68bb23091a77853eecb5d133b63b76857a 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.cpp
@@ -555,9 +555,11 @@ void ImageLoader::ImageNotifyFinished(ImageResourceContent* resource) {
UpdateLayoutObject();
- if (image_ && image_->GetImage() && image_->GetImage()->IsSVGImage())
+ if (image_ && image_->GetImage() && image_->GetImage()->IsSVGImage()) {
+ ToSVGImage(image_->GetImage())->CheckLoaded();
pdr. 2017/05/19 17:16:42 Can you add a comment here describing why it would
hiroshige 2017/05/19 20:51:44 Added comments here and in CheckLoaded(). SVG peop
ToSVGImage(image_->GetImage())
->UpdateUseCounters(GetElement()->GetDocument());
+ }
if (loading_image_document_) {
CHECK(!has_pending_load_event_);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698