| 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 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 documentLoader->fetcher()->countPreloads()) | 1458 documentLoader->fetcher()->countPreloads()) |
| 1459 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, | 1459 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, |
| 1460 BLINK_FROM_HERE); | 1460 BLINK_FROM_HERE); |
| 1461 } else { | 1461 } else { |
| 1462 dispatchEvent(loadEvent, document()); | 1462 dispatchEvent(loadEvent, document()); |
| 1463 } | 1463 } |
| 1464 | 1464 |
| 1465 if (frame()) { | 1465 if (frame()) { |
| 1466 Performance* performance = DOMWindowPerformance::performance(*this); | 1466 Performance* performance = DOMWindowPerformance::performance(*this); |
| 1467 DCHECK(performance); | 1467 DCHECK(performance); |
| 1468 performance->addNavigationTiming(frame()); | 1468 performance->notifyNavigationTimingToObserver(); |
| 1469 } | 1469 } |
| 1470 | 1470 |
| 1471 // For load events, send a separate load event to the enclosing frame only. | 1471 // For load events, send a separate load event to the enclosing frame only. |
| 1472 // This is a DOM extension and is independent of bubbling/capturing rules of | 1472 // This is a DOM extension and is independent of bubbling/capturing rules of |
| 1473 // the DOM. | 1473 // the DOM. |
| 1474 FrameOwner* owner = frame() ? frame()->owner() : nullptr; | 1474 FrameOwner* owner = frame() ? frame()->owner() : nullptr; |
| 1475 if (owner) | 1475 if (owner) |
| 1476 owner->dispatchLoad(); | 1476 owner->dispatchLoad(); |
| 1477 | 1477 |
| 1478 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", | 1478 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 DOMWindow::trace(visitor); | 1615 DOMWindow::trace(visitor); |
| 1616 Supplementable<LocalDOMWindow>::trace(visitor); | 1616 Supplementable<LocalDOMWindow>::trace(visitor); |
| 1617 } | 1617 } |
| 1618 | 1618 |
| 1619 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { | 1619 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { |
| 1620 visitor->traceWrappers(m_customElements); | 1620 visitor->traceWrappers(m_customElements); |
| 1621 DOMWindow::traceWrappers(visitor); | 1621 DOMWindow::traceWrappers(visitor); |
| 1622 } | 1622 } |
| 1623 | 1623 |
| 1624 } // namespace blink | 1624 } // namespace blink |
| OLD | NEW |