[Webkit-unassigned] [Bug 22429] document.styleSheets collection ognores media=presentation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 14 12:48:08 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22429


rwlbuis at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #26014|                            |review?
               Flag|                            |




------- Comment #2 from rwlbuis at gmail.com  2008-12-14 12:48 PDT -------
Created an attachment (id=26014)
 --> (https://bugs.webkit.org/attachment.cgi?id=26014&action=view)
First attempt

I think it is not just media="projection", since with any media attribute I try
the sheet ends up in the styleSheets collection. This patch makes an empty
sheet entry to make the styleSheets collection correct. Since they are empty
there are no rules that contribute to the style collection. Obviously there are
speed regressions when encountering media other than all, screen or print, but
I assume these are uncommon. If this is the right approach I'll make some
testcase(s).
Cheers,

Rob.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list