WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
158264
SVGImage should honor the existing WebCore::MemoryCache mechanism for throwing away decoded image data on demand
https://bugs.webkit.org/show_bug.cgi?id=158264
Summary
SVGImage should honor the existing WebCore::MemoryCache mechanism for throwin...
Said Abou-Hallawa
Reported
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2016-06-01 09:06:30 PDT
<
rdar://problem/26568836
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug