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

Issue 2304523003: Fix CHECK condition in ImageResource (Closed)

Created:
4 years, 3 months ago by hajimehoshi
Modified:
4 years, 3 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix CHECK condition in ImageResource In ImageResource, we assumed that |errorOccured()| is true only when |m_image| is null but this was not true since |errorOccured()| can be true when |m_image->isNull()| is true. This CL fixes the wrong CHECK condition. BUG=643200 TEST=n/a

Patch Set 1 #

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

Depends on Patchset:

Messages

Total messages: 9 (3 generated)
hajimehoshi
PTAL
4 years, 3 months ago (2016-09-02 03:59:39 UTC) #3
hiroshige
> In ImageResource, we assumed that |errorOccured()| is true only when > |m_image| is null ...
4 years, 3 months ago (2016-09-02 05:11:01 UTC) #4
Mike West
LGTM.
4 years, 3 months ago (2016-09-02 08:44:42 UTC) #5
Mike West
On 2016/09/02 at 08:44:42, Mike West (OOO until 29th) wrote: > LGTM. (Sorry, LGTM % ...
4 years, 3 months ago (2016-09-02 08:45:07 UTC) #6
Mike West
4 years, 3 months ago (2016-09-02 08:45:13 UTC) #8
hajimehoshi
4 years, 3 months ago (2016-09-02 08:55:38 UTC) #9
Thank you for reviewing, but we discussed offline and concluded that it is not
good to change the invariant even in the prefilnalizer. hitoshige@ will fix this
instead.

Powered by Google App Engine
This is Rietveld 408576698