| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "sky/engine/wtf/RefCountedLeakCounter.h" | 46 #include "sky/engine/wtf/RefCountedLeakCounter.h" |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); | 50 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); |
| 51 | 51 |
| 52 Frame::Frame(FrameClient* client, FrameHost* host) | 52 Frame::Frame(FrameClient* client, FrameHost* host) |
| 53 : m_host(host) | 53 : m_host(host) |
| 54 , m_client(client) | 54 , m_client(client) |
| 55 { | 55 { |
| 56 ASSERT(page()); | 56 // ASSERT(page()); |
| 57 | 57 |
| 58 #ifndef NDEBUG | 58 #ifndef NDEBUG |
| 59 frameCounter.increment(); | 59 frameCounter.increment(); |
| 60 #endif | 60 #endif |
| 61 } | 61 } |
| 62 | 62 |
| 63 Frame::~Frame() | 63 Frame::~Frame() |
| 64 { | 64 { |
| 65 setDOMWindow(nullptr); | 65 setDOMWindow(nullptr); |
| 66 | 66 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 void Frame::setDOMWindow(PassRefPtr<LocalDOMWindow> domWindow) | 98 void Frame::setDOMWindow(PassRefPtr<LocalDOMWindow> domWindow) |
| 99 { | 99 { |
| 100 if (m_domWindow) | 100 if (m_domWindow) |
| 101 m_domWindow->reset(); | 101 m_domWindow->reset(); |
| 102 m_domWindow = domWindow; | 102 m_domWindow = domWindow; |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |