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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.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/modules/screen_orientation/ScreenOrientationController.cpp
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
index de25e2c7aa258ac10f793bb8d080c3164e22f9a6..e46e948b08b6f6036a446bec4ee7a30abd2fa2e8 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
@@ -27,12 +27,12 @@ void ScreenOrientationController::provideTo(LocalFrame& frame, WebScreenOrientat
ASSERT(RuntimeEnabledFeatures::screenOrientationEnabled());
ScreenOrientationController* controller = new ScreenOrientationController(frame, client);
- WillBeHeapSupplement<LocalFrame>::provideTo(frame, supplementName(), adoptPtrWillBeNoop(controller));
+ HeapSupplement<LocalFrame>::provideTo(frame, supplementName(), adoptPtrWillBeNoop(controller));
}
ScreenOrientationController* ScreenOrientationController::from(LocalFrame& frame)
{
- return static_cast<ScreenOrientationController*>(WillBeHeapSupplement<LocalFrame>::from(frame, supplementName()));
+ return static_cast<ScreenOrientationController*>(HeapSupplement<LocalFrame>::from(frame, supplementName()));
}
ScreenOrientationController::ScreenOrientationController(LocalFrame& frame, WebScreenOrientationClient* client)
@@ -129,7 +129,7 @@ void ScreenOrientationController::notifyOrientationChanged()
// Keep track of the frames that need to be notified before notifying the
// current frame as it will prevent side effects from the change event
// handlers.
- WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> childFrames;
+ HeapVector<Member<LocalFrame>> childFrames;
for (Frame* child = frame()->tree().firstChild(); child; child = child->tree().nextSibling()) {
if (child->isLocalFrame())
childFrames.append(toLocalFrame(child));
@@ -214,7 +214,7 @@ DEFINE_TRACE(ScreenOrientationController)
{
visitor->trace(m_orientation);
LocalFrameLifecycleObserver::trace(visitor);
- WillBeHeapSupplement<LocalFrame>::trace(visitor);
+ HeapSupplement<LocalFrame>::trace(visitor);
PlatformEventController::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698