Set SVGExternalDocumentCache::Entry::document_ eagerly in NotifyFinished()
Currently, we lazily initialize document the first time it is requested *and* all of the data is loaded (https://crbug.com/1107442 fixed a case where we would incorrectly initialize the document by creating it before all of the data had been received). It's much clearer to just initialize the document when all of the data is received, and have GetDocument() be a simple getter. Change-Id: I830dca5cc953ca8467fd936f5c783db21cfce051 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316415 Commit-Queue: Nate Chapin <japhet@chromium.org> Reviewed-by:Fredrik Söderquist <fs@opera.com> Reviewed-by:
Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#804325}
Showing
Please register or sign in to comment