Commit ca46e7ac authored by tkent@chromium.org's avatar tkent@chromium.org

Oilpan: Replace RefPtrs to Document in core/{accessibility,animation,fetch}...

Oilpan: Replace RefPtrs to Document in core/{accessibility,animation,fetch} with Oilpan transition types.

BUG=357163

Review URL: https://codereview.chromium.org/313023003

git-svn-id: svn://svn.chromium.org/blink/trunk@175456 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8780fb6d
...@@ -97,7 +97,7 @@ bool AXMenuList::canSetFocusAttribute() const ...@@ -97,7 +97,7 @@ bool AXMenuList::canSetFocusAttribute() const
void AXMenuList::didUpdateActiveOption(int optionIndex) void AXMenuList::didUpdateActiveOption(int optionIndex)
{ {
RefPtr<Document> document(m_renderer->document()); RefPtrWillBeRawPtr<Document> document(m_renderer->document());
AXObjectCache* cache = document->axObjectCache(); AXObjectCache* cache = document->axObjectCache();
const AccessibilityChildrenVector& childObjects = children(); const AccessibilityChildrenVector& childObjects = children();
......
...@@ -691,7 +691,7 @@ void AXObjectCache::childrenChanged(AXObject* obj) ...@@ -691,7 +691,7 @@ void AXObjectCache::childrenChanged(AXObject* obj)
void AXObjectCache::notificationPostTimerFired(Timer<AXObjectCache>*) void AXObjectCache::notificationPostTimerFired(Timer<AXObjectCache>*)
{ {
RefPtr<Document> protectorForCacheOwner(m_document); RefPtrWillBeRawPtr<Document> protectorForCacheOwner(m_document);
m_notificationPostTimer.stop(); m_notificationPostTimer.stop();
......
...@@ -82,7 +82,7 @@ protected: ...@@ -82,7 +82,7 @@ protected:
return player->update(TimingUpdateOnDemand); return player->update(TimingUpdateOnDemand);
} }
RefPtr<Document> document; RefPtrWillBePersistent<Document> document;
RefPtrWillBePersistent<AnimationTimeline> timeline; RefPtrWillBePersistent<AnimationTimeline> timeline;
RefPtrWillBePersistent<AnimationPlayer> player; RefPtrWillBePersistent<AnimationPlayer> player;
TrackExceptionState exceptionState; TrackExceptionState exceptionState;
......
...@@ -76,7 +76,7 @@ protected: ...@@ -76,7 +76,7 @@ protected:
return toLegacyStyleInterpolation(interpolation)->currentValue().get(); return toLegacyStyleInterpolation(interpolation)->currentValue().get();
} }
RefPtr<Document> document; RefPtrWillBePersistent<Document> document;
RefPtrWillBePersistent<AnimationTimeline> timeline; RefPtrWillBePersistent<AnimationTimeline> timeline;
RefPtrWillBePersistent<Element> element; RefPtrWillBePersistent<Element> element;
}; };
......
...@@ -28,7 +28,7 @@ protected: ...@@ -28,7 +28,7 @@ protected:
EXPECT_EQ(0, document->timeline().currentTime()); EXPECT_EQ(0, document->timeline().currentTime());
} }
RefPtr<Document> document; RefPtrWillBePersistent<Document> document;
RefPtrWillBePersistent<Element> element; RefPtrWillBePersistent<Element> element;
TrackExceptionState exceptionState; TrackExceptionState exceptionState;
}; };
......
...@@ -109,7 +109,7 @@ protected: ...@@ -109,7 +109,7 @@ protected:
timeline->serviceAnimations(TimingUpdateForAnimationFrame); timeline->serviceAnimations(TimingUpdateForAnimationFrame);
} }
RefPtr<Document> document; RefPtrWillBePersistent<Document> document;
RefPtrWillBePersistent<Element> element; RefPtrWillBePersistent<Element> element;
RefPtrWillBePersistent<AnimationTimeline> timeline; RefPtrWillBePersistent<AnimationTimeline> timeline;
Timing timing; Timing timing;
......
...@@ -27,7 +27,7 @@ protected: ...@@ -27,7 +27,7 @@ protected:
{ {
} }
RefPtr<Document> document; RefPtrWillBePersistent<Document> document;
RefPtrWillBePersistent<Element> element; RefPtrWillBePersistent<Element> element;
TrackExceptionState exceptionState; TrackExceptionState exceptionState;
v8::Isolate* m_isolate; v8::Isolate* m_isolate;
......
...@@ -65,7 +65,7 @@ void DocumentResource::checkNotify() ...@@ -65,7 +65,7 @@ void DocumentResource::checkNotify()
Resource::checkNotify(); Resource::checkNotify();
} }
PassRefPtr<Document> DocumentResource::createDocument(const KURL& url) PassRefPtrWillBeRawPtr<Document> DocumentResource::createDocument(const KURL& url)
{ {
switch (type()) { switch (type()) {
case SVGDocument: case SVGDocument:
......
...@@ -46,9 +46,9 @@ public: ...@@ -46,9 +46,9 @@ public:
virtual void checkNotify() OVERRIDE; virtual void checkNotify() OVERRIDE;
private: private:
PassRefPtr<Document> createDocument(const KURL&); PassRefPtrWillBeRawPtr<Document> createDocument(const KURL&);
RefPtr<Document> m_document; RefPtrWillBePersistent<Document> m_document;
OwnPtr<TextResourceDecoder> m_decoder; OwnPtr<TextResourceDecoder> m_decoder;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment