summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/DocumentTiming.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/DocumentTiming.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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)