Bug 154634
Summary: | FontCascadeFonts should downgrade its Ref<FontSelector> to a WeakPtr | ||
---|---|---|---|
Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
Component: | Text | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | mmaxfield |
Priority: | P2 | ||
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 153346 |
Myles C. Maxfield
After the document is destroyed, it doesn't make any sense for a font to extend the lifetime of the font selector.
Once this is done, CSSFontSelector can probably be a std::unique_ptr or even a raw member variable of Document.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
This should be done for all references to a FontSelector, except for the Document's.