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

Unified Diff: Source/modules/accessibility/AXScrollView.h

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/AXScrollView.h
diff --git a/Source/modules/accessibility/AXScrollView.h b/Source/modules/accessibility/AXScrollView.h
index b94cd28c6744bd6ea03757c5d45218064f70aebd..5776f602832e74934cdc78c33e2f1e504f7b4df5 100644
--- a/Source/modules/accessibility/AXScrollView.h
+++ b/Source/modules/accessibility/AXScrollView.h
@@ -37,11 +37,12 @@ class FrameView;
class AXScrollView final : public AXObject {
public:
- static PassRefPtr<AXScrollView> create(FrameView*, AXObjectCacheImpl*);
+ static PassRefPtrWillBeRawPtr<AXScrollView> create(FrameView*, AXObjectCacheImpl*);
virtual AccessibilityRole roleValue() const override { return ScrollAreaRole; }
FrameView* scrollView() const { return m_scrollView; }
virtual ~AXScrollView();
+ DECLARE_VIRTUAL_TRACE();
virtual void detach() override;
protected:
@@ -86,9 +87,9 @@ private:
// as part of moving the AX objects to the heap. Temporarily using
// a Persistent risks creating a FrameView leak, and brings no
// real benefits overall.
- FrameView* m_scrollView;
- RefPtr<AXObject> m_horizontalScrollbar;
- RefPtr<AXObject> m_verticalScrollbar;
+ RawPtrWillBeWeakMember<FrameView> m_scrollView;
+ RefPtrWillBeMember<AXObject> m_horizontalScrollbar;
+ RefPtrWillBeMember<AXObject> m_verticalScrollbar;
bool m_childrenDirty;
};

Powered by Google App Engine
This is Rietveld 408576698