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

Unified Diff: Source/modules/screen_orientation/ScreenOrientation.cpp

Issue 196023016: Oilpan: move Screen and its supplement to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/modules/screen_orientation/ScreenOrientation.cpp
diff --git a/Source/modules/screen_orientation/ScreenOrientation.cpp b/Source/modules/screen_orientation/ScreenOrientation.cpp
index a5756e76fd0c81b4e325dd37d0a3c0ed532b30a6..1894c1651cfe53cc61abc7b787132715fa9b22ad 100644
--- a/Source/modules/screen_orientation/ScreenOrientation.cpp
+++ b/Source/modules/screen_orientation/ScreenOrientation.cpp
@@ -109,10 +109,10 @@ Document* ScreenOrientation::document() const
ScreenOrientation& ScreenOrientation::from(Screen& screen)
{
- ScreenOrientation* supplement = static_cast<ScreenOrientation*>(Supplement<Screen>::from(screen, supplementName()));
+ ScreenOrientation* supplement = static_cast<ScreenOrientation*>(WillBeHeapSupplement<Screen>::from(screen, supplementName()));
if (!supplement) {
supplement = new ScreenOrientation(screen);
- provideTo(screen, supplementName(), adoptPtr(supplement));
+ provideTo(screen, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}

Powered by Google App Engine
This is Rietveld 408576698