| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 unsigned long long PerformanceTiming::authorStyleSheetParseDurationBeforeFCP() | 406 unsigned long long PerformanceTiming::authorStyleSheetParseDurationBeforeFCP() |
| 407 const { | 407 const { |
| 408 const CSSTiming* timing = cssTiming(); | 408 const CSSTiming* timing = cssTiming(); |
| 409 if (!timing) | 409 if (!timing) |
| 410 return 0; | 410 return 0; |
| 411 | 411 |
| 412 return toIntegerMilliseconds( | 412 return toIntegerMilliseconds( |
| 413 timing->authorStyleSheetParseDurationBeforeFCP()); | 413 timing->authorStyleSheetParseDurationBeforeFCP()); |
| 414 } | 414 } |
| 415 | 415 |
| 416 unsigned long long PerformanceTiming::updateStyleDurationBeforeFCP() const { |
| 417 const CSSTiming* timing = cssTiming(); |
| 418 if (!timing) |
| 419 return 0; |
| 420 |
| 421 return toIntegerMilliseconds(timing->updateDurationBeforeFCP()); |
| 422 } |
| 423 |
| 416 DocumentLoader* PerformanceTiming::documentLoader() const { | 424 DocumentLoader* PerformanceTiming::documentLoader() const { |
| 417 if (!frame()) | 425 if (!frame()) |
| 418 return nullptr; | 426 return nullptr; |
| 419 | 427 |
| 420 return frame()->loader().documentLoader(); | 428 return frame()->loader().documentLoader(); |
| 421 } | 429 } |
| 422 | 430 |
| 423 const DocumentTiming* PerformanceTiming::documentTiming() const { | 431 const DocumentTiming* PerformanceTiming::documentTiming() const { |
| 424 if (!frame()) | 432 if (!frame()) |
| 425 return nullptr; | 433 return nullptr; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 | 534 |
| 527 return timing->pseudoWallTimeToMonotonicTime( | 535 return timing->pseudoWallTimeToMonotonicTime( |
| 528 toDoubleSeconds(integerMilliseconds)); | 536 toDoubleSeconds(integerMilliseconds)); |
| 529 } | 537 } |
| 530 | 538 |
| 531 DEFINE_TRACE(PerformanceTiming) { | 539 DEFINE_TRACE(PerformanceTiming) { |
| 532 DOMWindowProperty::trace(visitor); | 540 DOMWindowProperty::trace(visitor); |
| 533 } | 541 } |
| 534 | 542 |
| 535 } // namespace blink | 543 } // namespace blink |
| OLD | NEW |