Chromium Code Reviews
DescriptionReland "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
TBR=mkwst@chromium.org, yhirano@chromium.org, hajimehoshi@chromium.org
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/+/79706ed327e0b6bb0ac98e7ae50c837fe049cce7
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
|||||||||||||||||||||||||||||||||||||