OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |