| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 using namespace HTMLNames; | 56 using namespace HTMLNames; |
| 57 | 57 |
| 58 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); | 58 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); |
| 59 | 59 |
| 60 Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner) | 60 Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner) |
| 61 : m_treeNode(this) | 61 : m_treeNode(this) |
| 62 , m_host(host) | 62 , m_host(host) |
| 63 , m_owner(owner) | 63 , m_owner(owner) |
| 64 , m_client(client) | 64 , m_client(client) |
| 65 , m_remotePlatformLayer(0) | 65 , m_remotePlatformLayer(0) |
| 66 , m_hasBeenClosed(false) |
| 66 { | 67 { |
| 67 ASSERT(page()); | 68 ASSERT(page()); |
| 68 | 69 |
| 69 #ifndef NDEBUG | 70 #ifndef NDEBUG |
| 70 frameCounter.increment(); | 71 frameCounter.increment(); |
| 71 #endif | 72 #endif |
| 72 | 73 |
| 73 if (m_owner) { | 74 if (m_owner) { |
| 74 page()->incrementSubframeCount(); | 75 page()->incrementSubframeCount(); |
| 75 if (m_owner->isLocal()) | 76 if (m_owner->isLocal()) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 return 0; | 116 return 0; |
| 116 } | 117 } |
| 117 | 118 |
| 118 Settings* Frame::settings() const | 119 Settings* Frame::settings() const |
| 119 { | 120 { |
| 120 if (m_host) | 121 if (m_host) |
| 121 return &m_host->settings(); | 122 return &m_host->settings(); |
| 122 return 0; | 123 return 0; |
| 123 } | 124 } |
| 124 | 125 |
| 126 void Frame::setHasBeenClosed() |
| 127 { |
| 128 ASSERT(!m_hasBeenClosed); |
| 129 m_hasBeenClosed = true; |
| 130 } |
| 131 |
| 125 void Frame::setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow> domWindow) | 132 void Frame::setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow> domWindow) |
| 126 { | 133 { |
| 127 if (m_domWindow) | 134 if (m_domWindow) |
| 128 m_domWindow->reset(); | 135 m_domWindow->reset(); |
| 129 m_domWindow = domWindow; | 136 m_domWindow = domWindow; |
| 130 } | 137 } |
| 131 | 138 |
| 132 static ChromeClient& emptyChromeClient() | 139 static ChromeClient& emptyChromeClient() |
| 133 { | 140 { |
| 134 DEFINE_STATIC_LOCAL(EmptyChromeClient, client, ()); | 141 DEFINE_STATIC_LOCAL(EmptyChromeClient, client, ()); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 } | 206 } |
| 200 m_owner = 0; | 207 m_owner = 0; |
| 201 } | 208 } |
| 202 | 209 |
| 203 HTMLFrameOwnerElement* Frame::deprecatedLocalOwner() const | 210 HTMLFrameOwnerElement* Frame::deprecatedLocalOwner() const |
| 204 { | 211 { |
| 205 return m_owner && m_owner->isLocal() ? toHTMLFrameOwnerElement(m_owner) : 0; | 212 return m_owner && m_owner->isLocal() ? toHTMLFrameOwnerElement(m_owner) : 0; |
| 206 } | 213 } |
| 207 | 214 |
| 208 } // namespace blink | 215 } // namespace blink |
| OLD | NEW |