This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
No need to enterFullscreen() when already in fullscreen
https://bugs.webkit.org/show_bug.cgi?id=128276 Reviewed by Jer Noble. No new tests, this is just cleanup. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::updatePlayState): Don't call enterFullscreen() if already there. (WebCore::HTMLMediaElement::enterFullscreen): Return early if m_isFullscreen is already true. Canonical link: https://commits.webkit.org/146317@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 2 changed files with 17 additions and 2 deletions.