Changeset 209746 in webkit
- Timestamp:
- Dec 12, 2016, 4:37:40 PM (9 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r209733 r209746 1 2016-12-12 Alex Christensen <achristensen@webkit.org> 2 3 Remove unused workaround for Silverlight 4 https://bugs.webkit.org/show_bug.cgi?id=165773 5 6 Reviewed by Dean Jackson. 7 8 * Plugins/WebNetscapePluginView.mm: 9 (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]): Deleted. 10 This code was introduced in January 2010. Microsoft fixed their bug shortly thereafter. 11 Allowing 6 years for users to update Silverlight is more than enough. 12 Safari doesn't even use WebKit1 for this any more. 13 I need this to be removed because this is the only non-WebGL code that needs to link against 14 the OpenGL framework, and I'm changing how that is done to link only through ANGLE instead. 15 1 16 2016-12-12 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebKit/mac/Plugins/WebNetscapePluginView.mm
r209683 r209746 87 87 #define LoginWindowDidSwitchToUserNotification @"WebLoginWindowDidSwitchToUserNotification" 88 88 #define WKNVSupportsCompositingCoreAnimationPluginsBool 74656 /* TRUE if the browser supports hardware compositing of Core Animation plug-ins */ 89 static const int WKNVSilverlightFullscreenPerformanceIssueFixed = 7288546; /* TRUE if Siverlight addressed its underlying bug in <rdar://problem/7288546> */90 89 91 90 using namespace WebCore; … … 2237 2236 } 2238 2237 2239 // Work around Silverlight full screen performance issue by maintaining an accelerated GL pixel format.2240 // We can safely remove it at some point in the future when both:2241 // 1) Microsoft releases a genuine fix for 7288546.2242 // 2) Enough Silverlight users update to the new Silverlight.2243 // For now, we'll distinguish older broken versions of Silverlight by asking the plug-in if it resolved its full screen badness.2244 - (void)_workaroundSilverlightFullscreenBug:(BOOL)initializedPlugin2245 {2246 ASSERT(_isSilverlight);2247 NPBool isFullscreenPerformanceIssueFixed = 0;2248 NPPluginFuncs *pluginFuncs = [_pluginPackage.get() pluginFuncs];2249 if (pluginFuncs->getvalue && pluginFuncs->getvalue(plugin, static_cast<NPPVariable>(WKNVSilverlightFullscreenPerformanceIssueFixed), &isFullscreenPerformanceIssueFixed) == NPERR_NO_ERROR && isFullscreenPerformanceIssueFixed)2250 return;2251 2252 static CGLPixelFormatObj pixelFormatObject = 0;2253 static unsigned refCount = 0;2254 2255 if (initializedPlugin) {2256 refCount++;2257 if (refCount == 1) {2258 const CGLPixelFormatAttribute attributes[] = { kCGLPFAAccelerated, static_cast<CGLPixelFormatAttribute>(0) };2259 GLint npix;2260 CGLChoosePixelFormat(attributes, &pixelFormatObject, &npix);2261 }2262 } else {2263 ASSERT(pixelFormatObject);2264 refCount--;2265 if (!refCount)2266 CGLReleasePixelFormat(pixelFormatObject);2267 }2268 }2269 2270 2238 - (NPError)_createPlugin 2271 2239 { … … 2284 2252 NPError npErr = [_pluginPackage.get() pluginFuncs]->newp((char *)[_MIMEType.get() cString], plugin, _mode, argsCount, cAttributes, cValues, NULL); 2285 2253 [[self class] setCurrentPluginView:nil]; 2286 if (_isSilverlight)2287 [self _workaroundSilverlightFullscreenBug:YES];2288 2254 LOG(Plugins, "NPP_New: %d", npErr); 2289 2255 return npErr; … … 2292 2258 - (void)_destroyPlugin 2293 2259 { 2294 if (_isSilverlight)2295 [self _workaroundSilverlightFullscreenBug:NO];2296 2297 2260 NPError npErr; 2298 2261 npErr = ![_pluginPackage.get() pluginFuncs]->destroy(plugin, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.