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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/accessibility/AXImageMapLink.cpp
diff --git a/Source/modules/accessibility/AXImageMapLink.cpp b/Source/modules/accessibility/AXImageMapLink.cpp
index f8cf6228fbcc54f9998b386520ffaf79dd0d405c..1b53cd59bcb041ffdc7da5a7f195fd347767f402 100644
--- a/Source/modules/accessibility/AXImageMapLink.cpp
+++ b/Source/modules/accessibility/AXImageMapLink.cpp
@@ -54,9 +54,9 @@ void AXImageMapLink::detachFromParent()
m_mapElement = nullptr;
}
-PassRefPtr<AXImageMapLink> AXImageMapLink::create(AXObjectCacheImpl* axObjectCache)
+PassRefPtrWillBeRawPtr<AXImageMapLink> AXImageMapLink::create(AXObjectCacheImpl* axObjectCache)
{
- return adoptRef(new AXImageMapLink(axObjectCache));
+ return adoptRefWillBeNoop(new AXImageMapLink(axObjectCache));
}
AXObject* AXImageMapLink::computeParent() const
@@ -141,4 +141,11 @@ LayoutRect AXImageMapLink::elementRect() const
return m_areaElement->computeRect(layoutObject);
}
+DEFINE_TRACE(AXImageMapLink)
+{
+ AXMockObject::trace(visitor);
+ visitor->trace(m_areaElement);
+ visitor->trace(m_mapElement);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698