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

Issue 2905833003: Make Image::image_observer_ WeakPersistent (Closed)

Created:
3 years, 7 months ago by hiroshige
Modified:
3 years, 6 months ago
CC:
fs, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, gyuyoung2, Justin Novosad, kinuko+watch, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Image::image_observer_ WeakPersistent |image_observer_| was made UntracedMember during Oilpanization in [1], and this CL turns it WeakPersistent, to clear |image_observer_| when the corresponding ImageResourceContent is garbage collected while Image is still alive because the Image is referenced from other than ImageResourceContent. This CL also add null checks of GetImageObserver() to SVG-related code, because GetImageObserver() can be null since before. [1] https://codereview.chromium.org/1610883002 BUG=726220 Review-Url: https://codereview.chromium.org/2905833003 Cr-Commit-Position: refs/heads/master@{#475116} Committed: https://chromium.googlesource.com/chromium/src/+/e056249f434f9ccca8024246ebb879d225b9f55a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Reflect comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -5 lines) Patch
A third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html View 1 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.h View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
hiroshige
PTAL, sof@ and haraken@, as the author and reviewer of https://codereview.chromium.org/1610883002 that made image_observer_ UntracedMember ...
3 years, 7 months ago (2017-05-25 22:03:34 UTC) #7
haraken
LGTM https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp File third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp (right): https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode120 third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp:120: // this explicit lifetime check. Is it still ...
3 years, 7 months ago (2017-05-25 23:23:02 UTC) #10
hiroshige
https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp File third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp (right): https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode120 third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp:120: // this explicit lifetime check. On 2017/05/25 23:23:02, haraken ...
3 years, 7 months ago (2017-05-26 00:03:27 UTC) #11
kinuko
I'm probably not the best reviewer in this area, while the change itself looks pretty ...
3 years, 7 months ago (2017-05-26 04:44:19 UTC) #14
haraken
On 2017/05/26 00:03:27, hiroshige wrote: > https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp > File third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp > (right): > > https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode120 ...
3 years, 7 months ago (2017-05-26 04:48:01 UTC) #15
fs
https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html File third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html (right): https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html#newcode30 third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html:30: setTimeout(t.step_func_done(function() {}), 100); Nit: Don't need an empty function ...
3 years, 7 months ago (2017-05-26 08:28:36 UTC) #16
kouhei (in TOK)
lgtm % fs comment
3 years, 7 months ago (2017-05-26 11:17:17 UTC) #17
hiroshige
https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html File third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html (right): https://codereview.chromium.org/2905833003/diff/1/third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html#newcode30 third_party/WebKit/LayoutTests/svg/as-image/adopt-while-async-svg-load-is-in-progress-crash.html:30: setTimeout(t.step_func_done(function() {}), 100); On 2017/05/26 08:28:36, fs wrote: > ...
3 years, 6 months ago (2017-05-26 18:44:58 UTC) #20
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/2905833003/20001
3 years, 6 months ago (2017-05-26 18:46:47 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 20:43:58 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e056249f434f9ccca8024246ebb8...

Powered by Google App Engine
This is Rietveld 408576698