Bug 140400 - Downloading web fonts causes unnecessary font invalidation
Summary: Downloading web fonts causes unnecessary font invalidation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 11:43 PST by Myles C. Maxfield
Modified: 2015-01-13 11:43 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2015-01-13 11:43:05 PST
Every time a web font is downloaded, it calls CSSFontSelector::dispatchInvalidationCallbacks(), which increments m_version. This, in addition to RenderStyle::setFontDescription() always creating new Font objects, means that every time a web font finishes downloading, we throw out everything we know about fonts and regenerate everything.