RESOLVED FIXED 127571
Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
https://bugs.webkit.org/show_bug.cgi?id=127571
Summary Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
Anders Carlsson
Reported 2014-01-24 11:29:33 PST
Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
Attachments
Patch (23.19 KB, patch)
2014-01-24 11:39 PST, Anders Carlsson
no flags
Patch (23.51 KB, patch)
2014-01-24 12:15 PST, Anders Carlsson
no flags
Anders Carlsson
Comment 1 2014-01-24 11:39:13 PST
WebKit Commit Bot
Comment 2 2014-01-24 11:40:54 PST
Attachment 222129 [details] did not pass style-queue: ERROR: Source/WTF/wtf/StdLibExtras.h:405: Do not use 'using namespace std::literals::chrono_literals;'. [build/using_namespace] [4] ERROR: Source/WTF/wtf/StdLibExtras.h:405: std::literals::chrono_literals is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 2 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 3 2014-01-24 11:46:14 PST
Comment on attachment 222129 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=222129&action=review > Source/WTF/wtf/StdLibExtras.h:380 > + namespace literals { > + namespace chrono_literals { > + CONSTEXPR inline chrono::seconds operator"" _s(unsigned long long s) We don't usually indent namespace content. > Source/WebCore/page/Settings.cpp:149 > -static const int layoutScheduleThreshold = 250; > +static const auto layoutScheduleThreshold = 250_ms; nice!
Anders Carlsson
Comment 4 2014-01-24 12:15:55 PST
WebKit Commit Bot
Comment 5 2014-01-24 12:17:55 PST
Attachment 222133 [details] did not pass style-queue: ERROR: Source/WTF/wtf/StdLibExtras.h:408: Do not use 'using namespace std::literals::chrono_literals;'. [build/using_namespace] [4] ERROR: Source/WTF/wtf/StdLibExtras.h:408: std::literals::chrono_literals is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 2 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 6 2014-01-24 12:37:20 PST
Note You need to log in before you can comment on or make changes to this bug.