RESOLVED FIXED Bug 123648
Removing MediaStreamTrackVector and MediaStreamSourceVector typedefs
https://bugs.webkit.org/show_bug.cgi?id=123648
Summary Removing MediaStreamTrackVector and MediaStreamSourceVector typedefs
Thiago de Barros Lacerda
Reported 2013-11-01 16:58:45 PDT
Talking with Eric Carlson we agreed that those reduce code readability.
Attachments
Patch (19.92 KB, patch)
2013-11-01 17:05 PDT, Thiago de Barros Lacerda
no flags
Patch (19.87 KB, patch)
2013-11-01 18:27 PDT, Thiago de Barros Lacerda
no flags
Thiago de Barros Lacerda
Comment 1 2013-11-01 17:05:30 PDT
Eric Carlson
Comment 2 2013-11-01 18:02:45 PDT
Comment on attachment 215781 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=215781&action=review This looks good, thanks for doing it! r=me, but it looks like it needs to be rebased so I listed a couple of drive-by changes you might make. > Source/WebCore/Modules/mediastream/MediaStream.cpp:137 > +void MediaStream::cloneMediaStreamTrackVector(Vector<RefPtr<MediaStreamTrack>>& destination, const Vector<RefPtr<MediaStreamTrack>>& origin) Nit: while you are here, can you change "origin" to "source"? > Source/WebCore/Modules/mediastream/MediaStream.cpp:219 > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_audioTracks.begin(); iter != m_audioTracks.end(); ++iter) { Nit: while you are here, can you fix this to use "auto"? > Source/WebCore/Modules/mediastream/MediaStream.cpp:226 > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_videoTracks.begin(); iter != m_videoTracks.end(); ++iter) { Ditto. > Source/WebCore/Modules/mediastream/MediaStream.cpp:236 > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_audioTracks.begin(); iter != m_audioTracks.end(); ++iter) { Ditto. > Source/WebCore/Modules/mediastream/MediaStream.cpp:241 > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_videoTracks.begin(); iter != m_videoTracks.end(); ++iter) { Ditto. > Source/WebCore/Modules/mediastream/UserMediaRequest.cpp:169 > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = tracks.begin(); iter != tracks.end(); ++iter) Ditto. > Source/WebCore/Modules/mediastream/UserMediaRequest.cpp:173 > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = tracks.begin(); iter != tracks.end(); ++iter) Ditto.
Thiago de Barros Lacerda
Comment 3 2013-11-01 18:03:52 PDT
(In reply to comment #2) > (From update of attachment 215781 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=215781&action=review > > This looks good, thanks for doing it! > > r=me, but it looks like it needs to be rebased so I listed a couple of drive-by changes you might make. > > > Source/WebCore/Modules/mediastream/MediaStream.cpp:137 > > +void MediaStream::cloneMediaStreamTrackVector(Vector<RefPtr<MediaStreamTrack>>& destination, const Vector<RefPtr<MediaStreamTrack>>& origin) > > Nit: while you are here, can you change "origin" to "source"? > > > Source/WebCore/Modules/mediastream/MediaStream.cpp:219 > > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_audioTracks.begin(); iter != m_audioTracks.end(); ++iter) { > > Nit: while you are here, can you fix this to use "auto"? > > > Source/WebCore/Modules/mediastream/MediaStream.cpp:226 > > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_videoTracks.begin(); iter != m_videoTracks.end(); ++iter) { > > Ditto. > > > Source/WebCore/Modules/mediastream/MediaStream.cpp:236 > > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_audioTracks.begin(); iter != m_audioTracks.end(); ++iter) { > > Ditto. > > > Source/WebCore/Modules/mediastream/MediaStream.cpp:241 > > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = m_videoTracks.begin(); iter != m_videoTracks.end(); ++iter) { > > Ditto. > > > Source/WebCore/Modules/mediastream/UserMediaRequest.cpp:169 > > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = tracks.begin(); iter != tracks.end(); ++iter) > > Ditto. > > > Source/WebCore/Modules/mediastream/UserMediaRequest.cpp:173 > > + for (Vector<RefPtr<MediaStreamTrack>>::iterator iter = tracks.begin(); iter != tracks.end(); ++iter) > > Ditto. OK for all
Thiago de Barros Lacerda
Comment 4 2013-11-01 18:27:48 PDT
WebKit Commit Bot
Comment 5 2013-11-01 19:11:29 PDT
Comment on attachment 215791 [details] Patch Clearing flags on attachment: 215791 Committed r158480: <http://trac.webkit.org/changeset/158480>
WebKit Commit Bot
Comment 6 2013-11-01 19:11:31 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.