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

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, 9 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 ee1d79ba5663c816a324a4a2fb5b81e40c36f43b..8db25c2f46e8cc8f03c74451ece2f3d2639bf723 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();
}
« no previous file with comments | « third_party/WebKit/Source/core/page/PageAnimator.h ('k') | third_party/WebKit/Source/core/page/PagePopupController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698