| Index: Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
|
| diff --git a/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp b/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
|
| index a76da1e635102880327a90bb50542277d396fcdd..e5d78e71fa4e727f59c4aaf48116544d02be8c46 100644
|
| --- a/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
|
| +++ b/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
|
| @@ -11,16 +11,17 @@ namespace blink {
|
|
|
| ScreenOrientationDispatcher& ScreenOrientationDispatcher::instance()
|
| {
|
| - DEFINE_STATIC_LOCAL(ScreenOrientationDispatcher, screenOrientationDispatcher, ());
|
| - return screenOrientationDispatcher;
|
| + DEFINE_STATIC_LOCAL(Persistent<ScreenOrientationDispatcher>, screenOrientationDispatcher, (new ScreenOrientationDispatcher()));
|
| + return *screenOrientationDispatcher;
|
| }
|
|
|
| ScreenOrientationDispatcher::ScreenOrientationDispatcher()
|
| {
|
| }
|
|
|
| -ScreenOrientationDispatcher::~ScreenOrientationDispatcher()
|
| +void ScreenOrientationDispatcher::trace(Visitor* visitor)
|
| {
|
| + PlatformEventDispatcher::trace(visitor);
|
| }
|
|
|
| void ScreenOrientationDispatcher::startListening()
|
|
|