| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1474 documentLoader->fetcher()->countPreloads()) | 1474 documentLoader->fetcher()->countPreloads()) |
| 1475 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, | 1475 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, |
| 1476 BLINK_FROM_HERE); | 1476 BLINK_FROM_HERE); |
| 1477 } else { | 1477 } else { |
| 1478 dispatchEvent(loadEvent, document()); | 1478 dispatchEvent(loadEvent, document()); |
| 1479 } | 1479 } |
| 1480 | 1480 |
| 1481 if (frame()) { | 1481 if (frame()) { |
| 1482 Performance* performance = DOMWindowPerformance::performance(*this); | 1482 Performance* performance = DOMWindowPerformance::performance(*this); |
| 1483 DCHECK(performance); | 1483 DCHECK(performance); |
| 1484 performance->addNavigationTiming(frame()); | 1484 performance->notifyNavigationTimingToObserver(); |
| 1485 } | 1485 } |
| 1486 | 1486 |
| 1487 // For load events, send a separate load event to the enclosing frame only. | 1487 // For load events, send a separate load event to the enclosing frame only. |
| 1488 // This is a DOM extension and is independent of bubbling/capturing rules of | 1488 // This is a DOM extension and is independent of bubbling/capturing rules of |
| 1489 // the DOM. | 1489 // the DOM. |
| 1490 FrameOwner* owner = frame() ? frame()->owner() : nullptr; | 1490 FrameOwner* owner = frame() ? frame()->owner() : nullptr; |
| 1491 if (owner) | 1491 if (owner) |
| 1492 owner->dispatchLoad(); | 1492 owner->dispatchLoad(); |
| 1493 | 1493 |
| 1494 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", | 1494 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 DOMWindow::trace(visitor); | 1632 DOMWindow::trace(visitor); |
| 1633 Supplementable<LocalDOMWindow>::trace(visitor); | 1633 Supplementable<LocalDOMWindow>::trace(visitor); |
| 1634 } | 1634 } |
| 1635 | 1635 |
| 1636 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { | 1636 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { |
| 1637 visitor->traceWrappers(m_customElements); | 1637 visitor->traceWrappers(m_customElements); |
| 1638 DOMWindow::traceWrappers(visitor); | 1638 DOMWindow::traceWrappers(visitor); |
| 1639 } | 1639 } |
| 1640 | 1640 |
| 1641 } // namespace blink | 1641 } // namespace blink |
| OLD | NEW |