summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/DocumentTiming.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/DocumentTiming.h')
-rw-r--r--Source/WebCore/dom/DocumentTiming.h30
1 files changed, 10 insertions, 20 deletions
diff --git a/Source/WebCore/dom/DocumentTiming.h b/Source/WebCore/dom/DocumentTiming.h
index 8fa8dca38..bbf029c21 100644
--- a/Source/WebCore/dom/DocumentTiming.h
+++ b/Source/WebCore/dom/DocumentTiming.h
@@ -23,32 +23,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DocumentTiming_h
-#define DocumentTiming_h
+#pragma once
#if ENABLE(WEB_TIMING)
+#include <wtf/MonotonicTime.h>
+
namespace WebCore {
struct DocumentTiming {
- DocumentTiming()
- : domLoading(0.0)
- , domInteractive(0.0)
- , domContentLoadedEventStart(0.0)
- , domContentLoadedEventEnd(0.0)
- , domComplete(0.0)
- {
- }
-
- double domLoading;
- double domInteractive;
- double domContentLoadedEventStart;
- double domContentLoadedEventEnd;
- double domComplete;
+ MonotonicTime domLoading;
+ MonotonicTime domInteractive;
+ MonotonicTime domContentLoadedEventStart;
+ MonotonicTime domContentLoadedEventEnd;
+ MonotonicTime domComplete;
};
-}
-
-#endif
+} // namespace WebCore
-#endif
+#endif // ENABLE(WEB_TIMING)