Title: [258991] trunk/Source/WebCore
Revision
258991
Author
you...@apple.com
Date
2020-03-25 10:05:23 -0700 (Wed, 25 Mar 2020)

Log Message

Fix build after https://trac.webkit.org/changeset/258977/webkit
https://bugs.webkit.org/show_bug.cgi?id=209545

Unreviewed.


* dom/Document.cpp:
(WebCore::Document::visibilityStateChanged):
Add ENABLE(MEDIA_STREAM) compilation flag.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (258990 => 258991)


--- trunk/Source/WebCore/ChangeLog	2020-03-25 17:03:50 UTC (rev 258990)
+++ trunk/Source/WebCore/ChangeLog	2020-03-25 17:05:23 UTC (rev 258991)
@@ -1,3 +1,14 @@
+2020-03-25  youenn fablet  <you...@apple.com>
+
+        Fix build after https://trac.webkit.org/changeset/258977/webkit
+        https://bugs.webkit.org/show_bug.cgi?id=209545
+
+        Unreviewed.
+
+        * dom/Document.cpp:
+        (WebCore::Document::visibilityStateChanged):
+        Add ENABLE(MEDIA_STREAM) compilation flag.
+
 2020-03-25  Frank Yang  <guowei_y...@apple.com>
 
         WebKit uses Alphabetic Baseline when "-webkit-text-orientation" is "mixed" in Vertical Writing Mode

Modified: trunk/Source/WebCore/dom/Document.cpp (258990 => 258991)


--- trunk/Source/WebCore/dom/Document.cpp	2020-03-25 17:03:50 UTC (rev 258990)
+++ trunk/Source/WebCore/dom/Document.cpp	2020-03-25 17:05:23 UTC (rev 258991)
@@ -1744,14 +1744,16 @@
     for (auto* client : m_visibilityStateCallbackClients)
         client->visibilityStateChanged();
 
-#if PLATFORM(IOS_FAMILY)
+#if ENABLE(MEDIA_STREAM)
     if (hidden()) {
         RealtimeMediaSourceCenter::singleton().setCapturePageState(hidden(), page()->isMediaCaptureMuted());
         return;
     }
+#if PLATFORM(IOS_FAMILY)
     if (!PlatformMediaSessionManager::sharedManager().isInterrupted())
         MediaStreamTrack::updateCaptureAccordingToMutedState(*this);
 #endif
+#endif
 }
 
 VisibilityState Document::visibilityState() const
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to