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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 FrameTree::FrameTree(Frame* thisFrame) | 44 FrameTree::FrameTree(Frame* thisFrame) |
45 : m_thisFrame(thisFrame) | 45 : m_thisFrame(thisFrame) |
46 , m_scopedChildCount(invalidChildCount) | 46 , m_scopedChildCount(invalidChildCount) |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
50 FrameTree::~FrameTree() | 50 FrameTree::~FrameTree() |
51 { | 51 { |
52 // FIXME: Why is this here? Doesn't this parallel what we already do in ~Fra
me? | 52 // FIXME: Why is this here? Doesn't this parallel what we already do in ~Fra
me? |
53 for (Frame* child = firstChild(); child; child = child->tree().nextSibling()
) | 53 for (Frame* child = firstChild(); child; child = child->tree().nextSibling()
) |
54 child->setView(0); | 54 child->setView(nullptr); |
55 } | 55 } |
56 | 56 |
57 void FrameTree::setName(const AtomicString& name) | 57 void FrameTree::setName(const AtomicString& name) |
58 { | 58 { |
59 m_name = name; | 59 m_name = name; |
60 if (!parent()) { | 60 if (!parent()) { |
61 m_uniqueName = name; | 61 m_uniqueName = name; |
62 return; | 62 return; |
63 } | 63 } |
64 m_uniqueName = AtomicString(); // Remove our old frame name so it's not cons
idered in uniqueChildName. | 64 m_uniqueName = AtomicString(); // Remove our old frame name so it's not cons
idered in uniqueChildName. |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 { | 395 { |
396 if (!frame) { | 396 if (!frame) { |
397 printf("Null input frame\n"); | 397 printf("Null input frame\n"); |
398 return; | 398 return; |
399 } | 399 } |
400 | 400 |
401 printFrames(frame->tree().top(), frame, 0); | 401 printFrames(frame->tree().top(), frame, 0); |
402 } | 402 } |
403 | 403 |
404 #endif | 404 #endif |
OLD | NEW |