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

Side by Side Diff: Source/core/page/FrameTree.cpp

Issue 955583002: InlinedVisitor: Migrate page 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
« no previous file with comments | « Source/core/page/FrameTree.h ('k') | Source/core/page/Page.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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 370
371 Frame* FrameTree::deepLastChild() const 371 Frame* FrameTree::deepLastChild() const
372 { 372 {
373 Frame* result = m_thisFrame; 373 Frame* result = m_thisFrame;
374 for (Frame* last = lastChild(); last; last = last->tree().lastChild()) 374 for (Frame* last = lastChild(); last; last = last->tree().lastChild())
375 result = last; 375 result = last;
376 376
377 return result; 377 return result;
378 } 378 }
379 379
380 void FrameTree::trace(Visitor* visitor) 380 DEFINE_TRACE(FrameTree)
381 { 381 {
382 visitor->trace(m_thisFrame); 382 visitor->trace(m_thisFrame);
383 } 383 }
384 384
385 } // namespace blink 385 } // namespace blink
386 386
387 #ifndef NDEBUG 387 #ifndef NDEBUG
388 388
389 static void printIndent(int indent) 389 static void printIndent(int indent)
390 { 390 {
(...skipping 28 matching lines...) Expand all
419 { 419 {
420 if (!frame) { 420 if (!frame) {
421 printf("Null input frame\n"); 421 printf("Null input frame\n");
422 return; 422 return;
423 } 423 }
424 424
425 printFrames(frame->tree().top(), frame, 0); 425 printFrames(frame->tree().top(), frame, 0);
426 } 426 }
427 427
428 #endif 428 #endif
OLDNEW
« no previous file with comments | « Source/core/page/FrameTree.h ('k') | Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698