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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 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/FocusController.cpp ('k') | Source/core/page/HistoryController.cpp » ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | Source/core/page/HistoryController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698