* @param {!Window|!Document} winOrDoc
(winOrDoc)
| 172 | * @param {!Window|!Document} winOrDoc |
| 173 | */ |
| 174 | constructor(winOrDoc) { |
| 175 | const isWin = !!winOrDoc.document; |
| 176 | /** @private @const {!Window} */ |
| 177 | this.win_ = /** @type {!Window} */ ( |
| 178 | isWin |
| 179 | ? /** @type {!Window} */ (winOrDoc) |
| 180 | : /** @type {!Document} */ (winOrDoc).defaultView |
| 181 | ); |
| 182 | /** @private @const {!Document} */ |
| 183 | this.doc_ = isWin |
| 184 | ? /** @type {!Window} */ (winOrDoc).document |
| 185 | : /** @type {!Document} */ (winOrDoc); |
| 186 | } |
| 187 | |
| 188 | /** @override */ |
| 189 | getWin() { |
nothing calls this directly
no outgoing calls
no test coverage detected