Bug 158264 - SVGImage should honor the existing WebCore::MemoryCache mechanism for throwing away decoded image data on demand
Summary: SVGImage should honor the existing WebCore::MemoryCache mechanism for throwin...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-06-01 09:04 PDT by Said Abou-Hallawa
Modified: 2016-06-01 13:01 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2016-06-01 09:04:43 PDT
SVGImage needs to implement the virtual function SVGImage::destroyDecodedData() which should destroy the DOM and the render trees. It should also be able to create them on demand. Currently it creates them only when all data is received in SVGImage::dataChanged().

The DOM and render trees are purgeable data. They can be rebuilt from the SVGImage encoded data. They take too much memory compared to the encoded data especially when the SVG contains paths or polygons. This implementation should save a lot of memory and allow more SVGImages to be cached.
Comment 1 Said Abou-Hallawa 2016-06-01 09:06:30 PDT
<rdar://problem/26568836>