DescriptionFinish font subresource loading of SVG synchronously in SVGImage::dataChanged()
This CL is [4/4] to load FontResource of data: URLs synchronously so that
all subresource loading of SVG image completes before loading of the SVG file.
By [1/4], [2/4] and [3/4], data URLs for fonts can be served synchronously in
Resource::load().
But Resource::load() is not called synchronously in SVGImage::dataChanged(),
because FontLoader schedules loading asynchronously in addFontToBeginLoading().
This CL triggers font loading by calling FontLoader::loadPendingFonts().
Font loading is started and completed synchronously inside loadPendingFonts().
This CL also call FrameLoader::checkCompleted() to make sure
Document::loadEventFinished() becomes true after this call.
This CL adds layout tests to check SVG document's load event is finished before
load event of <img> for SVG files for various data font URLs.
BUG=382170
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Add more tests. #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : Rebase. #Patch Set 8 : Rebase. #Patch Set 9 : auto-Rebase. #Patch Set 10 : auto-Rebase #Depends on Patchset: Messages
Total messages: 42 (23 generated)
|