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

Issue 2175613002: Ensure |m_image| is (re-)created in ImageResource::didAddClient() (Closed)

Created:
4 years, 5 months ago by hiroshige
Modified:
4 years, 5 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2785
Target Ref:
refs/pending/branch-heads/2785
Project:
chromium
Visibility:
Public.

Description

Ensure |m_image| is (re-)created in ImageResource::didAddClient() After ImageResource is pruned, |m_image| can be turned into null, but is not re-created when ResourceClient is added to ImageResource later. We re-create |m_image| when ImageResourceObserver is added in ImageResource::addObserver(). This CL do the same thing in ImageResource::didAddClient() to ensure |m_image| is non-null when ImageResource is reused after pruning. This is regression since ImageResourceClient was split into ResourceClient and ImageResourceObserver but the |m_image| re-creation logic was put only in the ImageResourceObserver path and not in the ResourceClient path: https://codereview.chromium.org/1706083002 https://codereview.chromium.org/1728313003 BUG=618597, 587663 Review-Url: https://codereview.chromium.org/2141843003 Cr-Commit-Position: refs/heads/master@{#405024} (cherry picked from commit d415aad374ad81906840afbf4c05f0594f1f581b) Committed: https://chromium.googlesource.com/chromium/src/+/c2ef272fdddd2608b0aed1ff0eb0c13fa04d4bc4

Patch Set 1 #

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

Messages

Total messages: 5 (1 generated)
hiroshige
Committed patchset #1 (id:1) manually as c2ef272fdddd2608b0aed1ff0eb0c13fa04d4bc4.
4 years, 5 months ago (2016-07-22 05:55:05 UTC) #2
vabr (Chromium)
On 2016/07/22 05:55:05, hiroshige wrote: > Committed patchset #1 (id:1) manually as > c2ef272fdddd2608b0aed1ff0eb0c13fa04d4bc4. Hi, ...
4 years, 5 months ago (2016-07-22 08:47:50 UTC) #3
hiroshige
On 2016/07/22 08:47:50, vabr (Chromium) wrote: > On 2016/07/22 05:55:05, hiroshige wrote: > > Committed ...
4 years, 5 months ago (2016-07-22 08:48:33 UTC) #4
vabr (Chromium)
4 years, 5 months ago (2016-07-22 09:04:26 UTC) #5
Message was sent while issue was closed.
On 2016/07/22 08:48:33, hiroshige wrote:
> On 2016/07/22 08:47:50, vabr (Chromium) wrote:
> > On 2016/07/22 05:55:05, hiroshige wrote:
> > > Committed patchset #1 (id:1) manually as
> > > c2ef272fdddd2608b0aed1ff0eb0c13fa04d4bc4.
> > 
> > Hi, your merge seems to have broken compilation on beta builders. I'll
revert
> > the merge soon, please contact me asap if you have other plans.
> > 
> > Cheers,
> > Vaclav
> 
> Already reverted (Issue 630531).

Thank you! :)

Powered by Google App Engine
This is Rietveld 408576698