Changeset 83624 in webkit
- Timestamp:
- Apr 12, 2011 12:45:15 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r83623 r83624 1 2011-04-12 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Call PluginControllerProxy::platformGeometryDidChange before Plugin::geometryDidChange 6 https://bugs.webkit.org/show_bug.cgi?id=58361 7 8 Since Plugin::geometryDidChange ends up calling plug-in code it can resize the plug-in which causes 9 platformGeometryDidChange to be called with the wrong rect. 10 11 * PluginProcess/PluginControllerProxy.cpp: 12 (WebKit::PluginControllerProxy::geometryDidChange): 13 Call platformGeometryDidChange. 14 15 * PluginProcess/PluginControllerProxy.h: 16 * PluginProcess/mac/PluginControllerProxyMac.mm: 17 (WebKit::PluginControllerProxy::platformGeometryDidChange): 18 Remove the parameters to platformGeometryDidChange and just use m_frameRect instead. 19 1 20 2011-04-12 Anders Carlsson <andersca@apple.com> 2 21 -
trunk/Source/WebKit2/PluginProcess/PluginControllerProxy.cpp
r83623 r83624 368 368 ASSERT(m_plugin); 369 369 370 platformGeometryDidChange(); 371 370 372 if (!backingStoreHandle.isNull()) { 371 373 // Create a new backing store. … … 374 376 375 377 m_plugin->geometryDidChange(frameRect, clipRect); 376 377 platformGeometryDidChange(frameRect, clipRect);378 378 } 379 379 -
trunk/Source/WebKit2/PluginProcess/PluginControllerProxy.h
r83622 r83624 138 138 void platformInitialize(); 139 139 void platformDestroy(); 140 void platformGeometryDidChange( const WebCore::IntRect& frameRect, const WebCore::IntRect& clipRect);140 void platformGeometryDidChange(); 141 141 142 142 WebProcessConnection* m_connection; -
trunk/Source/WebKit2/PluginProcess/mac/PluginControllerProxyMac.mm
r83623 r83624 68 68 } 69 69 70 void PluginControllerProxy::platformGeometryDidChange( const IntRect& frameRect, const IntRect&)70 void PluginControllerProxy::platformGeometryDidChange() 71 71 { 72 72 CALayer * pluginLayer = m_plugin->pluginLayer(); … … 75 75 [CATransaction begin]; 76 76 [CATransaction setValue:[NSNumber numberWithBool:YES] forKey:kCATransactionDisableActions]; 77 [pluginLayer setFrame:CGRectMake(0, 0, frameRect.width(),frameRect.height())];77 [pluginLayer setFrame:CGRectMake(0, 0, m_frameRect.width(), m_frameRect.height())]; 78 78 [CATransaction commit]; 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.