| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "core/inspector/ScriptCallStack.h" | 63 #include "core/inspector/ScriptCallStack.h" |
| 64 #include "core/loader/DocumentLoader.h" | 64 #include "core/loader/DocumentLoader.h" |
| 65 #include "core/loader/FrameLoadRequest.h" | 65 #include "core/loader/FrameLoadRequest.h" |
| 66 #include "core/loader/FrameLoader.h" | 66 #include "core/loader/FrameLoader.h" |
| 67 #include "core/loader/FrameLoaderClient.h" | 67 #include "core/loader/FrameLoaderClient.h" |
| 68 #include "core/loader/appcache/DOMApplicationCache.h" | 68 #include "core/loader/appcache/DOMApplicationCache.h" |
| 69 #include "core/page/BarProp.h" | 69 #include "core/page/BarProp.h" |
| 70 #include "core/page/Chrome.h" | 70 #include "core/page/Chrome.h" |
| 71 #include "core/page/ChromeClient.h" | 71 #include "core/page/ChromeClient.h" |
| 72 #include "core/page/Console.h" | 72 #include "core/page/Console.h" |
| 73 #include "core/page/Crypto.h" | |
| 74 #include "core/page/DOMPoint.h" | 73 #include "core/page/DOMPoint.h" |
| 75 #include "core/page/DOMTimer.h" | 74 #include "core/page/DOMTimer.h" |
| 76 #include "core/page/EventHandler.h" | 75 #include "core/page/EventHandler.h" |
| 77 #include "core/page/FocusController.h" | 76 #include "core/page/FocusController.h" |
| 78 #include "core/page/Frame.h" | 77 #include "core/page/Frame.h" |
| 79 #include "core/page/FrameTree.h" | 78 #include "core/page/FrameTree.h" |
| 80 #include "core/page/FrameView.h" | 79 #include "core/page/FrameView.h" |
| 81 #include "core/page/History.h" | 80 #include "core/page/History.h" |
| 82 #include "core/page/Location.h" | 81 #include "core/page/Location.h" |
| 83 #include "core/page/Navigator.h" | 82 #include "core/page/Navigator.h" |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 willDestroyDocumentInFrame(); | 534 willDestroyDocumentInFrame(); |
| 536 resetDOMWindowProperties(); | 535 resetDOMWindowProperties(); |
| 537 } | 536 } |
| 538 | 537 |
| 539 void DOMWindow::resetDOMWindowProperties() | 538 void DOMWindow::resetDOMWindowProperties() |
| 540 { | 539 { |
| 541 m_properties.clear(); | 540 m_properties.clear(); |
| 542 | 541 |
| 543 m_screen = 0; | 542 m_screen = 0; |
| 544 m_history = 0; | 543 m_history = 0; |
| 545 m_crypto = 0; | |
| 546 m_locationbar = 0; | 544 m_locationbar = 0; |
| 547 m_menubar = 0; | 545 m_menubar = 0; |
| 548 m_personalbar = 0; | 546 m_personalbar = 0; |
| 549 m_scrollbars = 0; | 547 m_scrollbars = 0; |
| 550 m_statusbar = 0; | 548 m_statusbar = 0; |
| 551 m_toolbar = 0; | 549 m_toolbar = 0; |
| 552 m_console = 0; | 550 m_console = 0; |
| 553 m_navigator = 0; | 551 m_navigator = 0; |
| 554 m_performance = 0; | 552 m_performance = 0; |
| 555 m_location = 0; | 553 m_location = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 585 | 583 |
| 586 History* DOMWindow::history() const | 584 History* DOMWindow::history() const |
| 587 { | 585 { |
| 588 if (!isCurrentlyDisplayedInFrame()) | 586 if (!isCurrentlyDisplayedInFrame()) |
| 589 return 0; | 587 return 0; |
| 590 if (!m_history) | 588 if (!m_history) |
| 591 m_history = History::create(m_frame); | 589 m_history = History::create(m_frame); |
| 592 return m_history.get(); | 590 return m_history.get(); |
| 593 } | 591 } |
| 594 | 592 |
| 595 Crypto* DOMWindow::crypto() const | |
| 596 { | |
| 597 if (!isCurrentlyDisplayedInFrame()) | |
| 598 return 0; | |
| 599 if (!m_crypto) | |
| 600 m_crypto = Crypto::create(); | |
| 601 return m_crypto.get(); | |
| 602 } | |
| 603 | |
| 604 BarProp* DOMWindow::locationbar() const | 593 BarProp* DOMWindow::locationbar() const |
| 605 { | 594 { |
| 606 if (!isCurrentlyDisplayedInFrame()) | 595 if (!isCurrentlyDisplayedInFrame()) |
| 607 return 0; | 596 return 0; |
| 608 if (!m_locationbar) | 597 if (!m_locationbar) |
| 609 m_locationbar = BarProp::create(m_frame, BarProp::Locationbar); | 598 m_locationbar = BarProp::create(m_frame, BarProp::Locationbar); |
| 610 return m_locationbar.get(); | 599 return m_locationbar.get(); |
| 611 } | 600 } |
| 612 | 601 |
| 613 BarProp* DOMWindow::menubar() const | 602 BarProp* DOMWindow::menubar() const |
| (...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1909 | 1898 |
| 1910 Frame* child = frame->tree()->scopedChild(index); | 1899 Frame* child = frame->tree()->scopedChild(index); |
| 1911 if (child) | 1900 if (child) |
| 1912 return child->document()->domWindow(); | 1901 return child->document()->domWindow(); |
| 1913 | 1902 |
| 1914 return 0; | 1903 return 0; |
| 1915 } | 1904 } |
| 1916 | 1905 |
| 1917 | 1906 |
| 1918 } // namespace WebCore | 1907 } // namespace WebCore |
| OLD | NEW |