46 bytes, text/x-phabricator-request
|Details | Review|
It looks like we always allocate an AuthorStyles in the ShadowRoot constructor. In the case of <svg:use>, we don't do anything with stylesheets in the shadow tree, so the AuthorStyles there is unused. In fact, maybe we should consider allocating AuthorStyles lazily in general, for all the cases when shadow trees don't have styles inside them.
Created attachment 9005065 [details] Make the allocation of AuthorStyles for ShadowRoot lazy. So that we don't waste a bunch of memory with stuff like <svg:use>. I plan to shrink AuthorStyles further, but this should help regardless, and isn't very complex.
Assignee: nobody → emilio
Comment on attachment 9005065 [details] Make the allocation of AuthorStyles for ShadowRoot lazy. Xidorn Quan [:xidorn] UTC+10 has approved the revision.
Attachment #9005065 - Flags: review+
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/94b793d95409 Make the allocation of AuthorStyles for ShadowRoot lazy. r=xidorn,firefox-style-system-reviewers
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/752786e0dd01 followup: Add a missing check. r=me
Status: NEW → RESOLVED
Last Resolved: 4 months ago
status-firefox63: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.