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; |
} |