* @param {!Window|!Document} winOrDoc
(winOrDoc)
| 10663 | * @param {!Window|!Document} winOrDoc |
| 10664 | */ |
| 10665 | constructor(winOrDoc) { |
| 10666 | const isWin = !!winOrDoc.document; |
| 10667 | /** @private @const {!Window} */ |
| 10668 | this.win_ = /** @type {!Window} */ ( |
| 10669 | isWin |
| 10670 | ? /** @type {!Window} */ (winOrDoc) |
| 10671 | : /** @type {!Document} */ (winOrDoc).defaultView |
| 10672 | ); |
| 10673 | /** @private @const {!Document} */ |
| 10674 | this.doc_ = isWin |
| 10675 | ? /** @type {!Window} */ (winOrDoc).document |
| 10676 | : /** @type {!Document} */ (winOrDoc); |
| 10677 | } |
| 10678 | |
| 10679 | /** @override */ |
| 10680 | getWin() { |
nothing calls this directly
no outgoing calls
no test coverage detected