Summary: | Use AtomicString arguments in TrackPrivateBaseClient callbacks | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Brendan Long <b.long> | ||||||
Component: | Media | Assignee: | Brendan Long <b.long> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, eric.carlson, esprehn+autocc, glenn, gyuyoung.kim, jer.noble, philipj, sergio | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Brendan Long
2014-02-13 14:09:33 PST
Created attachment 224108 [details]
Patch
I noticed this while I was writing another patch. id(), label(), language(), m_id, m_label, and m_language in all of the relevant functions are AtomicStrings, but for some reason these callbacks use normal Strings. I thought I read somewhere that converting between String and AtomicString is expensive and should be avoided. Comment on attachment 224108 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=224108&action=review > Source/WebCore/html/track/InbandTextTrack.cpp:61 > + : TextTrack(context, client, AtomicString(), trackPrivate->id(), trackPrivate->label(), trackPrivate->language(), InBand) emptyAtom please. Created attachment 224116 [details]
Patch
Eclipse doesn't like me passing emptyAtom, but apparently it's valid so here we go.
Comment on attachment 224116 [details] Patch Clearing flags on attachment: 224116 Committed r164106: <http://trac.webkit.org/changeset/164106> All reviewed patches have been landed. Closing bug. |