WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(23.51 KB, patch)
2014-01-24 12:15 PST
,
Anders Carlsson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2014-01-24 11:39:13 PST
Created
attachment 222129
[details]
Patch
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
Created
attachment 222133
[details]
Patch
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
Committed
r162716
: <
http://trac.webkit.org/changeset/162716
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug