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

Unified Diff: third_party/WebKit/Source/core/page/PageAnimator.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/core/page/PageAnimator.cpp
diff --git a/third_party/WebKit/Source/core/page/PageAnimator.cpp b/third_party/WebKit/Source/core/page/PageAnimator.cpp
index 1ef8264f8491bfb8b1cdfc5531d6601079eddac2..cbebd82e99cf1aefd274841221dda28d5da3425b 100644
--- a/third_party/WebKit/Source/core/page/PageAnimator.cpp
+++ b/third_party/WebKit/Source/core/page/PageAnimator.cpp
@@ -21,9 +21,9 @@ PageAnimator::PageAnimator(Page& page)
{
}
-PassRefPtrWillBeRawPtr<PageAnimator> PageAnimator::create(Page& page)
+RawPtr<PageAnimator> PageAnimator::create(Page& page)
{
- return adoptRefWillBeNoop(new PageAnimator(page));
+ return (new PageAnimator(page));
}
DEFINE_TRACE(PageAnimator)
@@ -33,11 +33,11 @@ DEFINE_TRACE(PageAnimator)
void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
{
- RefPtrWillBeRawPtr<PageAnimator> protector(this);
+ RawPtr<PageAnimator> protector(this);
TemporaryChange<bool> servicing(m_servicingAnimations, true);
clock().updateTime(monotonicAnimationStartTime);
- WillBeHeapVector<RefPtrWillBeMember<Document>> documents;
+ HeapVector<Member<Document>> documents;
for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
if (frame->isLocalFrame())
documents.append(toLocalFrame(frame)->document());
@@ -53,7 +53,7 @@ void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
if (const FrameView::ScrollableAreaSet* animatingScrollableAreas = document->view()->animatingScrollableAreas()) {
// Iterate over a copy, since ScrollableAreas may deregister
// themselves during the iteration.
- WillBeHeapVector<RawPtrWillBeMember<ScrollableArea>> animatingScrollableAreasCopy;
+ HeapVector<Member<ScrollableArea>> animatingScrollableAreasCopy;
copyToVector(*animatingScrollableAreas, animatingScrollableAreasCopy);
for (ScrollableArea* scrollableArea : animatingScrollableAreasCopy)
scrollableArea->serviceScrollAnimations(monotonicAnimationStartTime);
@@ -80,7 +80,7 @@ void PageAnimator::scheduleVisualUpdate(LocalFrame* frame)
void PageAnimator::updateAllLifecyclePhases(LocalFrame& rootFrame)
{
- RefPtrWillBeRawPtr<FrameView> view = rootFrame.view();
+ RawPtr<FrameView> view = rootFrame.view();
TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true);
view->updateAllLifecyclePhases();
}

Powered by Google App Engine
This is Rietveld 408576698