Failed to apply patch for
third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:
While running git apply --index -p1;
error: patch failed:
third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:446
error: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp: patch
does not apply
Patch: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
Index: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
index
dd1d1395b3d4b687c44cec7f393655bf55af7ba2..c95c9da9d689f7ff686b63d9057108bc711c8abd
100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
@@ -76,9 +76,7 @@ class ImageResource::ImageResourceInfoImpl final
const ResourceResponse& response() const override {
return m_resource->response();
}
- Resource::Status getStatus() const override {
- return m_resource->getStatus();
- }
+ ResourceStatus getStatus() const override { return m_resource->getStatus(); }
bool isPlaceholder() const override { return m_resource->isPlaceholder(); }
bool isCacheValidator() const override {
return m_resource->isCacheValidator();
@@ -329,7 +327,7 @@ void ImageResource::decodeError(bool allDataReceived) {
clearData();
setEncodedSize(0);
if (!errorOccurred())
- setStatus(DecodeError);
+ setStatus(ResourceStatus::DecodeError);
if (!allDataReceived && loader()) {
// TODO(hiroshige): Do not call didFinishLoading() directly.
@@ -446,7 +444,7 @@ void ImageResource::reloadIfLoFiOrPlaceholderImage(
nullptr, ImageResourceContent::ClearImageAndNotifyObservers, false);
}
- setStatus(NotStarted);
+ setStatus(ResourceStatus::NotStarted);
DCHECK(m_isSchedulingReload);
m_isSchedulingReload = false;
@@ -470,7 +468,7 @@ void ImageResource::onePartInMultipartReceived(
m_multipartParsingState = MultipartParsingState::FinishedParsingFirstPart;
// Notify finished when the first part ends.
if (!errorOccurred())
- setStatus(Cached);
+ setStatus(ResourceStatus::Cached);
// We notify clients and observers of finish in checkNotify() and
// updateImageAndClearBuffer(), respectively, and they will not be
// notified again in Resource::finish()/error().
https://codereview.chromium.org/2642383003/