| 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 } | 731 } |
| 732 | 732 |
| 733 return true; | 733 return true; |
| 734 } | 734 } |
| 735 | 735 |
| 736 void LocalDOMWindow::dispatchLoadEvent() | 736 void LocalDOMWindow::dispatchLoadEvent() |
| 737 { | 737 { |
| 738 RefPtr<Event> loadEvent(Event::create(EventTypeNames::load)); | 738 RefPtr<Event> loadEvent(Event::create(EventTypeNames::load)); |
| 739 dispatchEvent(loadEvent, document()); | 739 dispatchEvent(loadEvent, document()); |
| 740 | 740 |
| 741 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "MarkLo
ad", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data(frame())); | 741 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "MarkLo
ad", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data()); |
| 742 } | 742 } |
| 743 | 743 |
| 744 bool LocalDOMWindow::dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventT
arget> prpTarget) | 744 bool LocalDOMWindow::dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventT
arget> prpTarget) |
| 745 { | 745 { |
| 746 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 746 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 747 | 747 |
| 748 RefPtr<EventTarget> protect(this); | 748 RefPtr<EventTarget> protect(this); |
| 749 RefPtr<Event> event = prpEvent; | 749 RefPtr<Event> event = prpEvent; |
| 750 | 750 |
| 751 event->setTarget(prpTarget ? prpTarget : this); | 751 event->setTarget(prpTarget ? prpTarget : this); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 { | 797 { |
| 798 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin
dow>::lifecycleNotifier()); | 798 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin
dow>::lifecycleNotifier()); |
| 799 } | 799 } |
| 800 | 800 |
| 801 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo
tifier() | 801 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo
tifier() |
| 802 { | 802 { |
| 803 return DOMWindowLifecycleNotifier::create(this); | 803 return DOMWindowLifecycleNotifier::create(this); |
| 804 } | 804 } |
| 805 | 805 |
| 806 } // namespace blink | 806 } // namespace blink |
| OLD | NEW |