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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElement.h

Issue 2864253003: Split ImageLoader::SetImage() and set flags consistently in tests (Closed)
Patch Set: Refine 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
Index: third_party/WebKit/Source/core/html/HTMLImageElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.h b/third_party/WebKit/Source/core/html/HTMLImageElement.h
index 429a0bce4a9a1c7c432e2ce95b4f6a2681267d84..259ce1116b3834b758eb4439990b994cc7ae0380 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
@@ -83,8 +83,8 @@ class CORE_EXPORT HTMLImageElement final
ImageResource* CachedImageResourceForImageDocument() const {
return GetImageLoader().ImageResourceForImageDocument();
}
- void SetImageResource(ImageResourceContent* i) {
- GetImageLoader().SetImage(i);
+ void SetImageForTest(ImageResourceContent* i) {
fs 2017/05/09 08:29:55 Maybe rename |i| to something more appropriate her
hiroshige 2017/05/09 23:07:57 Done.
+ GetImageLoader().SetImageForTest(i);
}
void SetLoadingImageDocument() { GetImageLoader().SetLoadingImageDocument(); }
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp ('k') | third_party/WebKit/Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698