| Index: third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js
|
| index 50810d5dd782c001a59d8dc8d5f1a5415b4640f8..935bfc445cf911e89fabaf786a5050b0ee57fbbf 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js
|
| @@ -309,13 +309,13 @@ context. You should place this element as a child of `<body>` whenever possible.
|
|
|
| // requestAnimationFrame for non-blocking rendering
|
| if (this.__openChangedAsync) {
|
| - cancelAnimationFrame(this.__openChangedAsync);
|
| + window.cancelAnimationFrame(this.__openChangedAsync);
|
| }
|
| if (this.opened) {
|
| if (this.withBackdrop) {
|
| this.backdropElement.prepare();
|
| }
|
| - this.__openChangedAsync = requestAnimationFrame(function() {
|
| + this.__openChangedAsync = window.requestAnimationFrame(function() {
|
| this.__openChangedAsync = null;
|
| this._prepareRenderOpened();
|
| this._renderOpened();
|
| @@ -526,11 +526,11 @@ context. You should place this element as a child of `<body>` whenever possible.
|
| */
|
| _onIronResize: function() {
|
| if (this.__onIronResizeAsync) {
|
| - cancelAnimationFrame(this.__onIronResizeAsync);
|
| + window.cancelAnimationFrame(this.__onIronResizeAsync);
|
| this.__onIronResizeAsync = null;
|
| }
|
| if (this.opened && !this.__isAnimating) {
|
| - this.__onIronResizeAsync = requestAnimationFrame(function() {
|
| + this.__onIronResizeAsync = window.requestAnimationFrame(function() {
|
| this.__onIronResizeAsync = null;
|
| this.refit();
|
| }.bind(this));
|
|
|