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

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

Issue 2869733004: Fix ImageResourceContent::Create()'s GetContentStatus() (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
Index: third_party/WebKit/Source/core/html/HTMLImageElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
index 6046a9a2e50970d918b0fa402a6e69574b2755c1..6ad492963e8641a36d0b0cc8211d58aa936076a0 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
@@ -372,8 +372,9 @@ void HTMLImageElement::AttachLayoutTree(const AttachContext& context) {
blink::DeviceScaleFactorDeprecated(layout_image->GetFrame());
std::pair<Image*, float> broken_image_and_image_scale_factor =
ImageResourceContent::BrokenImage(device_scale_factor);
- ImageResourceContent* new_image_resource = ImageResourceContent::Create(
- broken_image_and_image_scale_factor.first);
+ ImageResourceContent* new_image_resource =
+ ImageResourceContent::CreateLoaded(
+ broken_image_and_image_scale_factor.first);
layout_image->ImageResource()->SetImageResource(new_image_resource);
}
if (layout_image_resource->HasImage())

Powered by Google App Engine
This is Rietveld 408576698