Bug 125481 - Clear out font width measurement caches on memory pressure.
Summary: Clear out font width measurement caches on memory pressure.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-09 21:06 PST by Andreas Kling
Modified: 2013-12-09 21:54 PST (History)
1 user (show)

See Also:


Attachments
Patch (2.35 KB, patch)
2013-12-09 21:07 PST, Andreas Kling
koivisto: review+
Details | Formatted Diff | Diff
Lander (2.23 KB, patch)
2013-12-09 21:21 PST, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2013-12-09 21:06:06 PST
WidthCache should be jettisoned on memory pressure signal as it's inessential and can be regenerated.
Comment 1 Andreas Kling 2013-12-09 21:07:03 PST
Created attachment 218827 [details]
Patch
Comment 2 Antti Koivisto 2013-12-09 21:09:33 PST
Comment on attachment 218827 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=218827&action=review

> Source/WebCore/platform/graphics/Font.cpp:219
> +void invalidateWidthCachesInFontGlyphsCache()

Maybe just clearWidthCaches?
Comment 3 Andreas Kling 2013-12-09 21:21:31 PST
Created attachment 218830 [details]
Lander
Comment 4 WebKit Commit Bot 2013-12-09 21:54:55 PST
Comment on attachment 218830 [details]
Lander

Clearing flags on attachment: 218830

Committed r160349: <http://trac.webkit.org/changeset/160349>
Comment 5 WebKit Commit Bot 2013-12-09 21:54:57 PST
All reviewed patches have been landed.  Closing bug.