| 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 | 573 |
| 574 Page* LocalDOMWindow::page() | 574 Page* LocalDOMWindow::page() |
| 575 { | 575 { |
| 576 return frame() ? frame()->page() : 0; | 576 return frame() ? frame()->page() : 0; |
| 577 } | 577 } |
| 578 | 578 |
| 579 void LocalDOMWindow::willDetachFrameHost() | 579 void LocalDOMWindow::willDetachFrameHost() |
| 580 { | 580 { |
| 581 frame()->host()->eventHandlerRegistry().didRemoveAllEventHandlers(*this); | 581 frame()->host()->eventHandlerRegistry().didRemoveAllEventHandlers(*this); |
| 582 frame()->host()->consoleMessageStorage().frameWindowDiscarded(this); | 582 frame()->host()->consoleMessageStorage().frameWindowDiscarded(this); |
| 583 LifecycleContext<LocalDOMWindow>::contextDestroyed(); |
| 583 } | 584 } |
| 584 | 585 |
| 585 void LocalDOMWindow::willDestroyDocumentInFrame() | 586 void LocalDOMWindow::willDestroyDocumentInFrame() |
| 586 { | 587 { |
| 587 for (const auto& domWindowProperty : m_properties) | 588 for (const auto& domWindowProperty : m_properties) |
| 588 domWindowProperty->willDestroyGlobalObjectInFrame(); | 589 domWindowProperty->willDestroyGlobalObjectInFrame(); |
| 589 } | 590 } |
| 590 | 591 |
| 591 void LocalDOMWindow::willDetachDocumentFromFrame() | 592 void LocalDOMWindow::willDetachDocumentFromFrame() |
| 592 { | 593 { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 621 m_navigator = nullptr; | 622 m_navigator = nullptr; |
| 622 m_performance = nullptr; | 623 m_performance = nullptr; |
| 623 m_location = nullptr; | 624 m_location = nullptr; |
| 624 m_media = nullptr; | 625 m_media = nullptr; |
| 625 m_sessionStorage = nullptr; | 626 m_sessionStorage = nullptr; |
| 626 m_localStorage = nullptr; | 627 m_localStorage = nullptr; |
| 627 m_applicationCache = nullptr; | 628 m_applicationCache = nullptr; |
| 628 #if ENABLE(ASSERT) | 629 #if ENABLE(ASSERT) |
| 629 m_hasBeenReset = true; | 630 m_hasBeenReset = true; |
| 630 #endif | 631 #endif |
| 632 |
| 633 LifecycleContext<LocalDOMWindow>::contextDestroyed(); |
| 631 } | 634 } |
| 632 | 635 |
| 633 bool LocalDOMWindow::isCurrentlyDisplayedInFrame() const | 636 bool LocalDOMWindow::isCurrentlyDisplayedInFrame() const |
| 634 { | 637 { |
| 635 return frame() && frame()->domWindow() == this && frame()->host(); | 638 return frame() && frame()->domWindow() == this && frame()->host(); |
| 636 } | 639 } |
| 637 | 640 |
| 638 void LocalDOMWindow::sendOrientationChangeEvent() | 641 void LocalDOMWindow::sendOrientationChangeEvent() |
| 639 { | 642 { |
| 640 ASSERT(RuntimeEnabledFeatures::orientationEventEnabled()); | 643 ASSERT(RuntimeEnabledFeatures::orientationEventEnabled()); |
| (...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1968 return m_frameObserver->frame(); | 1971 return m_frameObserver->frame(); |
| 1969 } | 1972 } |
| 1970 | 1973 |
| 1971 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) | 1974 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) |
| 1972 { | 1975 { |
| 1973 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. | 1976 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. |
| 1974 return v8::Handle<v8::Object>(); | 1977 return v8::Handle<v8::Object>(); |
| 1975 } | 1978 } |
| 1976 | 1979 |
| 1977 } // namespace blink | 1980 } // namespace blink |
| OLD | NEW |