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

Unified Diff: Source/modules/accessibility/AXScrollbar.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/AXScrollbar.cpp
diff --git a/Source/modules/accessibility/AXScrollbar.cpp b/Source/modules/accessibility/AXScrollbar.cpp
index ded75fc27840200183b2ea38bae07b964983195d..463ae271f7568c8e306614a4d6f18d9d7165c8e2 100644
--- a/Source/modules/accessibility/AXScrollbar.cpp
+++ b/Source/modules/accessibility/AXScrollbar.cpp
@@ -48,9 +48,9 @@ void AXScrollbar::detachFromParent()
AXMockObject::detachFromParent();
}
-PassRefPtr<AXScrollbar> AXScrollbar::create(Scrollbar* scrollbar, AXObjectCacheImpl* axObjectCache)
+PassRefPtrWillBeRawPtr<AXScrollbar> AXScrollbar::create(Scrollbar* scrollbar, AXObjectCacheImpl* axObjectCache)
{
- return adoptRef(new AXScrollbar(scrollbar, axObjectCache));
+ return adoptRefWillBeNoop(new AXScrollbar(scrollbar, axObjectCache));
}
LayoutRect AXScrollbar::elementRect() const
@@ -109,4 +109,10 @@ void AXScrollbar::setValue(float value)
m_scrollbar->scrollableArea()->scrollToOffsetWithoutAnimation(m_scrollbar->orientation(), newValue);
}
+DEFINE_TRACE(AXScrollbar)
+{
+ AXMockObject::trace(visitor);
+ visitor->trace(m_scrollbar);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698