fix(animations): ensure animation detection doesn't rely on the body node
Closes #10230 Closes #10191 Closes #10273
This commit is contained in:
parent
b42411ba1f
commit
0d1bf8148b
|
@ -398,9 +398,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||||
return window.requestAnimationFrame(callback);
|
return window.requestAnimationFrame(callback);
|
||||||
}
|
}
|
||||||
cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); }
|
cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); }
|
||||||
supportsWebAnimation(): boolean {
|
supportsWebAnimation(): boolean { return isFunction((<any>Element).prototype['animate']); }
|
||||||
return isFunction((document as any /** TODO #9100 */).body['animate']);
|
|
||||||
}
|
|
||||||
performanceNow(): number {
|
performanceNow(): number {
|
||||||
// performance.now() is not available in all browsers, see
|
// performance.now() is not available in all browsers, see
|
||||||
// http://caniuse.com/#search=performance.now
|
// http://caniuse.com/#search=performance.now
|
||||||
|
|
Loading…
Reference in New Issue