Oilpan: Delay frameDetached() so it won't dispatch event inside ~SVGImage
This CL moves frameDetached() call outside of ~SVGImage. Oilpan disallows any heap-allocated object creation inside destructors. SVGImageChromeClient and Page to be deleted are queued to DelayedSVGImageDestructor singleton, and oneshot timer is invoked to call |frameDetached| outside of destructor scope. TESTS=svg/ (w/ enable_oilpan=1) BUG=None NOTRY=true Review URL: https://codereview.chromium.org/185613003 git-svn-id: svn://svn.chromium.org/blink/trunk@168612 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment