* @param {!Sheet.State} state * @private
(state)
| 59 | * @private |
| 60 | */ |
| 61 | render_(state) { |
| 62 | this.mutate(() => { |
| 63 | if (!this.frame_) { |
| 64 | this.makeIframe_(); |
| 65 | this.setWindow_(this.frame_.contentWindow); |
| 66 | } |
| 67 | |
| 68 | if (this.frame_.src !== state.url) { |
| 69 | this.frame_.setAttribute('src', state.url); |
| 70 | } |
| 71 | this.renderHorizontalLayout(); |
| 72 | this.frame_.setAttribute('title', state.title); |
| 73 | toggle(this.frame_, state.open); |
| 74 | }); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @private |
no test coverage detected