REGRESSION(r178486): It broke the !ENABLE(VIDEO) build
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Jan 2015 15:27:57 +0000 (15:27 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Jan 2015 15:27:57 +0000 (15:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=140611

Reviewed by Eric Carlson.

* testing/Internals.cpp:
(WebCore::Internals::elementIsBlockingDisplaySleep):
* testing/Internals.h:

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

Source/WebCore/ChangeLog
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h

index 9f6d4525d8f74ebb1b8181586c8af3a997bf5e75..23c3b231abb8b130a8531aa71946a896a6b58e9c 100644 (file)
@@ -1,3 +1,14 @@
+2015-01-19  Csaba Osztrogon√°c  <ossy@webkit.org>
+
+        REGRESSION(r178486): It broke the !ENABLE(VIDEO) build
+        https://bugs.webkit.org/show_bug.cgi?id=140611
+
+        Reviewed by Eric Carlson.
+
+        * testing/Internals.cpp:
+        (WebCore::Internals::elementIsBlockingDisplaySleep):
+        * testing/Internals.h:
+
 2015-01-19  Sergio Villar Senin  <svillar@igalia.com>
 
         [CSS Grid Layout] Tracks shrink sometimes with indefinite remaining space
index e9faed016e990e5110473bfd6ff10cee458fffc6..06bfcffb92c47672f7602c221f026ec58cc76d92 100644 (file)
@@ -2419,6 +2419,13 @@ void Internals::postRemoteControlCommand(const String& commandString, ExceptionC
     
     MediaSessionManager::sharedManager().didReceiveRemoteControlCommand(command);
 }
+
+bool Internals::elementIsBlockingDisplaySleep(Element* element) const
+{
+    HTMLMediaElement* mediaElement = downcast<HTMLMediaElement>(element);
+    return mediaElement ? mediaElement->isDisablingSleep() : false;
+}
+
 #endif // ENABLE(VIDEO)
 
 void Internals::simulateSystemSleep() const
@@ -2435,11 +2442,6 @@ void Internals::simulateSystemWake() const
 #endif
 }
 
-bool Internals::elementIsBlockingDisplaySleep(Element* element) const
-{
-    HTMLMediaElement* mediaElement = downcast<HTMLMediaElement>(element);
-    return mediaElement ? mediaElement->isDisablingSleep() : false;
-}
 
 void Internals::installMockPageOverlay(const String& overlayType, ExceptionCode& ec)
 {
index 70d7a76e2d3e8eebe48364a00e9ffe91391c99ab..30088e80dd3738685303a9872075737cd599b0ee 100644 (file)
@@ -347,11 +347,11 @@ public:
     void applicationWillEnterBackground() const;
     void setMediaSessionRestrictions(const String& mediaType, const String& restrictions, ExceptionCode&);
     void postRemoteControlCommand(const String&, ExceptionCode&);
+    bool elementIsBlockingDisplaySleep(Element*) const;
 #endif
 
     void simulateSystemSleep() const;
     void simulateSystemWake() const;
-    bool elementIsBlockingDisplaySleep(Element*) const;
 
     void installMockPageOverlay(const String& overlayType, ExceptionCode&);
     String pageOverlayLayerTreeAsText(ExceptionCode&) const;