Changeset 211109 in webkit
- Timestamp:
- Jan 24, 2017, 1:45:13 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
-
ChangeLog (modified) (1 diff)
-
page/Performance.idl (modified) (1 diff)
-
page/PerformanceEntry.idl (modified) (2 diffs)
-
page/PerformanceMark.idl (modified) (1 diff)
-
page/PerformanceMeasure.idl (modified) (1 diff)
-
page/PerformanceResourceTiming.cpp (modified) (1 diff)
-
page/PerformanceResourceTiming.h (modified) (1 diff)
-
page/PerformanceResourceTiming.idl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r211108 r211109 1 2017-01-24 Joseph Pecoraro <pecoraro@apple.com> 2 3 Clean up Performance IDL interfaces so they are easier to read 4 https://bugs.webkit.org/show_bug.cgi?id=167378 5 6 Reviewed by Sam Weinig. 7 8 * page/Performance.idl: 9 * page/PerformanceEntry.idl: 10 * page/PerformanceMark.idl: 11 * page/PerformanceMeasure.idl: 12 Update spec links and use a typedef to match specs. 13 14 * page/PerformanceResourceTiming.cpp: 15 (WebCore::PerformanceResourceTiming::workerStart): 16 * page/PerformanceResourceTiming.h: 17 * page/PerformanceResourceTiming.idl: 18 Add the workerStart property which always returns 0 for non-workers. 19 1 20 2017-01-24 Zalan Bujtas <zalan@apple.com> 2 21 -
trunk/Source/WebCore/page/Performance.idl
r207522 r211109 30 30 */ 31 31 32 // See: https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html 32 // https://w3c.github.io/hr-time/ 33 34 typedef double DOMHighResTimeStamp; 35 33 36 [ 34 37 Conditional=WEB_TIMING, 35 38 GenerateIsReachable=ImplFrame, 36 39 ] interface Performance : EventTarget { 40 41 DOMHighResTimeStamp now(); 42 43 // https://w3c.github.io/navigation-timing/ 37 44 readonly attribute PerformanceNavigation navigation; 38 45 readonly attribute PerformanceTiming timing; 39 46 47 // https://w3c.github.io/performance-timeline/ 40 48 [EnabledAtRuntime=ResourceTiming] PerformanceEntryList getEntries(); 41 49 [EnabledAtRuntime=ResourceTiming] PerformanceEntryList getEntriesByType(DOMString entryType); 42 50 [EnabledAtRuntime=ResourceTiming] PerformanceEntryList getEntriesByName(DOMString name, optional DOMString entryType); 43 51 52 // https://w3c.github.io/resource-timing/ 44 53 [EnabledAtRuntime=ResourceTiming] void clearResourceTimings(); 45 54 [EnabledAtRuntime=ResourceTiming] void setResourceTimingBufferSize(unsigned long maxSize); 46 47 55 [EnabledAtRuntime=ResourceTiming] attribute EventHandler onresourcetimingbufferfull; 48 56 49 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ 50 #if defined(ENABLE_USER_TIMING) && ENABLE_USER_TIMING 51 [MayThrowException] void webkitMark(DOMString markName); 52 void webkitClearMarks(optional DOMString markName); 53 54 [MayThrowException] void webkitMeasure(DOMString measureName, optional DOMString startMark, optional DOMString endMark); 55 void webkitClearMeasures(optional DOMString measureName); 56 #endif 57 58 // See http://www.w3.org/TR/hr-time/ for details. 59 unrestricted double now(); 57 // https://w3c.github.io/user-timing/ 58 [Conditional=USER_TIMING, MayThrowException] void webkitMark(DOMString markName); 59 [Conditional=USER_TIMING] void webkitClearMarks(optional DOMString markName); 60 [Conditional=USER_TIMING, MayThrowException] void webkitMeasure(DOMString measureName, optional DOMString startMark, optional DOMString endMark); 61 [Conditional=USER_TIMING] void webkitClearMeasures(optional DOMString measureName); 60 62 }; 61 63 -
trunk/Source/WebCore/page/PerformanceEntry.idl
r200320 r211109 29 29 */ 30 30 31 // See: https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PerformanceTimeline/Overview.html 31 // https://w3c.github.io/performance-timeline/ 32 33 typedef double DOMHighResTimeStamp; 34 32 35 [ 33 36 Conditional=WEB_TIMING, … … 37 40 readonly attribute DOMString name; 38 41 readonly attribute DOMString entryType; 39 readonly attribute unrestricted doublestartTime;40 readonly attribute unrestricted doubleduration;42 readonly attribute DOMHighResTimeStamp startTime; 43 readonly attribute DOMHighResTimeStamp duration; 41 44 }; -
trunk/Source/WebCore/page/PerformanceMark.idl
r149845 r211109 24 24 */ 25 25 26 // https://w3c.github.io/user-timing/ 27 26 28 [ 27 29 Conditional=USER_TIMING, -
trunk/Source/WebCore/page/PerformanceMeasure.idl
r149845 r211109 24 24 */ 25 25 26 // https://w3c.github.io/user-timing/ 27 26 28 [ 27 29 Conditional=USER_TIMING, -
trunk/Source/WebCore/page/PerformanceResourceTiming.cpp
r211074 r211109 95 95 } 96 96 97 double PerformanceResourceTiming::workerStart() const 98 { 99 return 0.0; 100 } 101 97 102 double PerformanceResourceTiming::redirectStart() const 98 103 { -
trunk/Source/WebCore/page/PerformanceResourceTiming.h
r211074 r211109 56 56 AtomicString initiatorType() const; 57 57 58 double workerStart() const; 58 59 double redirectStart() const; 59 60 double redirectEnd() const; -
trunk/Source/WebCore/page/PerformanceResourceTiming.idl
r204976 r211109 29 29 */ 30 30 31 // See: https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/ResourceTiming/Overview.html 31 // https://w3c.github.io/resource-timing/ 32 33 typedef double DOMHighResTimeStamp; 34 32 35 [ 33 36 Conditional=WEB_TIMING, … … 36 39 readonly attribute DOMString initiatorType; 37 40 38 readonly attribute unrestricted double redirectStart; 39 readonly attribute unrestricted double redirectEnd; 40 readonly attribute unrestricted double fetchStart; 41 readonly attribute unrestricted double domainLookupStart; 42 readonly attribute unrestricted double domainLookupEnd; 43 readonly attribute unrestricted double connectStart; 44 readonly attribute unrestricted double connectEnd; 45 readonly attribute unrestricted double secureConnectionStart; 46 readonly attribute unrestricted double requestStart; 47 readonly attribute unrestricted double responseStart; 48 readonly attribute unrestricted double responseEnd; 41 readonly attribute DOMHighResTimeStamp workerStart; 42 readonly attribute DOMHighResTimeStamp redirectStart; 43 readonly attribute DOMHighResTimeStamp redirectEnd; 44 readonly attribute DOMHighResTimeStamp fetchStart; 45 readonly attribute DOMHighResTimeStamp domainLookupStart; 46 readonly attribute DOMHighResTimeStamp domainLookupEnd; 47 readonly attribute DOMHighResTimeStamp connectStart; 48 readonly attribute DOMHighResTimeStamp connectEnd; 49 readonly attribute DOMHighResTimeStamp secureConnectionStart; 50 readonly attribute DOMHighResTimeStamp requestStart; 51 readonly attribute DOMHighResTimeStamp responseStart; 52 readonly attribute DOMHighResTimeStamp responseEnd; 49 53 };
Note:
See TracChangeset
for help on using the changeset viewer.