| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 | 542 |
| 543 void LocalDOMWindow::frameDestroyed() | 543 void LocalDOMWindow::frameDestroyed() |
| 544 { | 544 { |
| 545 FrameDestructionObserver::frameDestroyed(); | 545 FrameDestructionObserver::frameDestroyed(); |
| 546 reset(); | 546 reset(); |
| 547 } | 547 } |
| 548 | 548 |
| 549 void LocalDOMWindow::willDetachFrameHost() | 549 void LocalDOMWindow::willDetachFrameHost() |
| 550 { | 550 { |
| 551 m_frame->host()->eventHandlerRegistry().didRemoveAllEventHandlers(*this); | 551 m_frame->host()->eventHandlerRegistry().didRemoveAllEventHandlers(*this); |
| 552 m_frame->console().messageStorage()->windowCleared(this); |
| 552 InspectorInstrumentation::frameWindowDiscarded(m_frame, this); | 553 InspectorInstrumentation::frameWindowDiscarded(m_frame, this); |
| 553 } | 554 } |
| 554 | 555 |
| 555 void LocalDOMWindow::willDestroyDocumentInFrame() | 556 void LocalDOMWindow::willDestroyDocumentInFrame() |
| 556 { | 557 { |
| 557 // It is necessary to copy m_properties to a separate vector because the DOM
WindowProperties may | 558 // It is necessary to copy m_properties to a separate vector because the DOM
WindowProperties may |
| 558 // unregister themselves from the LocalDOMWindow as a result of the call to
willDestroyGlobalObjectInFrame. | 559 // unregister themselves from the LocalDOMWindow as a result of the call to
willDestroyGlobalObjectInFrame. |
| 559 Vector<DOMWindowProperty*> properties; | 560 Vector<DOMWindowProperty*> properties; |
| 560 copyToVector(m_properties, properties); | 561 copyToVector(m_properties, properties); |
| 561 for (size_t i = 0; i < properties.size(); ++i) | 562 for (size_t i = 0; i < properties.size(); ++i) |
| (...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 visitor->trace(m_applicationCache); | 1915 visitor->trace(m_applicationCache); |
| 1915 visitor->trace(m_performance); | 1916 visitor->trace(m_performance); |
| 1916 visitor->trace(m_css); | 1917 visitor->trace(m_css); |
| 1917 visitor->trace(m_eventQueue); | 1918 visitor->trace(m_eventQueue); |
| 1918 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); | 1919 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); |
| 1919 EventTargetWithInlineData::trace(visitor); | 1920 EventTargetWithInlineData::trace(visitor); |
| 1920 LifecycleContext<LocalDOMWindow>::trace(visitor); | 1921 LifecycleContext<LocalDOMWindow>::trace(visitor); |
| 1921 } | 1922 } |
| 1922 | 1923 |
| 1923 } // namespace blink | 1924 } // namespace blink |
| OLD | NEW |