Changeset 254607 in webkit
- Timestamp:
- Jan 15, 2020, 11:15:34 AM (7 years ago)
- Location:
- branches/safari-609-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/cocoa/VideoFullscreenManager.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-609-branch/Source/WebKit/ChangeLog
r254604 r254607 1 2020-01-14 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r254287. rdar://problem/58552886 4 5 Fullscreen videos do not enter PiP in first tap 6 https://bugs.webkit.org/show_bug.cgi?id=205986 7 8 Reviewed by Eric Carlson. 9 10 This patch essentially reverts the fix for webkit.org/b/204461. 11 The fix for webkit.org/b/204461 depends on a fix in AVKit along 12 with a corresponding update in WebKit (webkit.org/b/204979). 13 We will need to reapply the fix for webkit.org/b/204461 after they are landed. 14 15 * WebProcess/cocoa/VideoFullscreenManager.mm: 16 (WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement): 17 (WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement): 18 19 20 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254287 268f45cc-cd09-0410-ab3c-d52691b4dbfc 21 22 2020-01-09 Peng Liu <peng.liu6@apple.com> 23 24 Fullscreen videos do not enter PiP in first tap 25 https://bugs.webkit.org/show_bug.cgi?id=205986 26 27 Reviewed by Eric Carlson. 28 29 This patch essentially reverts the fix for webkit.org/b/204461. 30 The fix for webkit.org/b/204461 depends on a fix in AVKit along 31 with a corresponding update in WebKit (webkit.org/b/204979). 32 We will need to reapply the fix for webkit.org/b/204461 after they are landed. 33 34 * WebProcess/cocoa/VideoFullscreenManager.mm: 35 (WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement): 36 (WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement): 37 1 38 2020-01-14 Alan Coon <alancoon@apple.com> 2 39 -
branches/safari-609-branch/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm
r252755 r254607 250 250 auto [model, interface] = ensureModelAndInterface(contextId); 251 251 HTMLMediaElementEnums::VideoFullscreenMode oldMode = interface->fullscreenMode(); 252 if (oldMode == mode)253 return;254 252 255 253 addClientForContext(contextId); … … 300 298 uint64_t contextId = m_videoElements.get(&videoElement); 301 299 auto& interface = ensureInterface(contextId); 302 HTMLMediaElementEnums::VideoFullscreenMode oldMode = interface.fullscreenMode();303 if (oldMode == HTMLMediaElementEnums::VideoFullscreenModeNone)304 return;305 306 300 interface.setTargetIsFullscreen(false); 307 308 301 if (interface.animationState() != VideoFullscreenInterfaceContext::AnimationType::None) 309 302 return; 303 310 304 interface.setAnimationState(VideoFullscreenInterfaceContext::AnimationType::FromFullscreen); 311 305 m_page->send(Messages::VideoFullscreenManagerProxy::ExitFullscreen(contextId, inlineVideoFrame(videoElement)));
Note:
See TracChangeset
for help on using the changeset viewer.