summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/mac/SystemTimeMac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/mac/SystemTimeMac.cpp')
-rw-r--r--WebCore/platform/mac/SystemTimeMac.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/WebCore/platform/mac/SystemTimeMac.cpp b/WebCore/platform/mac/SystemTimeMac.cpp
index a541b1d..dd5e500 100644
--- a/WebCore/platform/mac/SystemTimeMac.cpp
+++ b/WebCore/platform/mac/SystemTimeMac.cpp
@@ -26,8 +26,7 @@
#include "config.h"
#include "SystemTime.h"
-#include "WebCoreSystemInterface.h"
-
+#include <CoreGraphics/CGEventSource.h>
#include <CoreFoundation/CFDate.h>
namespace WebCore {
@@ -39,7 +38,7 @@ double currentTime()
float userIdleTime()
{
- return wkSecondsSinceLastInputEvent();
+ return static_cast<float>(CGEventSourceSecondsSinceLastEventType(kCGEventSourceStateCombinedSessionState, kCGAnyInputEventType));
}
}