mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1592226 - Only build 'AbortOrientationPromises' when MOZ_WIDGET_ANDROID is defined r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50912 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
69d003b435
commit
0b21c7eb2c
@ -248,6 +248,7 @@ already_AddRefed<Promise> ScreenOrientation::Lock(
|
||||
return LockInternal(orientation, aRv);
|
||||
}
|
||||
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
static inline void AbortOrientationPromises(nsIDocShell* aDocShell) {
|
||||
MOZ_ASSERT(aDocShell);
|
||||
|
||||
@ -273,6 +274,7 @@ static inline void AbortOrientationPromises(nsIDocShell* aDocShell) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
already_AddRefed<Promise> ScreenOrientation::LockInternal(
|
||||
hal::ScreenOrientation aOrientation, ErrorResult& aRv) {
|
||||
|
Loading…
Reference in New Issue
Block a user