Summary: | Stylesheet wrappers are not GC protected | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||
Component: | CSS | Assignee: | Alexey Proskuryakov <ap> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, eric, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Alexey Proskuryakov
2010-11-18 14:59:23 PST
Created attachment 74303 [details]
proposed fix
Comment on attachment 74303 [details]
proposed fix
From a GC footprint perspective, the approach here isn't ideal, since, as you say in your FIXME, we might artificially keep alive style wrappers we could have thrown away.
However, I expect that the set of all style-related DOM nodes in a document is quite small in practice -- and often these nodes aren't even wrapped by JS -- so in these cases I think this approach is fine.
Committed <http://trac.webkit.org/changeset/72344>. http://trac.webkit.org/changeset/72344 might have broken SnowLeopard Intel Release (Tests) The following tests are not passing: fast/dom/prototype-inheritance-2.html A subtest changed from FAIL to PASS there. Probably for a good reason, but maybe not, hard to tell with those mega-tests. |