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

Side by Side Diff: Source/modules/accessibility/AXImageMapLink.cpp

Issue 1072273006: Oilpan: Prepare moving AXObject to heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 { 47 {
48 } 48 }
49 49
50 void AXImageMapLink::detachFromParent() 50 void AXImageMapLink::detachFromParent()
51 { 51 {
52 AXMockObject::detachFromParent(); 52 AXMockObject::detachFromParent();
53 m_areaElement = nullptr; 53 m_areaElement = nullptr;
54 m_mapElement = nullptr; 54 m_mapElement = nullptr;
55 } 55 }
56 56
57 PassRefPtr<AXImageMapLink> AXImageMapLink::create(AXObjectCacheImpl* axObjectCac he) 57 PassRefPtrWillBeRawPtr<AXImageMapLink> AXImageMapLink::create(AXObjectCacheImpl* axObjectCache)
58 { 58 {
59 return adoptRef(new AXImageMapLink(axObjectCache)); 59 return adoptRefWillBeNoop(new AXImageMapLink(axObjectCache));
60 } 60 }
61 61
62 AXObject* AXImageMapLink::computeParent() const 62 AXObject* AXImageMapLink::computeParent() const
63 { 63 {
64 if (m_parent) 64 if (m_parent)
65 return m_parent; 65 return m_parent;
66 66
67 if (!m_mapElement.get() || !m_mapElement->layoutObject()) 67 if (!m_mapElement.get() || !m_mapElement->layoutObject())
68 return 0; 68 return 0;
69 69
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 layoutObject = toAXLayoutObject(m_parent)->layoutObject(); 134 layoutObject = toAXLayoutObject(m_parent)->layoutObject();
135 else 135 else
136 layoutObject = m_mapElement->layoutObject(); 136 layoutObject = m_mapElement->layoutObject();
137 137
138 if (!layoutObject) 138 if (!layoutObject)
139 return LayoutRect(); 139 return LayoutRect();
140 140
141 return m_areaElement->computeRect(layoutObject); 141 return m_areaElement->computeRect(layoutObject);
142 } 142 }
143 143
144 DEFINE_TRACE(AXImageMapLink)
145 {
146 AXMockObject::trace(visitor);
haraken 2015/05/28 10:48:40 Make the ::trace call a tail call. The same commen
keishi 2015/06/08 06:27:20 Done.
147 visitor->trace(m_areaElement);
148 visitor->trace(m_mapElement);
149 }
150
144 } // namespace blink 151 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698