Changeset 87652 in webkit
- Timestamp:
- May 29, 2011 2:28:24 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r87644 r87652 1 2011-05-29 Jer Noble <jer.noble@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 REGRESSION (r86924): webkitRequestFullScreen does not work properly (black screen, can’t interact) 6 https://bugs.webkit.org/show_bug.cgi?id=61710 7 8 When taking the documentElement full screen, we don't create a RenderFullScreen 9 object and thus never enter accelerated compositing mode for the animation. Tell 10 the WKFullScreenWindowController to enter accelerated compositing mode anyway 11 (with an empty layer context) so as to fulfill its expectations and cause the 12 full screen animation to complete. 13 14 * UIProcess/mac/WKFullScreenWindowController.mm: 15 (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Added a 16 comment explaining when we expect the animation to complete. 17 (-[WKFullScreenWindowController enterAcceleratedCompositingMode:WebKit::]): 18 Remove an ASSERT which is no longer valid. 19 * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm: 20 (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation): Tell the UIProcess 21 to enter then exit full-screen mode. 22 (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation): Ditto. 23 1 24 2011-05-29 Darin Adler <darin@apple.com> 2 25 -
trunk/Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm
r87644 r87652 273 273 [self _manager]->didEnterFullScreen(); 274 274 } 275 276 // Complete the animation once -(void)exitCompositingMode is called. 275 277 } 276 278 … … 363 365 if (_layerHostingView) 364 366 return; 365 366 ASSERT(!layerTreeContext.isEmpty());367 367 368 368 // Create an NSView that will host our layer tree. -
trunk/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm
r87456 r87652 191 191 if (!m_rootLayer || m_rootLayer->children().isEmpty()) { 192 192 // If we don't have a root layer, we can't animate in and out of full screen 193 m_page->send(Messages::WebFullScreenManagerProxy::EnterAcceleratedCompositingMode(m_layerTreeContext)); 193 194 this->beganEnterFullScreenAnimation(); 194 195 this->finishedEnterFullScreenAnimation(true); 196 m_page->send(Messages::WebFullScreenManagerProxy::ExitAcceleratedCompositingMode()); 195 197 return; 196 198 } … … 212 214 if (!m_rootLayer || m_rootLayer->children().isEmpty()) { 213 215 // If we don't have a root layer, we can't animate in and out of full screen 216 m_page->send(Messages::WebFullScreenManagerProxy::EnterAcceleratedCompositingMode(m_layerTreeContext)); 214 217 this->beganExitFullScreenAnimation(); 215 218 this->finishedExitFullScreenAnimation(true); 219 m_page->send(Messages::WebFullScreenManagerProxy::ExitAcceleratedCompositingMode()); 216 220 return; 217 221 }
Note: See TracChangeset
for help on using the changeset viewer.