Changeset 74315 in webkit
- Timestamp:
- Dec 18, 2010 1:23:56 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r74314 r74315 1 2010-12-18 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Laszlo Gombos. 4 5 [Web Timing] Rename domContentLoaded{Start,End}->domContentLoadedEvent{Start,End} 6 https://bugs.webkit.org/show_bug.cgi?id=50943 7 8 * fast/dom/Window/window-properties-performance-expected.txt: 9 * fast/dom/script-tests/webtiming.js: 10 (checkTimingBeforeLoad): 11 (checkTimingWhileDeferred): 12 (checkWebTimingOnDOMContentLoaded): 13 (checkWebTimingWhileAsync): 14 (checkWebTimingOnLoad): 15 (checkWebTimingAfterLoad): 16 * fast/dom/webtiming-document-open-expected.txt: 17 * fast/dom/webtiming-expected.txt: 18 * fast/dom/webtiming-navigate-within-document-expected.txt: 19 1 20 2010-12-17 Tony Gentilcore <tonyg@chromium.org> 2 21 -
trunk/LayoutTests/fast/dom/Window/window-properties-performance-expected.txt
r74242 r74315 16 16 window.webkitPerformance.timing.connectStart [number] 17 17 window.webkitPerformance.timing.domComplete [number] 18 window.webkitPerformance.timing.domContentLoadedE nd [number]19 window.webkitPerformance.timing.domContentLoaded Start [number]18 window.webkitPerformance.timing.domContentLoadedEventEnd [number] 19 window.webkitPerformance.timing.domContentLoadedEventStart [number] 20 20 window.webkitPerformance.timing.domInteractive [number] 21 21 window.webkitPerformance.timing.domLoading [number] -
trunk/LayoutTests/fast/dom/script-tests/webtiming.js
r74242 r74315 43 43 shouldBeGreaterThanOrEqual("timing.domLoading", "timing.fetchStart"); 44 44 shouldBe("timing.domInteractive", "0"); 45 shouldBe("timing.domContentLoaded Start", "0");46 shouldBe("timing.domContentLoadedE nd", "0");45 shouldBe("timing.domContentLoadedEventStart", "0"); 46 shouldBe("timing.domContentLoadedEventEnd", "0"); 47 47 shouldBe("timing.domComplete", "0"); 48 48 … … 78 78 shouldBeGreaterThanOrEqual("timing.domLoading", "timing.fetchStart"); 79 79 shouldBeGreaterThanOrEqual("timing.domInteractive", "timing.domLoading"); 80 shouldBe("timing.domContentLoaded Start", "0");81 shouldBe("timing.domContentLoadedE nd", "0");80 shouldBe("timing.domContentLoadedEventStart", "0"); 81 shouldBe("timing.domContentLoadedEventEnd", "0"); 82 82 shouldBe("timing.domComplete", "0"); 83 83 … … 114 114 shouldBeGreaterThanOrEqual("timing.domLoading", "timing.fetchStart"); 115 115 shouldBeGreaterThanOrEqual("timing.domInteractive", "timing.domLoading"); 116 shouldBeGreaterThanOrEqual("timing.domContentLoaded Start", "timing.domInteractive");117 shouldBe("timing.domContentLoadedE nd", "0");116 shouldBeGreaterThanOrEqual("timing.domContentLoadedEventStart", "timing.domInteractive"); 117 shouldBe("timing.domContentLoadedEventEnd", "0"); 118 118 shouldBe("timing.domComplete", "0"); 119 119 … … 156 156 shouldBeGreaterThanOrEqual("timing.domLoading", "timing.fetchStart"); 157 157 shouldBeGreaterThanOrEqual("timing.domInteractive", "timing.responseEnd"); 158 shouldBeGreaterThanOrEqual("timing.domContentLoaded Start", "timing.domInteractive");159 shouldBeGreaterThanOrEqual("timing.domContentLoadedE nd", "timing.domContentLoadedStart");158 shouldBeGreaterThanOrEqual("timing.domContentLoadedEventStart", "timing.domInteractive"); 159 shouldBeGreaterThanOrEqual("timing.domContentLoadedEventEnd", "timing.domContentLoadedEventStart"); 160 160 shouldBe("timing.domComplete", "0"); 161 161 … … 194 194 shouldBeGreaterThanOrEqual("timing.domLoading", "timing.fetchStart"); 195 195 shouldBeGreaterThanOrEqual("timing.domInteractive", "timing.responseEnd"); 196 shouldBeGreaterThanOrEqual("timing.domContentLoaded Start", "timing.domInteractive");197 shouldBeGreaterThanOrEqual("timing.domContentLoadedE nd", "timing.domContentLoadedStart");198 shouldBeGreaterThanOrEqual("timing.domComplete", "timing.domContentLoadedE nd");196 shouldBeGreaterThanOrEqual("timing.domContentLoadedEventStart", "timing.domInteractive"); 197 shouldBeGreaterThanOrEqual("timing.domContentLoadedEventEnd", "timing.domContentLoadedEventStart"); 198 shouldBeGreaterThanOrEqual("timing.domComplete", "timing.domContentLoadedEventEnd"); 199 199 200 200 shouldBeGreaterThanOrEqual("timing.loadEventStart", "timing.responseEnd"); … … 232 232 shouldBeGreaterThanOrEqual("timing.domLoading", "timing.fetchStart"); 233 233 shouldBeGreaterThanOrEqual("timing.domInteractive", "timing.responseEnd"); 234 shouldBeGreaterThanOrEqual("timing.domContentLoaded Start", "timing.domInteractive");235 shouldBeGreaterThanOrEqual("timing.domContentLoadedE nd", "timing.domContentLoadedStart");236 shouldBeGreaterThanOrEqual("timing.domComplete", "timing.domContentLoadedE nd");234 shouldBeGreaterThanOrEqual("timing.domContentLoadedEventStart", "timing.domInteractive"); 235 shouldBeGreaterThanOrEqual("timing.domContentLoadedEventEnd", "timing.domContentLoadedEventStart"); 236 shouldBeGreaterThanOrEqual("timing.domComplete", "timing.domContentLoadedEventEnd"); 237 237 238 238 shouldBeGreaterThanOrEqual("timing.loadEventStart", "timing.responseEnd"); -
trunk/LayoutTests/fast/dom/webtiming-document-open-expected.txt
r74242 r74315 7 7 PASS timing.connectStart is originalTiming.connectStart 8 8 PASS timing.domComplete is originalTiming.domComplete 9 PASS timing.domContentLoadedE nd is originalTiming.domContentLoadedEnd10 PASS timing.domContentLoaded Start is originalTiming.domContentLoadedStart9 PASS timing.domContentLoadedEventEnd is originalTiming.domContentLoadedEventEnd 10 PASS timing.domContentLoadedEventStart is originalTiming.domContentLoadedEventStart 11 11 PASS timing.domInteractive is originalTiming.domInteractive 12 12 PASS timing.domLoading is originalTiming.domLoading -
trunk/LayoutTests/fast/dom/webtiming-expected.txt
r74242 r74315 20 20 PASS timing.domLoading is >= timing.fetchStart 21 21 PASS timing.domInteractive is 0 22 PASS timing.domContentLoaded Start is 023 PASS timing.domContentLoadedE nd is 022 PASS timing.domContentLoadedEventStart is 0 23 PASS timing.domContentLoadedEventEnd is 0 24 24 PASS timing.domComplete is 0 25 25 PASS timing.loadEventStart is 0 … … 41 41 PASS timing.domLoading is >= timing.fetchStart 42 42 PASS timing.domInteractive is >= timing.domLoading 43 PASS timing.domContentLoaded Start is 044 PASS timing.domContentLoadedE nd is 043 PASS timing.domContentLoadedEventStart is 0 44 PASS timing.domContentLoadedEventEnd is 0 45 45 PASS timing.domComplete is 0 46 46 PASS timing.loadEventStart is 0 … … 62 62 PASS timing.domLoading is >= timing.fetchStart 63 63 PASS timing.domInteractive is >= timing.domLoading 64 PASS timing.domContentLoaded Start is >= timing.domInteractive65 PASS timing.domContentLoadedE nd is 064 PASS timing.domContentLoadedEventStart is >= timing.domInteractive 65 PASS timing.domContentLoadedEventEnd is 0 66 66 PASS timing.domComplete is 0 67 67 PASS timing.loadEventStart is 0 … … 83 83 PASS timing.domLoading is >= timing.fetchStart 84 84 PASS timing.domInteractive is >= timing.responseEnd 85 PASS timing.domContentLoaded Start is >= timing.domInteractive86 PASS timing.domContentLoadedE nd is >= timing.domContentLoadedStart85 PASS timing.domContentLoadedEventStart is >= timing.domInteractive 86 PASS timing.domContentLoadedEventEnd is >= timing.domContentLoadedEventStart 87 87 PASS timing.domComplete is 0 88 88 PASS timing.loadEventStart is 0 … … 105 105 PASS timing.domLoading is >= timing.fetchStart 106 106 PASS timing.domInteractive is >= timing.responseEnd 107 PASS timing.domContentLoaded Start is >= timing.domInteractive108 PASS timing.domContentLoadedE nd is >= timing.domContentLoadedStart109 PASS timing.domComplete is >= timing.domContentLoadedE nd107 PASS timing.domContentLoadedEventStart is >= timing.domInteractive 108 PASS timing.domContentLoadedEventEnd is >= timing.domContentLoadedEventStart 109 PASS timing.domComplete is >= timing.domContentLoadedEventEnd 110 110 PASS timing.loadEventStart is >= timing.responseEnd 111 111 PASS timing.loadEventEnd is 0 … … 127 127 PASS timing.domLoading is >= timing.fetchStart 128 128 PASS timing.domInteractive is >= timing.responseEnd 129 PASS timing.domContentLoaded Start is >= timing.domInteractive130 PASS timing.domContentLoadedE nd is >= timing.domContentLoadedStart131 PASS timing.domComplete is >= timing.domContentLoadedE nd129 PASS timing.domContentLoadedEventStart is >= timing.domInteractive 130 PASS timing.domContentLoadedEventEnd is >= timing.domContentLoadedEventStart 131 PASS timing.domComplete is >= timing.domContentLoadedEventEnd 132 132 PASS timing.loadEventStart is >= timing.responseEnd 133 133 PASS timing.loadEventEnd is >= timing.loadEventStart + 50 -
trunk/LayoutTests/fast/dom/webtiming-navigate-within-document-expected.txt
r74242 r74315 7 7 PASS connectStart is unchanged. 8 8 PASS domComplete is unchanged. 9 PASS domContentLoadedE nd is unchanged.10 PASS domContentLoaded Start is unchanged.9 PASS domContentLoadedEventEnd is unchanged. 10 PASS domContentLoadedEventStart is unchanged. 11 11 PASS domInteractive is unchanged. 12 12 PASS domLoading is unchanged. -
trunk/WebCore/ChangeLog
r74312 r74315 1 2010-12-18 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Laszlo Gombos. 4 5 [Web Timing] Rename domContentLoaded{Start,End}->domContentLoadedEvent{Start,End} 6 https://bugs.webkit.org/show_bug.cgi?id=50943 7 8 See: http://test.w3.org/webperf/specs/NavigationTiming/#nt-dom-content-event-start 9 10 * dom/Document.cpp: 11 (WebCore::Document::finishedParsing): 12 * dom/DocumentTiming.h: 13 (WebCore::DocumentTiming::DocumentTiming): 14 * page/PerformanceTiming.cpp: 15 (WebCore::PerformanceTiming::domContentLoadedEventStart): 16 (WebCore::PerformanceTiming::domContentLoadedEventEnd): 17 * page/PerformanceTiming.h: 18 * page/PerformanceTiming.idl: 19 1 20 2010-12-17 Justin Schuh <jschuh@chromium.org> 2 21 -
trunk/WebCore/dom/Document.cpp
r74093 r74315 4209 4209 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); 4210 4210 setParsing(false); 4211 if (!m_documentTiming.domContentLoaded Start)4212 m_documentTiming.domContentLoaded Start = currentTime();4211 if (!m_documentTiming.domContentLoadedEventStart) 4212 m_documentTiming.domContentLoadedEventStart = currentTime(); 4213 4213 dispatchEvent(Event::create(eventNames().DOMContentLoadedEvent, true, false)); 4214 if (!m_documentTiming.domContentLoadedE nd)4215 m_documentTiming.domContentLoadedE nd = currentTime();4214 if (!m_documentTiming.domContentLoadedEventEnd) 4215 m_documentTiming.domContentLoadedEventEnd = currentTime(); 4216 4216 4217 4217 if (Frame* f = frame()) { -
trunk/WebCore/dom/DocumentTiming.h
r71608 r74315 33 33 : domLoading(0.0) 34 34 , domInteractive(0.0) 35 , domContentLoaded Start(0.0)36 , domContentLoadedE nd(0.0)35 , domContentLoadedEventStart(0.0) 36 , domContentLoadedEventEnd(0.0) 37 37 , domComplete(0.0) 38 38 { … … 41 41 double domLoading; 42 42 double domInteractive; 43 double domContentLoaded Start;44 double domContentLoadedE nd;43 double domContentLoadedEventStart; 44 double domContentLoadedEventEnd; 45 45 double domComplete; 46 46 }; -
trunk/WebCore/page/PerformanceTiming.cpp
r74242 r74315 282 282 } 283 283 284 unsigned long long PerformanceTiming::domContentLoaded Start() const285 { 286 const DocumentTiming* timing = documentTiming(); 287 if (!timing) 288 return 0; 289 290 return toIntegerMilliseconds(timing->domContentLoaded Start);291 } 292 293 unsigned long long PerformanceTiming::domContentLoadedE nd() const294 { 295 const DocumentTiming* timing = documentTiming(); 296 if (!timing) 297 return 0; 298 299 return toIntegerMilliseconds(timing->domContentLoadedE nd);284 unsigned long long PerformanceTiming::domContentLoadedEventStart() const 285 { 286 const DocumentTiming* timing = documentTiming(); 287 if (!timing) 288 return 0; 289 290 return toIntegerMilliseconds(timing->domContentLoadedEventStart); 291 } 292 293 unsigned long long PerformanceTiming::domContentLoadedEventEnd() const 294 { 295 const DocumentTiming* timing = documentTiming(); 296 if (!timing) 297 return 0; 298 299 return toIntegerMilliseconds(timing->domContentLoadedEventEnd); 300 300 } 301 301 -
trunk/WebCore/page/PerformanceTiming.h
r74242 r74315 68 68 unsigned long long domLoading() const; 69 69 unsigned long long domInteractive() const; 70 unsigned long long domContentLoaded Start() const;71 unsigned long long domContentLoadedE nd() const;70 unsigned long long domContentLoadedEventStart() const; 71 unsigned long long domContentLoadedEventEnd() const; 72 72 unsigned long long domComplete() const; 73 73 unsigned long long loadEventStart() const; -
trunk/WebCore/page/PerformanceTiming.idl
r74242 r74315 49 49 readonly attribute unsigned long long domLoading; 50 50 readonly attribute unsigned long long domInteractive; 51 readonly attribute unsigned long long domContentLoaded Start;52 readonly attribute unsigned long long domContentLoadedE nd;51 readonly attribute unsigned long long domContentLoadedEventStart; 52 readonly attribute unsigned long long domContentLoadedEventEnd; 53 53 readonly attribute unsigned long long domComplete; 54 54 readonly attribute unsigned long long loadEventStart; -
trunk/WebKit/chromium/ChangeLog
r74307 r74315 1 2010-12-18 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Laszlo Gombos. 4 5 [Web Timing] Rename domContentLoaded{Start,End}->domContentLoadedEvent{Start,End} 6 https://bugs.webkit.org/show_bug.cgi?id=50943 7 8 Exposes all dom* times to the chromium port. I'm particularly interested in 9 domContentLoadedEventEnd as it compares to the FinishDoc metric. 10 11 * public/WebPerformance.h: 12 * src/WebPerformance.cpp: 13 (WebKit::WebPerformance::domLoading): 14 (WebKit::WebPerformance::domInteractive): 15 (WebKit::WebPerformance::domContentLoadedEventStart): 16 (WebKit::WebPerformance::domContentLoadedEventEnd): 17 (WebKit::WebPerformance::domComplete): 18 1 19 2010-12-17 Tony Gentilcore <tonyg@chromium.org> 2 20 -
trunk/WebKit/chromium/public/WebPerformance.h
r71612 r74315 74 74 WEBKIT_API double responseStart() const; 75 75 WEBKIT_API double responseEnd() const; 76 WEBKIT_API double domLoading() const; 77 WEBKIT_API double domInteractive() const; 78 WEBKIT_API double domContentLoadedEventStart() const; 79 WEBKIT_API double domContentLoadedEventEnd() const; 80 WEBKIT_API double domComplete() const; 76 81 WEBKIT_API double loadEventStart() const; 77 82 WEBKIT_API double loadEventEnd() const; -
trunk/WebKit/chromium/src/WebPerformance.cpp
r74241 r74315 134 134 } 135 135 136 double WebPerformance::domLoading() const 137 { 138 return millisecondsToSeconds(m_private->timing()->domLoading()); 139 } 140 141 double WebPerformance::domInteractive() const 142 { 143 return millisecondsToSeconds(m_private->timing()->domInteractive()); 144 } 145 146 double WebPerformance::domContentLoadedEventStart() const 147 { 148 return millisecondsToSeconds(m_private->timing()->domContentLoadedEventStart()); 149 } 150 151 double WebPerformance::domContentLoadedEventEnd() const 152 { 153 return millisecondsToSeconds(m_private->timing()->domContentLoadedEventEnd()); 154 } 155 156 double WebPerformance::domComplete() const 157 { 158 return millisecondsToSeconds(m_private->timing()->domComplete()); 159 } 160 136 161 double WebPerformance::loadEventStart() const 137 162 {
Note: See TracChangeset
for help on using the changeset viewer.