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

Unified Diff: Source/modules/accessibility/AXScrollbar.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/AXScrollbar.h ('k') | Source/modules/accessibility/AXSlider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXScrollbar.cpp
diff --git a/Source/modules/accessibility/AXScrollbar.cpp b/Source/modules/accessibility/AXScrollbar.cpp
index 778ff9498de785866c63d6d16fe75c528fbd55c7..54d441b04924514d9f0c227025738fa578d92f9c 100644
--- a/Source/modules/accessibility/AXScrollbar.cpp
+++ b/Source/modules/accessibility/AXScrollbar.cpp
@@ -35,7 +35,7 @@
namespace blink {
-AXScrollbar::AXScrollbar(Scrollbar* scrollbar, AXObjectCacheImpl* axObjectCache)
+AXScrollbar::AXScrollbar(Scrollbar* scrollbar, AXObjectCacheImpl& axObjectCache)
: AXMockObject(axObjectCache)
, m_scrollbar(scrollbar)
{
@@ -48,7 +48,7 @@ void AXScrollbar::detachFromParent()
AXMockObject::detachFromParent();
}
-PassRefPtr<AXScrollbar> AXScrollbar::create(Scrollbar* scrollbar, AXObjectCacheImpl* axObjectCache)
+PassRefPtr<AXScrollbar> AXScrollbar::create(Scrollbar* scrollbar, AXObjectCacheImpl& axObjectCache)
{
return adoptRef(new AXScrollbar(scrollbar, axObjectCache));
}
« no previous file with comments | « Source/modules/accessibility/AXScrollbar.h ('k') | Source/modules/accessibility/AXSlider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698