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

Issue 2225903004: Refactoring: Remove dead code in DeferredImageDecoder::createFrameAtIndex (Closed)

Created:
4 years, 4 months ago by hajimehoshi
Modified:
4 years, 4 months ago
Reviewers:
f(malita)
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, Justin Novosad, Rik, blink-reviews, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Remove dead code in DeferredImageDecoder::createFrameAtIndex DeferredImageDecoder::createFrameAtIndex is used only at ImageSource::createFrameAtIndex, and this is indirectly called by BitmapImage::frameAtIndex, which checks that the index is less than the number of frames. Thus, DeferredImageDecoder::createFrameAtIndex can assume that the given |index| is less than the number of the frames. This CL removes the dead code to improve code health. BUG=n/a TEST=webkit_unit_tests Committed: https://crrev.com/9a1a7dc0502f5d16b53ce50a2fd509b0ea5cf125 Cr-Commit-Position: refs/heads/master@{#410961}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -20 lines) Patch
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp View 1 chunk +10 lines, -20 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (7 generated)
hajimehoshi
PTAL
4 years, 4 months ago (2016-08-09 08:58:40 UTC) #2
f(malita)
LGTM! This reminds me: now that Aleksandr landed deferred ICO support, we only ever use ...
4 years, 4 months ago (2016-08-09 14:06:14 UTC) #7
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/2225903004/1
4 years, 4 months ago (2016-08-10 05:00:20 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-10 05:03:44 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/9a1a7dc0502f5d16b53ce50a2fd509b0ea5cf125 Cr-Commit-Position: refs/heads/master@{#410961}
4 years, 4 months ago (2016-08-10 05:05:21 UTC) #12
hajimehoshi
Thank you for reviewing. > This reminds me: now that Aleksandr landed deferred ICO support, ...
4 years, 4 months ago (2016-08-10 07:50:38 UTC) #13
f(malita)
On 2016/08/10 07:50:38, hajimehoshi wrote: > Thank you for reviewing. > > > This reminds ...
4 years, 4 months ago (2016-08-10 17:25:00 UTC) #14
hajimehoshi
4 years, 4 months ago (2016-08-12 04:34:07 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2240073002/ by hajimehoshi@chromium.org.

The reason for reverting is: Crash reported at crbug.com/636829.

Powered by Google App Engine
This is Rietveld 408576698