Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: Source/core/frame/Frame.cpp

Issue 211373002: Oilpan: move DOMWindow object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: setNativeInfoForInnerGlobalObject() -> setNativeInfoForHiddenWrapper() Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/frame/Frame.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return 0; 118 return 0;
119 } 119 }
120 120
121 Settings* Frame::settings() const 121 Settings* Frame::settings() const
122 { 122 {
123 if (m_host) 123 if (m_host)
124 return &m_host->settings(); 124 return &m_host->settings();
125 return 0; 125 return 0;
126 } 126 }
127 127
128 void Frame::setDOMWindow(PassRefPtr<DOMWindow> domWindow) 128 void Frame::setDOMWindow(PassRefPtrWillBeRawPtr<DOMWindow> domWindow)
129 { 129 {
130 if (m_domWindow) 130 if (m_domWindow)
131 m_domWindow->reset(); 131 m_domWindow->reset();
132 m_domWindow = domWindow; 132 m_domWindow = domWindow;
133 } 133 }
134 134
135 static ChromeClient& emptyChromeClient() 135 static ChromeClient& emptyChromeClient()
136 { 136 {
137 DEFINE_STATIC_LOCAL(EmptyChromeClient, client, ()); 137 DEFINE_STATIC_LOCAL(EmptyChromeClient, client, ());
138 return client; 138 return client;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 m_host = 0; 173 m_host = 0;
174 } 174 }
175 175
176 bool Frame::isMainFrame() const 176 bool Frame::isMainFrame() const
177 { 177 {
178 Page* page = this->page(); 178 Page* page = this->page();
179 return page && this == page->mainFrame(); 179 return page && this == page->mainFrame();
180 } 180 }
181 181
182 } // namespace WebCore 182 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/Frame.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698