Title: [248147] trunk/Source/WebCore
Revision
248147
Author
[email protected]
Date
2019-08-01 21:30:38 -0700 (Thu, 01 Aug 2019)

Log Message

Fix compilation of PageConsoleClient with !ENABLE(VIDEO)
https://bugs.webkit.org/show_bug.cgi?id=200380

Reviewed by Joseph Pecoraro.

* page/PageConsoleClient.cpp:
(WebCore::PageConsoleClient::screenshot):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (248146 => 248147)


--- trunk/Source/WebCore/ChangeLog	2019-08-02 03:50:15 UTC (rev 248146)
+++ trunk/Source/WebCore/ChangeLog	2019-08-02 04:30:38 UTC (rev 248147)
@@ -1,3 +1,13 @@
+2019-08-01  Konstantin Tokarev  <[email protected]>
+
+        Fix compilation of PageConsoleClient with !ENABLE(VIDEO)
+        https://bugs.webkit.org/show_bug.cgi?id=200380
+
+        Reviewed by Joseph Pecoraro.
+
+        * page/PageConsoleClient.cpp:
+        (WebCore::PageConsoleClient::screenshot):
+
 2019-08-01  Mark Lam  <[email protected]>
 
         Add crash diagnostics for debugging unexpected zapped cells.

Modified: trunk/Source/WebCore/page/PageConsoleClient.cpp (248146 => 248147)


--- trunk/Source/WebCore/page/PageConsoleClient.cpp	2019-08-02 03:50:15 UTC (rev 248146)
+++ trunk/Source/WebCore/page/PageConsoleClient.cpp	2019-08-02 04:30:38 UTC (rev 248147)
@@ -310,7 +310,9 @@
                     else if (is<HTMLPictureElement>(node)) {
                         if (auto* firstImage = childrenOfType<HTMLImageElement>(downcast<HTMLPictureElement>(*node)).first())
                             snapshotImageElement(*firstImage);
-                    } else if (is<HTMLVideoElement>(node)) {
+                    }
+#if ENABLE(VIDEO)
+                    else if (is<HTMLVideoElement>(node)) {
                         auto& videoElement = downcast<HTMLVideoElement>(*node);
                         unsigned videoWidth = videoElement.videoWidth();
                         unsigned videoHeight = videoElement.videoHeight();
@@ -317,6 +319,7 @@
                         snapshot = ImageBuffer::create(FloatSize(videoWidth, videoHeight), RenderingMode::Unaccelerated);
                         videoElement.paintCurrentFrameInContext(snapshot->context(), FloatRect(0, 0, videoWidth, videoHeight));
                     }
+#endif
                 }
 
                 if (!snapshot)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to