RESOLVED FIXED 138202
Optimize HTMLVideoElement / HTMLAudioElement type checks a bit
https://bugs.webkit.org/show_bug.cgi?id=138202
Summary Optimize HTMLVideoElement / HTMLAudioElement type checks a bit
Chris Dumez
Reported 2014-10-29 17:46:22 PDT
Optimize HTMLVideoElement / HTMLAudioElement type checks a bit by: 1. using is<HTMLMediaElement>() instead of is<HTMLVideoElement>() || is<HTMLAudioElement>() if the caller is interested in both video and audio elements 2. Updating HTMLVideoElement / HTMLAudioElement type traits specialization to avoid doing an isHTMLUnknownElement() check if the input type is an HTMLMediaElement (which is common in the code base)
Attachments
Patch (8.09 KB, patch)
2014-10-29 19:54 PDT, Chris Dumez
no flags
Patch (8.66 KB, patch)
2014-10-29 20:02 PDT, Chris Dumez
no flags
Patch (8.88 KB, patch)
2014-10-29 20:07 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2014-10-29 19:54:16 PDT
Chris Dumez
Comment 2 2014-10-29 20:02:10 PDT
Chris Dumez
Comment 3 2014-10-29 20:07:23 PDT
WebKit Commit Bot
Comment 4 2014-10-30 14:25:32 PDT
Comment on attachment 240653 [details] Patch Clearing flags on attachment: 240653 Committed r175380: <http://trac.webkit.org/changeset/175380>
WebKit Commit Bot
Comment 5 2014-10-30 14:25:36 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.