| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 381 |
| 382 unsigned long long PerformanceTiming::parseBlockedOnScriptLoadDuration() const | 382 unsigned long long PerformanceTiming::parseBlockedOnScriptLoadDuration() const |
| 383 { | 383 { |
| 384 const DocumentParserTiming* timing = documentParserTiming(); | 384 const DocumentParserTiming* timing = documentParserTiming(); |
| 385 if (!timing) | 385 if (!timing) |
| 386 return 0; | 386 return 0; |
| 387 | 387 |
| 388 return toIntegerMilliseconds(timing->parserBlockedOnScriptLoadDuration()); | 388 return toIntegerMilliseconds(timing->parserBlockedOnScriptLoadDuration()); |
| 389 } | 389 } |
| 390 | 390 |
| 391 unsigned long long PerformanceTiming::parseBlockedOnScriptLoadFromDocumentWriteD
uration() const |
| 392 { |
| 393 const DocumentParserTiming* timing = documentParserTiming(); |
| 394 if (!timing) |
| 395 return 0; |
| 396 |
| 397 return toIntegerMilliseconds(timing->parserBlockedOnScriptLoadFromDocumentWr
iteDuration()); |
| 398 } |
| 399 |
| 391 DocumentLoader* PerformanceTiming::documentLoader() const | 400 DocumentLoader* PerformanceTiming::documentLoader() const |
| 392 { | 401 { |
| 393 if (!m_frame) | 402 if (!m_frame) |
| 394 return nullptr; | 403 return nullptr; |
| 395 | 404 |
| 396 return m_frame->loader().documentLoader(); | 405 return m_frame->loader().documentLoader(); |
| 397 } | 406 } |
| 398 | 407 |
| 399 const DocumentTiming* PerformanceTiming::documentTiming() const | 408 const DocumentTiming* PerformanceTiming::documentTiming() const |
| 400 { | 409 { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 504 |
| 496 return timing->pseudoWallTimeToMonotonicTime(toDoubleSeconds(integerMillisec
onds)); | 505 return timing->pseudoWallTimeToMonotonicTime(toDoubleSeconds(integerMillisec
onds)); |
| 497 } | 506 } |
| 498 | 507 |
| 499 DEFINE_TRACE(PerformanceTiming) | 508 DEFINE_TRACE(PerformanceTiming) |
| 500 { | 509 { |
| 501 DOMWindowProperty::trace(visitor); | 510 DOMWindowProperty::trace(visitor); |
| 502 } | 511 } |
| 503 | 512 |
| 504 } // namespace blink | 513 } // namespace blink |
| OLD | NEW |