* @param {!Element} element
(element)
| 91 | * @param {!Element} element |
| 92 | */ |
| 93 | constructor(element) { |
| 94 | super(element); |
| 95 | |
| 96 | /** @private @const {!../../../src/service/vsync-impl.Vsync} */ |
| 97 | this.vsync_ = Services.vsyncFor(this.win); |
| 98 | |
| 99 | /** @private {?WorkerDOMWorkerDef} */ |
| 100 | this.workerDom_ = null; |
| 101 | |
| 102 | /** @private {?UserActivationTracker} */ |
| 103 | this.userActivation_ = null; |
| 104 | |
| 105 | /** @private {?AmpScriptService} */ |
| 106 | this.service_ = null; |
| 107 | |
| 108 | /** @private {string} */ |
| 109 | this.debugId_ = 'amp-script[unknown].js'; |
| 110 | |
| 111 | /** @private {boolean} */ |
| 112 | this.layoutCompleted_ = false; |
| 113 | |
| 114 | /** @private {boolean} */ |
| 115 | this.reportedZeroSize_ = false; |
| 116 | |
| 117 | /** @private {Deferred} */ |
| 118 | this.initialize_ = new Deferred(); |
| 119 | |
| 120 | /** |
| 121 | * If true, most production constraints are disabled including script size, |
| 122 | * script hash sum for local scripts, etc. Default is false. |
| 123 | * |
| 124 | * Enabled by the "data-ampdevmode" attribute which is intentionally invalid. |
| 125 | * |
| 126 | * @private {boolean} |
| 127 | */ |
| 128 | this.development_ = false; |
| 129 | |
| 130 | /** |
| 131 | * If true, signals that the `nodom` variant of worker-dom should be used. |
| 132 | * The worker js will have a much smaller bundle size, but no access to dom |
| 133 | * functions. |
| 134 | * |
| 135 | * @private {boolean} |
| 136 | */ |
| 137 | this.nodom_ = false; |
| 138 | |
| 139 | /** |
| 140 | * If true, signals that worker-dom should activate sandboxed mode. |
| 141 | * In this mode the Worker lives in its own crossorigin iframe, creating |
| 142 | * a strong security boundary. It also forces nodom mode. |
| 143 | * |
| 144 | * @private {boolean} |
| 145 | */ |
| 146 | this.sandboxed_ = false; |
| 147 | } |
| 148 | |
| 149 | /** @override */ |
| 150 | isLayoutSupported(layout) { |
nothing calls this directly
no outgoing calls
no test coverage detected