| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 } | 739 } |
| 740 | 740 |
| 741 return true; | 741 return true; |
| 742 } | 742 } |
| 743 | 743 |
| 744 void LocalDOMWindow::dispatchLoadEvent() | 744 void LocalDOMWindow::dispatchLoadEvent() |
| 745 { | 745 { |
| 746 RefPtr<Event> loadEvent(Event::create(EventTypeNames::load)); | 746 RefPtr<Event> loadEvent(Event::create(EventTypeNames::load)); |
| 747 dispatchEvent(loadEvent, document()); | 747 dispatchEvent(loadEvent, document()); |
| 748 | 748 |
| 749 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "MarkLo
ad", "data", InspectorMarkLoadEvent::data(frame())); | 749 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "MarkLo
ad", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data(frame())); |
| 750 } | 750 } |
| 751 | 751 |
| 752 bool LocalDOMWindow::dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventT
arget> prpTarget) | 752 bool LocalDOMWindow::dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventT
arget> prpTarget) |
| 753 { | 753 { |
| 754 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 754 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 755 | 755 |
| 756 RefPtr<EventTarget> protect(this); | 756 RefPtr<EventTarget> protect(this); |
| 757 RefPtr<Event> event = prpEvent; | 757 RefPtr<Event> event = prpEvent; |
| 758 | 758 |
| 759 event->setTarget(prpTarget ? prpTarget : this); | 759 event->setTarget(prpTarget ? prpTarget : this); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 { | 810 { |
| 811 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin
dow>::lifecycleNotifier()); | 811 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin
dow>::lifecycleNotifier()); |
| 812 } | 812 } |
| 813 | 813 |
| 814 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo
tifier() | 814 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo
tifier() |
| 815 { | 815 { |
| 816 return DOMWindowLifecycleNotifier::create(this); | 816 return DOMWindowLifecycleNotifier::create(this); |
| 817 } | 817 } |
| 818 | 818 |
| 819 } // namespace blink | 819 } // namespace blink |
| OLD | NEW |