[Webkit-unassigned] [Bug 30907] Web Inspector: Rewrite CSSSourceSyntaxHighlighter so it shares more code

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 1 21:04:51 PST 2009


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


Timothy Hatcher <timothy at hatcher.name> changed:

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




--- Comment #5 from Timothy Hatcher <timothy at hatcher.name>  2009-11-01 21:04:50 PDT ---
(From update of attachment 42293)
propertyKeywords, valueKeywords, mediaTypes and keywords should be objects with
properties not arrays. That way it is fast to look up.

So:

const mediaTypes = {"all": true, "aural": true, "braille": true, "embossed":
true, "handheld": true, "print": true, "projection": true, "screen": true,
"tty": true, "tv": true};

And test like:

token in mediaTypes

-- 
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