| Index: Source/core/html/MediaDocument.cpp
|
| diff --git a/Source/core/html/MediaDocument.cpp b/Source/core/html/MediaDocument.cpp
|
| index 4e007c30752e62c1c4bd97ae92bee146181d8f5b..69a110b5d5a786a559f17b665b31f1d1140b954f 100644
|
| --- a/Source/core/html/MediaDocument.cpp
|
| +++ b/Source/core/html/MediaDocument.cpp
|
| @@ -142,11 +142,7 @@ void MediaDocument::defaultEventHandler(Event* event)
|
| KeyboardEvent* keyboardEvent = toKeyboardEvent(event);
|
| if (keyboardEvent->keyIdentifier() == "U+0020" || keyboardEvent->keyCode() == VKEY_MEDIA_PLAY_PAUSE) {
|
| // space or media key (play/pause)
|
| - if (video->paused()) {
|
| - if (video->canPlay())
|
| - video->play();
|
| - } else
|
| - video->pause();
|
| + video->togglePlayState();
|
| event->setDefaultHandled();
|
| }
|
| }
|
|
|