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

Issue 2513413008: [ImageResource 0a] Do not notify ResourceClient/ImageResourceObserver of finish twice (Closed)

Created:
4 years, 1 month ago by hiroshige
Modified:
4 years ago
Reviewers:
yhirano
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not notify ResourceClient/ImageResourceObserver of finish twice Previously, for a multipart image, - ResourceClient::notifyFinished() and - ImageResourceObserver::imageNotifyFinished() might be called twice: 1. When the first part is loaded, and 2. When the whole loading is finished. This CL removes the second case to make callback/observer control consistent and simpler, as preparation for https://codereview.chromium.org/2469873002/. Behavior change: Previously, multipart images are replaced with broken images when cancelled after the first part is loaded. After this CL, multipart images remains as-is in such cases. https://codereview.chromium.org/1840933002 fixes layout tests for this change. BUG=668598 Committed: https://crrev.com/18a8d7074c9f0c8e2c3fff36b3a021cdd3a06477 Cr-Commit-Position: refs/heads/master@{#434952}

Patch Set 1 #

Patch Set 2 : comments #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -18 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -6 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 49 (42 generated)
hiroshige
PTAL.
4 years ago (2016-11-28 06:14:03 UTC) #27
yhirano
https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (left): https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Source/core/fetch/Resource.h#oldcode342 third_party/WebKit/Source/core/fetch/Resource.h:342: void notifyClientsInternal(MarkFinishedOption); Is it a good idea to merge ...
4 years ago (2016-11-29 02:23:30 UTC) #32
hiroshige
https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (left): https://codereview.chromium.org/2513413008/diff/120001/third_party/WebKit/Source/core/fetch/Resource.h#oldcode342 third_party/WebKit/Source/core/fetch/Resource.h:342: void notifyClientsInternal(MarkFinishedOption); On 2016/11/29 02:23:30, yhirano wrote: > Is ...
4 years ago (2016-11-29 07:54:31 UTC) #35
yhirano
lgtm
4 years ago (2016-11-29 07:56:02 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2513413008/160001
4 years ago (2016-11-29 10:29:19 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-11-29 10:39:35 UTC) #47
commit-bot: I haz the power
4 years ago (2016-11-29 10:41:18 UTC) #49
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/18a8d7074c9f0c8e2c3fff36b3a021cdd3a06477
Cr-Commit-Position: refs/heads/master@{#434952}

Powered by Google App Engine
This is Rietveld 408576698