Title: [219218] trunk/Source
Revision
219218
Author
[email protected]
Date
2017-07-06 14:22:48 -0700 (Thu, 06 Jul 2017)

Log Message

Fix build with VIDEO support disabled.
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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (219217 => 219218)


--- trunk/Source/WebCore/ChangeLog	2017-07-06 21:20:18 UTC (rev 219217)
+++ trunk/Source/WebCore/ChangeLog	2017-07-06 21:22:48 UTC (rev 219218)
@@ -1,3 +1,12 @@
+2017-07-06  Matt Rajca  <[email protected]>
+
+        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  <[email protected]>
 
         Unreviewed, rolling out r219193.

Modified: trunk/Source/WebCore/page/Page.cpp (219217 => 219218)


--- trunk/Source/WebCore/page/Page.cpp	2017-07-06 21:20:18 UTC (rev 219217)
+++ trunk/Source/WebCore/page/Page.cpp	2017-07-06 21:22:48 UTC (rev 219218)
@@ -993,11 +993,13 @@
 #endif
 }
 
+#if ENABLE(VIDEO)
 void Page::updateMediaElementRateChangeRestrictions()
 {
     for (auto* mediaElement : HTMLMediaElement::allMediaElements())
         mediaElement->updateRateChangeRestrictions();
 }
+#endif
 
 void Page::didStartProvisionalLoad()
 {

Modified: trunk/Source/WebKit2/ChangeLog (219217 => 219218)


--- trunk/Source/WebKit2/ChangeLog	2017-07-06 21:20:18 UTC (rev 219217)
+++ trunk/Source/WebKit2/ChangeLog	2017-07-06 21:22:48 UTC (rev 219218)
@@ -1,3 +1,13 @@
+2017-07-06  Matt Rajca  <[email protected]>
+
+        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  <[email protected]>
 
         Crash under WebResourceLoadStatisticsStore::persistentStoragePath(WTF::String const&)

Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (219217 => 219218)


--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2017-07-06 21:20:18 UTC (rev 219217)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2017-07-06 21:22:48 UTC (rev 219218)
@@ -5634,7 +5634,10 @@
         return;
 
     documentLoader->setAutoplayPolicy(autoplayPolicy);
+    
+#if ENABLE(VIDEO)
     m_page->updateMediaElementRateChangeRestrictions();
+#endif
 }
 
 unsigned WebPage::extendIncrementalRenderingSuppression()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to