Port DOMTimer from std::chrono::milliseconds to WTF::Seconds type
[WebKit-https.git] / Source / WebCore / inspector / TimelineRecordFactory.cpp
index a216593..74aa7ff 100644 (file)
@@ -94,11 +94,11 @@ Ref<InspectorObject> TimelineRecordFactory::createGenericTimerData(int timerId)
     return data;
 }
 
-Ref<InspectorObject> TimelineRecordFactory::createTimerInstallData(int timerId, std::chrono::milliseconds timeout, bool singleShot)
+Ref<InspectorObject> TimelineRecordFactory::createTimerInstallData(int timerId, Seconds timeout, bool singleShot)
 {
     Ref<InspectorObject> data = InspectorObject::create();
     data->setInteger(ASCIILiteral("timerId"), timerId);
-    data->setInteger(ASCIILiteral("timeout"), (int)timeout.count());
+    data->setInteger(ASCIILiteral("timeout"), (int)timeout.milliseconds());
     data->setBoolean(ASCIILiteral("singleShot"), singleShot);
     return data;
 }