[iOS] Scrubber display is broken if the buffered range is empty
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 May 2015 00:55:03 +0000 (00:55 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 May 2015 00:55:03 +0000 (00:55 +0000)
commitf4e451f84a743786b0430a7473e7f9262120c2ea
tree6a6ec685b171b46f86844663535a8869d9ebc46a
parenteae9e6c6e54335ffce0cac424d997582dd9e9518
[iOS] Scrubber display is broken if the buffered range is empty
https://bugs.webkit.org/show_bug.cgi?id=144511

Reviewed by Eric Carlson.

Make sure that if video.buffered returns an empty list, we
still draw the scrubber background correctly.

* Modules/mediacontrols/mediaControlsiOS.js:
(ControllerIOS.prototype.drawTimelineBackground): Ensure that buffered
is always at least as big as the current time.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js