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

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

Issue 952813002: InlinedVisitor: Migrate frame to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 HTMLFrameOwnerElement* ownerElement = m_frame->deprecatedLocalOwner(); 203 HTMLFrameOwnerElement* ownerElement = m_frame->deprecatedLocalOwner();
204 if (ownerElement && ownerElement->ownedWidget() == this) 204 if (ownerElement && ownerElement->ownedWidget() == this)
205 ownerElement->setWidget(nullptr); 205 ownerElement->setWidget(nullptr);
206 206
207 disposeAutoSizeInfo(); 207 disposeAutoSizeInfo();
208 #if ENABLE(OILPAN) && ENABLE(ASSERT) 208 #if ENABLE(OILPAN) && ENABLE(ASSERT)
209 m_hasBeenDisposed = true; 209 m_hasBeenDisposed = true;
210 #endif 210 #endif
211 } 211 }
212 212
213 void FrameView::trace(Visitor* visitor) 213 DEFINE_TRACE(FrameView)
214 { 214 {
215 #if ENABLE(OILPAN) 215 #if ENABLE(OILPAN)
216 visitor->trace(m_frame); 216 visitor->trace(m_frame);
217 visitor->trace(m_nodeToDraw); 217 visitor->trace(m_nodeToDraw);
218 visitor->trace(m_maintainScrollPositionAnchor); 218 visitor->trace(m_maintainScrollPositionAnchor);
219 visitor->trace(m_autoSizeInfo); 219 visitor->trace(m_autoSizeInfo);
220 visitor->trace(m_horizontalScrollbar); 220 visitor->trace(m_horizontalScrollbar);
221 visitor->trace(m_verticalScrollbar); 221 visitor->trace(m_verticalScrollbar);
222 visitor->trace(m_children); 222 visitor->trace(m_children);
223 #endif 223 #endif
(...skipping 3850 matching lines...) Expand 10 before | Expand all | Expand 10 after
4074 { 4074 {
4075 Settings* settings = frame().settings(); 4075 Settings* settings = frame().settings();
4076 if (!settings || !settings->rootLayerScrolls()) 4076 if (!settings || !settings->rootLayerScrolls())
4077 return this; 4077 return this;
4078 4078
4079 RenderView* renderView = this->renderView(); 4079 RenderView* renderView = this->renderView();
4080 return renderView ? renderView->scrollableArea() : nullptr; 4080 return renderView ? renderView->scrollableArea() : nullptr;
4081 } 4081 }
4082 4082
4083 } // namespace blink 4083 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698