Bug 128765

Summary: Use AtomicString arguments in TrackPrivateBaseClient callbacks
Product: WebKit Reporter: Brendan Long <b.long>
Component: MediaAssignee: 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 Flags
Patch
none
Patch none

Description Brendan Long 2014-02-13 14:09:33 PST
Use AtomicString arguments in TrackPrivateBaseClient callbacks
Comment 1 Brendan Long 2014-02-13 14:10:37 PST
Created attachment 224108 [details]
Patch
Comment 2 Brendan Long 2014-02-13 14:12:27 PST
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 3 Eric Carlson 2014-02-13 14:26:53 PST
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.
Comment 4 Brendan Long 2014-02-13 15:09:06 PST
Created attachment 224116 [details]
Patch

Eclipse doesn't like me passing emptyAtom, but apparently it's valid so here we go.
Comment 5 WebKit Commit Bot 2014-02-14 09:46:21 PST
Comment on attachment 224116 [details]
Patch

Clearing flags on attachment: 224116

Committed r164106: <http://trac.webkit.org/changeset/164106>
Comment 6 WebKit Commit Bot 2014-02-14 09:46:23 PST
All reviewed patches have been landed.  Closing bug.