[Webkit-unassigned] [Bug 97504] Don't use StyleSheetList internally
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 24 20:50:12 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=97504
--- Comment #4 from Antti Koivisto <koivisto at iki.fi> 2012-09-24 20:50:39 PST ---
(In reply to comment #2)
> So now we wouldn't create StyleSheetList until it's used by scripts? I think that should be explained in the change log.
> Doesn't this imply that if the author did
> document.styleSheets.foo = 'bar';
> gc(); // Force GC here.
> alert(document.styleSheets.foo); // would give us "undefined"?
No since document refs the StyleSheetList and always returns the same instance after initial construction. There shouldn't be any externally observable changes.
> Why do we not want to swap?
Good point, I forgot Vector has swap() too.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list