Reduce resolution of performance.now.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Jul 2015 00:29:55 +0000 (00:29 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Jul 2015 00:29:55 +0000 (00:29 +0000)
commit61a5936e91f23ba02ce13aecef2f17f31b4d88a2
tree9d7c33b1989894c590030a701c09f29ee6dd749b
parent2fd2678b8abb98c1a3d314892c8905fde3db2bf9
Reduce resolution of performance.now.
https://bugs.webkit.org/show_bug.cgi?id=146531
rdar://problem/20116796

Reviewed by Simon Fraser.

Source/WebCore:

Test: http/tests/misc/webtiming-resolution.html

* page/Performance.cpp:
(WebCore::Performance::now):
Floor the time returned by performance.now to the nearest 5 microseconds.

LayoutTests:

* http/tests/misc/webtiming-resolution-expected.txt: Added.
* http/tests/misc/webtiming-resolution.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/misc/webtiming-resolution-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/misc/webtiming-resolution.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/Performance.cpp