Changeset 201233 in webkit


Ignore:
Timestamp:
May 20, 2016, 4:46:06 PM (9 years ago)
Author:
jer.noble@apple.com
Message:

Inconsistent state in playback controls
https://bugs.webkit.org/show_bug.cgi?id=157962
<rdar://problem/26397571>

Reviewed by Beth Dakin.

Do not use the playbackSessionManager() as the model, that's what the model is for.

  • platform/mac/WebPlaybackSessionInterfaceMac.mm:

(WebCore::WebPlaybackSessionInterfaceMac::setClient):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r201232 r201233  
     12016-05-20  Jer Noble  <jer.noble@apple.com>
     2
     3        Inconsistent state in playback controls
     4        https://bugs.webkit.org/show_bug.cgi?id=157962
     5        <rdar://problem/26397571>
     6
     7        Reviewed by Beth Dakin.
     8
     9        Do not use the playbackSessionManager() as the model, that's what the model is for.
     10
     11        * platform/mac/WebPlaybackSessionInterfaceMac.mm:
     12        (WebCore::WebPlaybackSessionInterfaceMac::setClient):
     13
    1142016-05-20  Brady Eidson  <beidson@apple.com>
    215
  • trunk/Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm

    r200490 r201233  
    5959    m_client = client;
    6060
    61     if (m_client) {
    62         float rate = [playBackControlsManager() rate];
    63         m_client->rateChanged(!!rate, rate);
    64     }
     61    if (m_client && m_playbackSessionModel)
     62        m_client->rateChanged(m_playbackSessionModel->isPlaying(), m_playbackSessionModel->playbackRate());
    6563}
    6664
Note: See TracChangeset for help on using the changeset viewer.