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

Side by Side Diff: Source/core/accessibility/AXImageMapLink.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 19 matching lines...) Expand all
30 #include "core/accessibility/AXImageMapLink.h" 30 #include "core/accessibility/AXImageMapLink.h"
31 31
32 #include "core/accessibility/AXObjectCache.h" 32 #include "core/accessibility/AXObjectCache.h"
33 #include "core/accessibility/AXRenderObject.h" 33 #include "core/accessibility/AXRenderObject.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 using namespace HTMLNames; 37 using namespace HTMLNames;
38 38
39 AXImageMapLink::AXImageMapLink() 39 AXImageMapLink::AXImageMapLink()
40 : m_areaElement(0) 40 : m_areaElement(nullptr)
41 , m_mapElement(0) 41 , m_mapElement(nullptr)
42 { 42 {
43 } 43 }
44 44
45 AXImageMapLink::~AXImageMapLink() 45 AXImageMapLink::~AXImageMapLink()
46 { 46 {
47 } 47 }
48 48
49 void AXImageMapLink::detachFromParent() 49 void AXImageMapLink::detachFromParent()
50 { 50 {
51 AXMockObject::detachFromParent(); 51 AXMockObject::detachFromParent();
52 m_areaElement = 0; 52 m_areaElement = nullptr;
53 m_mapElement = 0; 53 m_mapElement = nullptr;
54 } 54 }
55 55
56 PassRefPtr<AXImageMapLink> AXImageMapLink::create() 56 PassRefPtr<AXImageMapLink> AXImageMapLink::create()
57 { 57 {
58 return adoptRef(new AXImageMapLink()); 58 return adoptRef(new AXImageMapLink());
59 } 59 }
60 60
61 AXObject* AXImageMapLink::parentObject() const 61 AXObject* AXImageMapLink::parentObject() const
62 { 62 {
63 if (m_parent) 63 if (m_parent)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 else 149 else
150 renderer = m_mapElement->renderer(); 150 renderer = m_mapElement->renderer();
151 151
152 if (!renderer) 152 if (!renderer)
153 return LayoutRect(); 153 return LayoutRect();
154 154
155 return m_areaElement->computeRect(renderer); 155 return m_areaElement->computeRect(renderer);
156 } 156 }
157 157
158 } // namespace WebCore 158 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl ('k') | Source/core/accessibility/AXInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698