Web Inspector: Avoid "100.00ms" vs "100.0ms" jitter in TimelineRuler labels
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Oct 2017 07:59:43 +0000 (07:59 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Oct 2017 07:59:43 +0000 (07:59 +0000)
commitab3ea7ef33d03c33728e7bca0aed8573deb88f67
treea6a8a29edd90a2949e415c11f4666bca68819254
parent7a1b57192bf290f42255276636cd6a2db83b3134
Web Inspector: Avoid "100.00ms" vs "100.0ms" jitter in TimelineRuler labels
https://bugs.webkit.org/show_bug.cgi?id=178143

Reviewed by Brian Burg.

* UserInterface/Base/Utilities.js:
Allow a small slop factor that wouldn't have changed the display value's
significant figures anyways. This addresses cases where 100.0000000000001
were being treated slightly differently from 100.0.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Utilities.js