• tzik's avatar
    Add external deleter support to WTF::RefCounted · b0acad58
    tzik authored
    NGPhysicalFragment needs special handling on the destruction
    rather than being destroyed by WTF::RefCounted. However, existing
    style of the destruction hook will be unavailable after unifying
    base::RefCounted and WTF::RefCounted.
    
    This CL adds a proper way to inject the destruction function of a
    ref counted object. The destruction function will be injected to
    base::RefCounted after the unification.
    
    Bug: 763844
    Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
    Change-Id: If763525a55c4621abd711a16a531817528a42b69
    Reviewed-on: https://chromium-review.googlesource.com/681955Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#504365}
    b0acad58
WebPrivatePtr.h 10.1 KB