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 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1484 documentLoader->fetcher()->countPreloads()) | 1484 documentLoader->fetcher()->countPreloads()) |
1485 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, | 1485 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, |
1486 BLINK_FROM_HERE); | 1486 BLINK_FROM_HERE); |
1487 } else { | 1487 } else { |
1488 dispatchEvent(loadEvent, document()); | 1488 dispatchEvent(loadEvent, document()); |
1489 } | 1489 } |
1490 | 1490 |
1491 if (frame()) { | 1491 if (frame()) { |
1492 Performance* performance = DOMWindowPerformance::performance(*this); | 1492 Performance* performance = DOMWindowPerformance::performance(*this); |
1493 DCHECK(performance); | 1493 DCHECK(performance); |
1494 performance->addNavigationTiming(frame()); | 1494 performance->notifyNavigationTimingToObservers(); |
1495 } | 1495 } |
1496 | 1496 |
1497 // For load events, send a separate load event to the enclosing frame only. | 1497 // For load events, send a separate load event to the enclosing frame only. |
1498 // This is a DOM extension and is independent of bubbling/capturing rules of | 1498 // This is a DOM extension and is independent of bubbling/capturing rules of |
1499 // the DOM. | 1499 // the DOM. |
1500 FrameOwner* owner = frame() ? frame()->owner() : nullptr; | 1500 FrameOwner* owner = frame() ? frame()->owner() : nullptr; |
1501 if (owner) | 1501 if (owner) |
1502 owner->dispatchLoad(); | 1502 owner->dispatchLoad(); |
1503 | 1503 |
1504 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", | 1504 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1652 DOMWindow::trace(visitor); | 1652 DOMWindow::trace(visitor); |
1653 Supplementable<LocalDOMWindow>::trace(visitor); | 1653 Supplementable<LocalDOMWindow>::trace(visitor); |
1654 } | 1654 } |
1655 | 1655 |
1656 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { | 1656 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { |
1657 visitor->traceWrappers(m_customElements); | 1657 visitor->traceWrappers(m_customElements); |
1658 DOMWindow::traceWrappers(visitor); | 1658 DOMWindow::traceWrappers(visitor); |
1659 } | 1659 } |
1660 | 1660 |
1661 } // namespace blink | 1661 } // namespace blink |
OLD | NEW |