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

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

Issue 2208073004: Fix ImageLoader::m_hasPendingLoadEvent/m_imageComplete in ImageDocument Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: third_party/WebKit/Source/core/loader/ImageLoader.h
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.h b/third_party/WebKit/Source/core/loader/ImageLoader.h
index 4898446af2cdcee88aef2c42cc7d63b547deb88d..4d950713110e240d66350bd5820cbd6661b4162e 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.h
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.h
@@ -128,7 +128,12 @@ private:
LayoutImageResource* layoutImageResource();
void updateLayoutObject();
+ // Sets |m_image| and flags as loading is completed.
void setImageWithoutConsideringPendingLoadEvent(ImageResource*);
+ // Sets |m_image| and flags as loading is pending/not completed
+ // if |newImage| is non-null.
+ void setImagePending(ImageResource* /* newImage */);
+
void clearFailedLoadURL();
void dispatchErrorEvent();
void crossSiteOrCSPViolationOccurred(AtomicString);

Powered by Google App Engine
This is Rietveld 408576698