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

Unified Diff: Source/modules/accessibility/AXImageMapLink.cpp

Issue 1175533004: Refactor: Clear m_axObjectCache when AXObject detaches (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added ASSERT 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/accessibility/AXImageMapLink.h ('k') | Source/modules/accessibility/AXInlineTextBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXImageMapLink.cpp
diff --git a/Source/modules/accessibility/AXImageMapLink.cpp b/Source/modules/accessibility/AXImageMapLink.cpp
index f8cf6228fbcc54f9998b386520ffaf79dd0d405c..1d26401d4755a2eb79ab61d194e7432ed4608edc 100644
--- a/Source/modules/accessibility/AXImageMapLink.cpp
+++ b/Source/modules/accessibility/AXImageMapLink.cpp
@@ -36,7 +36,7 @@ namespace blink {
using namespace HTMLNames;
-AXImageMapLink::AXImageMapLink(AXObjectCacheImpl* axObjectCache)
+AXImageMapLink::AXImageMapLink(AXObjectCacheImpl& axObjectCache)
: AXMockObject(axObjectCache)
, m_areaElement(nullptr)
, m_mapElement(nullptr)
@@ -54,7 +54,7 @@ void AXImageMapLink::detachFromParent()
m_mapElement = nullptr;
}
-PassRefPtr<AXImageMapLink> AXImageMapLink::create(AXObjectCacheImpl* axObjectCache)
+PassRefPtr<AXImageMapLink> AXImageMapLink::create(AXObjectCacheImpl& axObjectCache)
{
return adoptRef(new AXImageMapLink(axObjectCache));
}
@@ -67,7 +67,7 @@ AXObject* AXImageMapLink::computeParent() const
if (!m_mapElement.get() || !m_mapElement->layoutObject())
return 0;
- return axObjectCache()->getOrCreate(m_mapElement->layoutObject());
+ return axObjectCache().getOrCreate(m_mapElement->layoutObject());
}
AccessibilityRole AXImageMapLink::roleValue() const
« no previous file with comments | « Source/modules/accessibility/AXImageMapLink.h ('k') | Source/modules/accessibility/AXInlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698