RESOLVED FIXED 136884
Remove unused methods from MediaPlayerClient
https://bugs.webkit.org/show_bug.cgi?id=136884
Summary Remove unused methods from MediaPlayerClient
Carlos Garcia Campos
Reported 2014-09-17 03:36:34 PDT
It seems that some of the methods that introduce dependencies on WebCore types are actually unused.
Attachments
Patch (4.53 KB, patch)
2014-09-17 03:39 PDT, Carlos Garcia Campos
eric.carlson: review+
Carlos Garcia Campos
Comment 1 2014-09-17 03:39:09 PDT
Eric Carlson
Comment 2 2014-09-17 12:19:18 PDT
Comment on attachment 238247 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=238247&action=review > Source/WebCore/html/HTMLMediaElement.cpp:5664 > IntRect HTMLMediaElement::mediaPlayerWindowClipRect() > { > - return mediaPlayerOwningDocument()->view()->windowClipRect(); > + return document().view()->windowClipRect(); > } It looks like this can be removed from here and MediaPlayerClient, it isn't called by MediaPlayer.
Carlos Garcia Campos
Comment 3 2014-09-18 04:16:38 PDT
Carlos Garcia Campos
Comment 4 2014-09-18 04:17:26 PDT
(In reply to comment #2) > (From update of attachment 238247 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=238247&action=review > > > Source/WebCore/html/HTMLMediaElement.cpp:5664 > > IntRect HTMLMediaElement::mediaPlayerWindowClipRect() > > { > > - return mediaPlayerOwningDocument()->view()->windowClipRect(); > > + return document().view()->windowClipRect(); > > } > > It looks like this can be removed from here and MediaPlayerClient, it isn't called by MediaPlayer. Right, removed it as well. Thanks for the review.
Note You need to log in before you can comment on or make changes to this bug.