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

Brendan Long
Reported 2014-02-13 14:09:33 PST
Use AtomicString arguments in TrackPrivateBaseClient callbacks
Attachments
Patch (9.33 KB, patch)
2014-02-13 14:10 PST, Brendan Long
no flags
Patch (9.32 KB, patch)
2014-02-13 15:09 PST, Brendan Long
no flags
Brendan Long
Comment 1 2014-02-13 14:10:37 PST
Brendan Long
Comment 2 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.
Eric Carlson
Comment 3 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.
Brendan Long
Comment 4 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.
WebKit Commit Bot
Comment 5 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>
WebKit Commit Bot
Comment 6 2014-02-14 09:46:23 PST
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.