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

Unified Diff: Source/modules/accessibility/AXMenuList.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/AXMenuList.cpp
diff --git a/Source/modules/accessibility/AXMenuList.cpp b/Source/modules/accessibility/AXMenuList.cpp
index 0e309627a965c99499c69b3e0b8d0c54cdd6531e..3e2ba8d2434d5428c404be0ec5800e61abfa7cd6 100644
--- a/Source/modules/accessibility/AXMenuList.cpp
+++ b/Source/modules/accessibility/AXMenuList.cpp
@@ -37,9 +37,9 @@ AXMenuList::AXMenuList(LayoutMenuList* layoutObject, AXObjectCacheImpl* axObject
{
}
-PassRefPtr<AXMenuList> AXMenuList::create(LayoutMenuList* layoutObject, AXObjectCacheImpl* axObjectCache)
+PassRefPtrWillBeRawPtr<AXMenuList> AXMenuList::create(LayoutMenuList* layoutObject, AXObjectCacheImpl* axObjectCache)
{
- return adoptRef(new AXMenuList(layoutObject, axObjectCache));
+ return adoptRefWillBeNoop(new AXMenuList(layoutObject, axObjectCache));
}
AccessibilityRole AXMenuList::determineAccessibilityRole()
@@ -87,7 +87,11 @@ void AXMenuList::addChildren()
toAXMockObject(list)->setParent(this);
if (list->accessibilityIsIgnored()) {
+#if ENABLE(OILPAN)
+ cache->remove(list);
+#else
cache->remove(list->axObjectID());
+#endif
return;
}

Powered by Google App Engine
This is Rietveld 408576698