Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(916)

Unified Diff: third_party/WebKit/WebCore/rendering/RenderPartObject.cpp

Issue 46097: WebKit merge 41660:41709 (WebKit side).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/WebCore/rendering/RenderPartObject.cpp
===================================================================
--- third_party/WebKit/WebCore/rendering/RenderPartObject.cpp (revision 11711)
+++ third_party/WebKit/WebCore/rendering/RenderPartObject.cpp (working copy)
@@ -132,10 +132,17 @@
static inline bool shouldUseEmbedDescendant(HTMLObjectElement* objectElement, const PluginData* pluginData)
{
+#if PLATFORM(MAC)
+ UNUSED_PARAM(objectElement);
+ UNUSED_PARAM(pluginData);
+ // On Mac, we always want to use the embed descendant.
+ return true;
+#else
// If we have both an <object> and <embed>, we always want to use the <embed> except when we have
// an ActiveX plug-in and plan to use it.
return !(havePlugin(pluginData, activeXType())
&& serviceTypeForClassId(objectElement->classId(), pluginData) == activeXType());
+#endif
}
void RenderPartObject::updateWidget(bool onlyCreateNonNetscapePlugins)

Powered by Google App Engine
This is Rietveld 408576698