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

Issue 2176603002: Simplify the condition for destroyDecodedData() (Closed)

Created:
4 years, 5 months ago by hajimehoshi
Modified:
4 years, 4 months ago
Reviewers:
hiroshige, Mike West
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify the condition for destroyDecodedData() This CL simplifies the condition for destroyDecodedData(). When an error occurs, |m_image| must be null and the condition for |m_image| doesn't make sense. This CL also fixes another if condition and inserts DCHECK based on the above assumption. BUG=618623, 631321 TEST=webkit_unit_tests --gtest_filter=ImageResourceTest.* Committed: https://crrev.com/c3dc43ed9905a2225780ff466706cfd3044f62ce Cr-Commit-Position: refs/heads/master@{#408358}

Patch Set 1 #

Patch Set 2 : Address on hiroshige's review #

Patch Set 3 : Remove calling prune() #

Patch Set 4 : (rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (24 generated)
hajimehoshi
PTAL
4 years, 5 months ago (2016-07-22 11:12:00 UTC) #4
hiroshige
Code looks good. > This CL also removes calling prune() in clear() since the image ...
4 years, 4 months ago (2016-07-26 05:41:17 UTC) #7
hiroshige
On 2016/07/26 05:41:17, hiroshige wrote: > Code looks good. > > > This CL also ...
4 years, 4 months ago (2016-07-26 05:44:44 UTC) #8
hajimehoshi
On 2016/07/26 05:44:44, hiroshige wrote: > On 2016/07/26 05:41:17, hiroshige wrote: > > Code looks ...
4 years, 4 months ago (2016-07-26 06:19:24 UTC) #13
hiroshige
lgtm! > CL description Could you mention that this CL inserts |CHECK(!errorOccurred())| based on the ...
4 years, 4 months ago (2016-07-26 06:49:33 UTC) #16
hajimehoshi
On 2016/07/26 06:49:33, hiroshige wrote: > lgtm! > > > CL description > Could you ...
4 years, 4 months ago (2016-07-26 08:55:51 UTC) #18
Mike West
The bots seem very unhappy with this patch.
4 years, 4 months ago (2016-07-27 08:43:32 UTC) #19
hajimehoshi
On 2016/07/27 08:43:32, Mike West wrote: > The bots seem very unhappy with this patch. ...
4 years, 4 months ago (2016-07-27 10:44:56 UTC) #20
hajimehoshi
PTAL
4 years, 4 months ago (2016-07-28 05:29:19 UTC) #27
Mike West
LGTM!
4 years, 4 months ago (2016-07-28 07:23:42 UTC) #30
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/2176603002/60001
4 years, 4 months ago (2016-07-28 08:08:29 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-28 08:11:34 UTC) #35
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 08:21:12 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c3dc43ed9905a2225780ff466706cfd3044f62ce
Cr-Commit-Position: refs/heads/master@{#408358}

Powered by Google App Engine
This is Rietveld 408576698