| 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 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1597 { | 1597 { |
| 1598 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); | 1598 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); |
| 1599 | 1599 |
| 1600 RefPtr<EventTarget> protect = this; | 1600 RefPtr<EventTarget> protect = this; |
| 1601 RefPtrWillBeRawPtr<Event> event = prpEvent; | 1601 RefPtrWillBeRawPtr<Event> event = prpEvent; |
| 1602 | 1602 |
| 1603 event->setTarget(prpTarget ? prpTarget : this); | 1603 event->setTarget(prpTarget ? prpTarget : this); |
| 1604 event->setCurrentTarget(this); | 1604 event->setCurrentTarget(this); |
| 1605 event->setEventPhase(Event::AT_TARGET); | 1605 event->setEventPhase(Event::AT_TARGET); |
| 1606 | 1606 |
| 1607 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools-timeline"), "DOMWindow::dis
patchEvent", "type", event->type().ascii()); |
| 1608 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeli
ne migrates to tracing. |
| 1607 InspectorInstrumentationCookie cookie = InspectorInstrumentation::willDispat
chEventOnWindow(frame(), *event, this); | 1609 InspectorInstrumentationCookie cookie = InspectorInstrumentation::willDispat
chEventOnWindow(frame(), *event, this); |
| 1608 | 1610 |
| 1609 bool result = fireEventListeners(event.get()); | 1611 bool result = fireEventListeners(event.get()); |
| 1610 | 1612 |
| 1611 InspectorInstrumentation::didDispatchEventOnWindow(cookie); | 1613 InspectorInstrumentation::didDispatchEventOnWindow(cookie); |
| 1612 | 1614 |
| 1613 return result; | 1615 return result; |
| 1614 } | 1616 } |
| 1615 | 1617 |
| 1616 void DOMWindow::removeAllEventListeners() | 1618 void DOMWindow::removeAllEventListeners() |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 visitor->trace(m_media); | 1888 visitor->trace(m_media); |
| 1887 visitor->trace(m_sessionStorage); | 1889 visitor->trace(m_sessionStorage); |
| 1888 visitor->trace(m_localStorage); | 1890 visitor->trace(m_localStorage); |
| 1889 visitor->trace(m_applicationCache); | 1891 visitor->trace(m_applicationCache); |
| 1890 visitor->trace(m_performance); | 1892 visitor->trace(m_performance); |
| 1891 visitor->trace(m_css); | 1893 visitor->trace(m_css); |
| 1892 WillBeHeapSupplementable<DOMWindow>::trace(visitor); | 1894 WillBeHeapSupplementable<DOMWindow>::trace(visitor); |
| 1893 } | 1895 } |
| 1894 | 1896 |
| 1895 } // namespace WebCore | 1897 } // namespace WebCore |
| OLD | NEW |