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

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

Issue 2746343002: Phase III Step 1: Make ImageResourceContent manage its own ResourceStatus (Closed)
Patch Set: Reflect comments 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/HTMLObjectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
index 5b6a9d1edfdf7a25fd9065312c9427c8756f0d37..f17c71f3c349016e4716279a41b7e859ca0ea3ea 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
@@ -393,7 +393,8 @@ void HTMLObjectElement::RenderFallbackContent() {
// Before we give up and use fallback content, check to see if this is a MIME
// type issue.
if (image_loader_ && image_loader_->GetImage() &&
- image_loader_->GetImage()->GetStatus() != ResourceStatus::kLoadError) {
+ image_loader_->GetImage()->GetContentStatus() !=
+ ResourceStatus::kLoadError) {
service_type_ = image_loader_->GetImage()->GetResponse().MimeType();
if (!IsImageType()) {
// If we don't think we have an image type anymore, then clear the image
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSStyleImageValue.h ('k') | third_party/WebKit/Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698