Summary: | High res times should start at 0 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | James Simonsen <simonjam> | ||||||||||
Component: | Platform | Assignee: | James Simonsen <simonjam> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | japhet, nduca, sullivan, tonyg, webkit.review.bot | ||||||||||
Priority: | P2 | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
URL: | http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html | ||||||||||||
Bug Depends on: | 98223 | ||||||||||||
Bug Blocks: | 66683, 66684, 88278 | ||||||||||||
Attachments: |
|
Description
James Simonsen
2012-04-25 17:19:38 PDT
Created attachment 168065 [details]
Patch
Comment on attachment 168065 [details] Patch Attachment 168065 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14252319 Created attachment 168081 [details]
Patch
I think this is ready for review. This should get us in line with the spec for performance.now() without breaking Navigation Timing. Next, I'll import the W3 test suite for now() and work on unprefixing that. Comment on attachment 168081 [details] Patch Attachment 168081 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/14259241 Created attachment 168090 [details]
Patch
Comment on attachment 168090 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=168090&action=review > Source/WebCore/loader/DocumentLoadTiming.cpp:57 > +double DocumentLoadTiming::convertMonotonicTimeToLegacyDocumentTime(double monotonicTime) const I'd consider s/Legacy/WallBased/ with a comment that new users should use zero-based. That name is more synergistic with ZeroBasedDocumentTime and better describes what the method does. > Source/WebCore/loader/DocumentLoadTiming.h:41 > + double convertMonotonicTimeToZeroBasedDocumentTime(double) const; You could consider dropping the term "convert" from these methods. The name will be just as descriptive but a little more terse. Created attachment 168112 [details]
Patch for landing
(In reply to comment #7) > (From update of attachment 168090 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=168090&action=review > > > Source/WebCore/loader/DocumentLoadTiming.cpp:57 > > +double DocumentLoadTiming::convertMonotonicTimeToLegacyDocumentTime(double monotonicTime) const > > I'd consider s/Legacy/WallBased/ with a comment that new users should use zero-based. That name is more synergistic with ZeroBasedDocumentTime and better describes what the method does. Went with PseudoWallTime > > > Source/WebCore/loader/DocumentLoadTiming.h:41 > > + double convertMonotonicTimeToZeroBasedDocumentTime(double) const; > > You could consider dropping the term "convert" from these methods. The name will be just as descriptive but a little more terse. Done. Comment on attachment 168112 [details] Patch for landing Clearing flags on attachment: 168112 Committed r131001: <http://trac.webkit.org/changeset/131001> All reviewed patches have been landed. Closing bug. |