Bug 1289642 - Remove prefixed PointerLock API. r=smaug

MozReview-Commit-ID: BUSEojZNIgb

--HG--
extra : rebase_source : bfdf71d5244d3b0877712a63cb07cf119c2e6992
This commit is contained in:
Xidorn Quan 2016-12-19 12:40:02 +11:00
Родитель d326016419
Коммит 6a9f5ff102
6 изменённых файлов: 0 добавлений и 37 удалений

Просмотреть файл

@ -120,19 +120,6 @@ IsWebkitPrefixSupportEnabled()
return sIsWebkitPrefixSupportEnabled;
}
static bool
IsPrefixedPointerLockEnabled()
{
static bool sIsPrefixedPointerLockEnabled;
static bool sIsPrefCached = false;
if (!sIsPrefCached) {
sIsPrefCached = true;
Preferences::AddBoolVarCache(&sIsPrefixedPointerLockEnabled,
"pointer-lock-api.prefixed.enabled");
}
return sIsPrefixedPointerLockEnabled;
}
EventListenerManagerBase::EventListenerManagerBase()
: mNoListenerForEvent(eVoidEvent)
, mMayHavePaintEventListener(false)
@ -1164,14 +1151,6 @@ EventListenerManager::GetLegacyEventMessage(EventMessage aEventMessage) const
return eWebkitAnimationIteration;
}
}
if (IsPrefixedPointerLockEnabled()) {
if (aEventMessage == ePointerLockChange) {
return eMozPointerLockChange;
}
if (aEventMessage == ePointerLockError) {
return eMozPointerLockError;
}
}
}
switch (aEventMessage) {

Просмотреть файл

@ -254,11 +254,7 @@ partial interface Document {
// https://w3c.github.io/pointerlock/#extensions-to-the-documentorshadowroot-mixin
partial interface Document {
readonly attribute Element? pointerLockElement;
[BinaryName="pointerLockElement", Pref="pointer-lock-api.prefixed.enabled"]
readonly attribute Element? mozPointerLockElement;
void exitPointerLock();
[BinaryName="exitPointerLock", Pref="pointer-lock-api.prefixed.enabled"]
void mozExitPointerLock();
// Event handlers
attribute EventHandler onpointerlockchange;

Просмотреть файл

@ -260,6 +260,4 @@ partial interface Element {
partial interface Element {
[UnsafeInPrerendering, NeedsCallerType]
void requestPointerLock();
[UnsafeInPrerendering, BinaryName="requestPointerLock", Pref="pointer-lock-api.prefixed.enabled", NeedsCallerType]
void mozRequestPointerLock();
};

Просмотреть файл

@ -120,10 +120,6 @@ interface GlobalEventHandlers {
// Document rather than here.
attribute EventHandler onmozfullscreenchange;
attribute EventHandler onmozfullscreenerror;
[Pref="pointer-lock-api.prefixed.enabled"]
attribute EventHandler onmozpointerlockchange;
[Pref="pointer-lock-api.prefixed.enabled"]
attribute EventHandler onmozpointerlockerror;
// CSS-Animation and CSS-Transition handlers.
attribute EventHandler onanimationend;

Просмотреть файл

@ -77,11 +77,6 @@ dictionary MouseEventInit : EventModifierInit {
// Mozilla extensions
partial interface MouseEvent
{
[BinaryName="movementX", Pref="pointer-lock-api.prefixed.enabled"]
readonly attribute long mozMovementX;
[BinaryName="movementY", Pref="pointer-lock-api.prefixed.enabled"]
readonly attribute long mozMovementY;
// Finger or touch pressure event value
// ranges between 0.0 and 1.0
readonly attribute float mozPressure;

Просмотреть файл

@ -4818,7 +4818,6 @@ pref("full-screen-api.warning.timeout", 3000);
pref("full-screen-api.warning.delay", 500);
// DOM pointerlock API
pref("pointer-lock-api.prefixed.enabled", false);
// time for the warning box stays on the screen before sliding out, unit: ms
pref("pointer-lock-api.warning.timeout", 3000);