• mitz@apple.com's avatar
    Made the remaining time display show negative zero at the end of the · 12da8133
    mitz@apple.com authored
    video.
    
    Reviewed by Anders Carlsson.
    
    Made other cleanup.
    
    * WebView/WebVideoFullscreenHUDWindowController.h: Reverted the types of
    _timeline and _volumeSlider to the more generic NSControl.
    * WebView/WebVideoFullscreenHUDWindowController.mm:
    (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Cleaned
    up style.
    (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Added an
    assertion that the cast to NSButton * is legal. Removed casts.
    (-[WebVideoFullscreenHUDWindowController updateTime]): Use
    -setValue:forKey: instead of an NSSlider method.
    (timeToString): Changed to support only non-negative values and
    simplified.
    (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Always
    prepend a “-” to the time.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    12da8133
ChangeLog 850 KB