Fix build with VIDEO support disabled.
authormrajca@apple.com <mrajca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Jul 2017 21:22:48 +0000 (21:22 +0000)
committermrajca@apple.com <mrajca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Jul 2017 21:22:48 +0000 (21:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=174217

Unreviewed build fix.

Source/WebCore:

* page/Page.cpp:

Source/WebKit2:

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updateWebsitePolicies):

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

Source/WebCore/ChangeLog
Source/WebCore/page/Page.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/WebPage.cpp

index 4036ad3..2ff2aa5 100644 (file)
@@ -1,3 +1,12 @@
+2017-07-06  Matt Rajca  <mrajca@apple.com>
+
+        Fix build with VIDEO support disabled.
+        https://bugs.webkit.org/show_bug.cgi?id=174217
+
+        Unreviewed build fix.
+
+        * page/Page.cpp:
+
 2017-07-06  Matt Lewis  <jlewis3@apple.com>
 
         Unreviewed, rolling out r219193.
index 207d860..bdf3ffe 100644 (file)
@@ -993,11 +993,13 @@ void Page::setUserInterfaceLayoutDirection(UserInterfaceLayoutDirection userInte
 #endif
 }
 
+#if ENABLE(VIDEO)
 void Page::updateMediaElementRateChangeRestrictions()
 {
     for (auto* mediaElement : HTMLMediaElement::allMediaElements())
         mediaElement->updateRateChangeRestrictions();
 }
+#endif
 
 void Page::didStartProvisionalLoad()
 {
index c1485c7..4e57652 100644 (file)
@@ -1,3 +1,13 @@
+2017-07-06  Matt Rajca  <mrajca@apple.com>
+
+        Fix build with VIDEO support disabled.
+        https://bugs.webkit.org/show_bug.cgi?id=174217
+
+        Unreviewed build fix.
+
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::updateWebsitePolicies):
+
 2017-07-06  Chris Dumez  <cdumez@apple.com>
 
         Crash under WebResourceLoadStatisticsStore::persistentStoragePath(WTF::String const&)
index d5ce3f1..51d877b 100644 (file)
@@ -5634,7 +5634,10 @@ void WebPage::updateWebsitePolicies(const WebsitePolicies& websitePolicies)
         return;
 
     documentLoader->setAutoplayPolicy(autoplayPolicy);
+    
+#if ENABLE(VIDEO)
     m_page->updateMediaElementRateChangeRestrictions();
+#endif
 }
 
 unsigned WebPage::extendIncrementalRenderingSuppression()