1,295
edits
No edit summary |
|||
Line 49: | Line 49: | ||
We'll be more tied to platform text performance. | We'll be more tied to platform text performance. | ||
We should explore some mechanism for caching the Thebes text layout object in nsTextFrame (which would allow caching of underlying Pango/Uniscribe/ATSUI/font resources). A simple mechanism would be to put the cache in Thebes itself, and use nsTextFrame pointers as abstract keys. When an nsTextFrame was modified, changed style, or destroyed, it would notify Thebes to invalidate any cache entry with that key. We almost certainly don't want to keep a text layout object in every text frame. | We should explore some mechanism for caching the Thebes text layout object in nsTextFrame (which would allow caching of underlying Pango/Uniscribe/ATSUI/font resources). A simple mechanism would be to put the cache in Thebes itself, and use nsTextFrame pointers as abstract keys. When an nsTextFrame was modified, changed style, or destroyed, it would notify Thebes to invalidate any cache entry with that key. We almost certainly don't want to keep a text layout object in every text frame, and the best cache management policy is probably very platform-specific. |
edits