Signal document move to ImageLoader before attempting to load the image
In the DidMoveToNewDocument() override in HTMLImageElement and SVGImageElement, initiate the load as the last thing rather than the first, since ImageLoader::ElementDidMoveToNewDocument() will clear out the image content, thus requiring a new load to take place later on (when the element gets the "inserted into document" callback). Bug: 1000273 Change-Id: I977d63bb8e14d7f8fbd1e7004b788d09b7b897fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789394Reviewed-by:Hiroshige Hayashizaki <hiroshige@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#706892}
Showing
Please register or sign in to comment