| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 return static_cast<FrameLoaderClient*>(Frame::client()); | 848 return static_cast<FrameLoaderClient*>(Frame::client()); |
| 849 } | 849 } |
| 850 | 850 |
| 851 PluginData* LocalFrame::pluginData() const | 851 PluginData* LocalFrame::pluginData() const |
| 852 { | 852 { |
| 853 if (!loader().allowPlugins(NotAboutToInstantiatePlugin)) | 853 if (!loader().allowPlugins(NotAboutToInstantiatePlugin)) |
| 854 return nullptr; | 854 return nullptr; |
| 855 return page()->pluginData(); | 855 return page()->pluginData(); |
| 856 } | 856 } |
| 857 | 857 |
| 858 void LocalFrame::purgeMemory() |
| 859 { |
| 860 if (Document* doc = document()) |
| 861 doc->purgeMemory(); |
| 862 if (FrameView* v = view()) |
| 863 v->purgeMemory(); |
| 864 } |
| 865 |
| 858 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); | 866 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); |
| 859 | 867 |
| 860 FrameNavigationDisabler::FrameNavigationDisabler(LocalFrame& frame) | 868 FrameNavigationDisabler::FrameNavigationDisabler(LocalFrame& frame) |
| 861 : m_frame(&frame) | 869 : m_frame(&frame) |
| 862 { | 870 { |
| 863 m_frame->disableNavigation(); | 871 m_frame->disableNavigation(); |
| 864 } | 872 } |
| 865 | 873 |
| 866 FrameNavigationDisabler::~FrameNavigationDisabler() | 874 FrameNavigationDisabler::~FrameNavigationDisabler() |
| 867 { | 875 { |
| 868 m_frame->enableNavigation(); | 876 m_frame->enableNavigation(); |
| 869 } | 877 } |
| 870 | 878 |
| 871 ScopedFrameBlamer::ScopedFrameBlamer(LocalFrame* frame) | 879 ScopedFrameBlamer::ScopedFrameBlamer(LocalFrame* frame) |
| 872 : m_frame(frame) | 880 : m_frame(frame) |
| 873 { | 881 { |
| 874 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 882 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 875 m_frame->client()->frameBlameContext()->Enter(); | 883 m_frame->client()->frameBlameContext()->Enter(); |
| 876 } | 884 } |
| 877 | 885 |
| 878 ScopedFrameBlamer::~ScopedFrameBlamer() | 886 ScopedFrameBlamer::~ScopedFrameBlamer() |
| 879 { | 887 { |
| 880 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 888 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 881 m_frame->client()->frameBlameContext()->Leave(); | 889 m_frame->client()->frameBlameContext()->Leave(); |
| 882 } | 890 } |
| 883 | 891 |
| 884 } // namespace blink | 892 } // namespace blink |
| OLD | NEW |