Fix the iOS build.
authoradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Nov 2014 23:25:47 +0000 (23:25 +0000)
committeradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Nov 2014 23:25:47 +0000 (23:25 +0000)
* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::pageMutedStateDidChange):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176045 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/Plugins/PluginView.cpp

index 6c1e2c8..4b64ceb 100644 (file)
@@ -1,3 +1,10 @@
+2014-11-12  Ada Chan  <adachan@apple.com>
+
+        Fix the iOS build.
+
+        * WebProcess/Plugins/PluginView.cpp:
+        (WebKit::PluginView::pageMutedStateDidChange):
+
 2014-11-05  Ada Chan  <adachan@apple.com>
 
         Implement new plug-in API for muting plug-ins
index bb1ac10..7100a8f 100644 (file)
@@ -1331,11 +1331,13 @@ void PluginView::mediaCanStart()
 
 void PluginView::pageMutedStateDidChange()
 {
+#if ENABLE(NETSCAPE_PLUGIN_API)
     // The plug-in can be null here if it failed to initialize.
     if (!m_isInitialized || !m_plugin)
         return;
 
     m_plugin->mutedStateChanged(isMuted());
+#endif
 }
 
 bool PluginView::isPluginVisible()