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

Issue 2869733004: Fix ImageResourceContent::Create()'s GetContentStatus() (Closed)

Created:
3 years, 7 months ago by hiroshige
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-frames_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ImageResourceContent::Create()'s GetContentStatus() Follow-up of a regression bug caused by [1]: Previously, ImageResourceContent::Create() returned a content with kCached, while after [1] it returns a content with kNotStarted. This causes behavior changes if Create() is called with non-null argument. [1] https://codereview.chromium.org/2746343002/ This CL fixes this issue by renaming Create() with a non-null argument to ImageResourceContent::CreateLoaded() that sets the status to kCached. The callsites of CreateLoaded() were affected by the bug, i.e. a callsite in HTMLImageElement and others in tests. Create() with the nullptr argument is renamed to CreateNotStarted(), which is only called from ImageResource and is not affected by the bug. BUG=667641, 382170, 690480 Review-Url: https://codereview.chromium.org/2869733004 Cr-Commit-Position: refs/heads/master@{#471113} Committed: https://chromium.googlesource.com/chromium/src/+/29c12a26e644a95e6d53eb7e02c136ca9fdf4c94

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -14 lines) Patch
M third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp View 5 chunks +10 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResource.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h View 1 1 chunk +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (23 generated)
hiroshige
PTAL.
3 years, 7 months ago (2017-05-08 23:33:42 UTC) #5
yhirano
lgtm
3 years, 7 months ago (2017-05-10 06:09:26 UTC) #11
kouhei (in TOK)
lgtm
3 years, 7 months ago (2017-05-10 16:16:20 UTC) #13
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/2869733004/20001
3 years, 7 months ago (2017-05-10 16:17:28 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450245)
3 years, 7 months ago (2017-05-10 19:07:59 UTC) #16
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/2869733004/20001
3 years, 7 months ago (2017-05-10 21:45:31 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450941)
3 years, 7 months ago (2017-05-11 00:07:48 UTC) #22
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/2869733004/20001
3 years, 7 months ago (2017-05-11 18:00:17 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/452076)
3 years, 7 months ago (2017-05-11 19:55:55 UTC) #29
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/2869733004/20001
3 years, 7 months ago (2017-05-11 21:22:48 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 23:11:27 UTC) #34
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/29c12a26e644a95e6d53eb7e02c1...

Powered by Google App Engine
This is Rietveld 408576698