Move SVGResourcesCache::Client{WasAddedTo,WillBeRemovedFrom}Tree calls
Rather than letting the container of the LayoutObject manage the SVGResources, have it manage it itself via InsertedIntoTree() and WillBeRemovedFromTree() overrides. This allows limiting the checks in the called methods a bit since we know what LayoutObjects it's being called on. Bug: 1028063 Change-Id: I54b28336649c6c200dcf4c220fd869fe66770119 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450050Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#814128}
Showing
Please register or sign in to comment