Patrick Hulce | a087f62 | 2018-05-18 00:37:53 +0000 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 5 | import * as Common from '../common/common.js'; |
| 6 | import * as Components from '../components/components.js'; |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 7 | import * as Host from '../host/host.js'; |
vidorteg | 0684002 | 2020-11-20 21:18:03 -0800 | [diff] [blame] | 8 | import * as i18n from '../i18n/i18n.js'; |
Simon Zünd | 2c704cd | 2020-06-04 11:08:35 +0200 | [diff] [blame] | 9 | import * as Platform from '../platform/platform.js'; |
Tim van der Lippe | 5df64b2 | 2020-09-11 13:04:24 +0100 | [diff] [blame] | 10 | import * as Root from '../root/root.js'; |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 11 | import * as SDK from '../sdk/sdk.js'; |
Paul Lewis | ca569a5 | 2020-09-09 17:11:51 +0100 | [diff] [blame] | 12 | import * as ThemeSupport from '../theme_support/theme_support.js'; |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 13 | import * as Timeline from '../timeline/timeline.js'; |
| 14 | import * as UI from '../ui/ui.js'; |
Tim van der Lippe | 696c926 | 2020-08-26 15:39:32 +0100 | [diff] [blame] | 15 | import * as Workspace from '../workspace/workspace.js'; |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 16 | |
Tim van der Lippe | 1e10f85 | 2020-10-30 14:35:01 +0000 | [diff] [blame] | 17 | import * as ReportRenderer from './LighthouseReporterTypes.js'; // eslint-disable-line no-unused-vars |
| 18 | |
vidorteg | 0684002 | 2020-11-20 21:18:03 -0800 | [diff] [blame] | 19 | export const UIStrings = { |
| 20 | /** |
| 21 | *@description Label for view trace button when simulated throttling is enabled |
| 22 | */ |
| 23 | viewOriginalTrace: 'View Original Trace', |
| 24 | /** |
| 25 | *@description Text of the timeline button in Lighthouse Report Renderer |
| 26 | */ |
| 27 | viewTrace: 'View Trace', |
| 28 | /** |
| 29 | *@description Help text for 'View Trace' button |
| 30 | */ |
| 31 | thePerformanceMetricsAboveAre: |
| 32 | 'The performance metrics above are simulated and won\'t match the timings found in this trace. Disable simulated throttling in "Lighthouse Settings" if you want the timings to match.', |
| 33 | }; |
| 34 | const str_ = i18n.i18n.registerUIStrings('lighthouse/LighthouseReportRenderer.js', UIStrings); |
| 35 | const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_); |
Paul Lewis | cf2ef22 | 2019-11-22 14:55:35 +0000 | [diff] [blame] | 36 | const MaxLengthForLinks = 40; |
| 37 | |
Patrick Hulce | a087f62 | 2018-05-18 00:37:53 +0000 | [diff] [blame] | 38 | /** |
| 39 | * @override |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 40 | * @extends {ReportRenderer.ReportRenderer} |
Patrick Hulce | a087f62 | 2018-05-18 00:37:53 +0000 | [diff] [blame] | 41 | */ |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 42 | // @ts-ignore https://github.com/GoogleChrome/lighthouse/issues/11628 |
Tim van der Lippe | 1e10f85 | 2020-10-30 14:35:01 +0000 | [diff] [blame] | 43 | export class LighthouseReportRenderer extends self.ReportRenderer { |
Patrick Hulce | a087f62 | 2018-05-18 00:37:53 +0000 | [diff] [blame] | 44 | /** |
Tim van der Lippe | 4df32c9 | 2020-11-06 12:35:05 +0000 | [diff] [blame] | 45 | * @param {!DOM} dom |
| 46 | */ |
| 47 | constructor(dom) { |
| 48 | super(dom); |
| 49 | } |
| 50 | /** |
Paul Irish | 8f1e33d | 2018-05-31 02:29:50 +0000 | [diff] [blame] | 51 | * @param {!Element} el Parent element to render the report into. |
| 52 | * @param {!ReportRenderer.RunnerResultArtifacts=} artifacts |
Patrick Hulce | a087f62 | 2018-05-18 00:37:53 +0000 | [diff] [blame] | 53 | */ |
Paul Irish | 8f1e33d | 2018-05-31 02:29:50 +0000 | [diff] [blame] | 54 | static addViewTraceButton(el, artifacts) { |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 55 | if (!artifacts || !artifacts.traces || !artifacts.traces.defaultPass) { |
Paul Irish | 8f1e33d | 2018-05-31 02:29:50 +0000 | [diff] [blame] | 56 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 57 | } |
Patrick Hulce | a087f62 | 2018-05-18 00:37:53 +0000 | [diff] [blame] | 58 | |
Adam Raine | f46d158 | 2020-08-17 20:24:32 +0000 | [diff] [blame] | 59 | const simulated = artifacts.settings.throttlingMethod === 'simulate'; |
cjamcl@google.com | 21d2d22 | 2019-08-09 01:58:17 +0000 | [diff] [blame] | 60 | const container = el.querySelector('.lh-audit-group'); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 61 | if (!container) { |
| 62 | return; |
| 63 | } |
Paul Irish | bf20468 | 2020-05-13 16:11:37 -0700 | [diff] [blame] | 64 | const disclaimerEl = container.querySelector('.lh-metrics__disclaimer'); |
| 65 | // If it was a PWA-only run, we'd have a trace but no perf category to add the button to |
| 66 | if (!disclaimerEl) { |
cjamcl@google.com | 21d2d22 | 2019-08-09 01:58:17 +0000 | [diff] [blame] | 67 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 68 | } |
cjamcl@google.com | 21d2d22 | 2019-08-09 01:58:17 +0000 | [diff] [blame] | 69 | |
Paul Irish | 8f1e33d | 2018-05-31 02:29:50 +0000 | [diff] [blame] | 70 | const defaultPassTrace = artifacts.traces.defaultPass; |
vidorteg | 0684002 | 2020-11-20 21:18:03 -0800 | [diff] [blame] | 71 | const label = simulated ? i18nString(UIStrings.viewOriginalTrace) : i18nString(UIStrings.viewTrace); |
Adam Raine | f46d158 | 2020-08-17 20:24:32 +0000 | [diff] [blame] | 72 | const timelineButton = UI.UIUtils.createTextButton(label, onViewTraceClick, 'view-trace'); |
| 73 | if (simulated) { |
Tim van der Lippe | 70842f3 | 2020-11-23 16:56:57 +0000 | [diff] [blame^] | 74 | UI.Tooltip.Tooltip.install(timelineButton, i18nString(UIStrings.thePerformanceMetricsAboveAre)); |
Adam Raine | f46d158 | 2020-08-17 20:24:32 +0000 | [diff] [blame] | 75 | } |
Paul Irish | bf20468 | 2020-05-13 16:11:37 -0700 | [diff] [blame] | 76 | container.insertBefore(timelineButton, disclaimerEl.nextSibling); |
Paul Irish | 8f1e33d | 2018-05-31 02:29:50 +0000 | [diff] [blame] | 77 | |
| 78 | async function onViewTraceClick() { |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 79 | Host.userMetrics.actionTaken(Host.UserMetrics.Action.LighthouseViewTrace); |
Tim van der Lippe | 80d8265 | 2020-08-27 14:53:44 +0100 | [diff] [blame] | 80 | await UI.InspectorView.InspectorView.instance().showPanel('timeline'); |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 81 | Timeline.TimelinePanel.TimelinePanel.instance().loadFromEvents(defaultPassTrace.traceEvents); |
Paul Irish | 8f1e33d | 2018-05-31 02:29:50 +0000 | [diff] [blame] | 82 | } |
Patrick Hulce | a087f62 | 2018-05-18 00:37:53 +0000 | [diff] [blame] | 83 | } |
cjamcl@google.com | da0e4c6 | 2018-11-27 23:52:10 +0000 | [diff] [blame] | 84 | |
| 85 | /** |
| 86 | * @param {!Element} el |
| 87 | */ |
| 88 | static async linkifyNodeDetails(el) { |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 89 | const mainTarget = SDK.SDKModel.TargetManager.instance().mainTarget(); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 90 | if (!mainTarget) { |
| 91 | return; |
| 92 | } |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 93 | const domModel = mainTarget.model(SDK.DOMModel.DOMModel); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 94 | if (!domModel) { |
| 95 | return; |
| 96 | } |
cjamcl@google.com | da0e4c6 | 2018-11-27 23:52:10 +0000 | [diff] [blame] | 97 | |
| 98 | for (const origElement of el.getElementsByClassName('lh-node')) { |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 99 | const origHTMLElement = /** @type {!HTMLElement} */ (origElement); |
| 100 | const detailsItem = /** @type {!ReportRenderer.NodeDetailsJSON} */ (origHTMLElement.dataset); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 101 | if (!detailsItem.path) { |
cjamcl@google.com | 5c46b7e | 2018-12-04 14:44:47 +0000 | [diff] [blame] | 102 | continue; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 103 | } |
cjamcl@google.com | da0e4c6 | 2018-11-27 23:52:10 +0000 | [diff] [blame] | 104 | |
| 105 | const nodeId = await domModel.pushNodeByPathToFrontend(detailsItem.path); |
| 106 | |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 107 | if (!nodeId) { |
cjamcl@google.com | 5c46b7e | 2018-12-04 14:44:47 +0000 | [diff] [blame] | 108 | continue; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 109 | } |
cjamcl@google.com | da0e4c6 | 2018-11-27 23:52:10 +0000 | [diff] [blame] | 110 | const node = domModel.nodeForId(nodeId); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 111 | if (!node) { |
cjamcl@google.com | 5c46b7e | 2018-12-04 14:44:47 +0000 | [diff] [blame] | 112 | continue; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 113 | } |
cjamcl@google.com | da0e4c6 | 2018-11-27 23:52:10 +0000 | [diff] [blame] | 114 | |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 115 | const element = await Common.Linkifier.Linkifier.linkify( |
| 116 | node, {tooltip: detailsItem.snippet, preventKeyboardFocus: undefined}); |
Tim van der Lippe | 70842f3 | 2020-11-23 16:56:57 +0000 | [diff] [blame^] | 117 | UI.Tooltip.Tooltip.install(origHTMLElement, ''); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 118 | origHTMLElement.textContent = ''; |
| 119 | origHTMLElement.appendChild(element); |
cjamcl@google.com | da0e4c6 | 2018-11-27 23:52:10 +0000 | [diff] [blame] | 120 | } |
| 121 | } |
cjamcl@google.com | f2f8c09 | 2019-05-30 22:01:56 +0000 | [diff] [blame] | 122 | |
| 123 | /** |
| 124 | * @param {!Element} el |
| 125 | */ |
Connor Clark | 0403a42 | 2019-11-18 18:03:18 -0800 | [diff] [blame] | 126 | static async linkifySourceLocationDetails(el) { |
| 127 | for (const origElement of el.getElementsByClassName('lh-source-location')) { |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 128 | const origHTMLElement = /** @type {!HTMLElement} */ (origElement); |
| 129 | const detailsItem = /** @type {!ReportRenderer.SourceLocationDetailsJSON} */ (origHTMLElement.dataset); |
Connor Clark | 0403a42 | 2019-11-18 18:03:18 -0800 | [diff] [blame] | 130 | if (!detailsItem.sourceUrl || !detailsItem.sourceLine || !detailsItem.sourceColumn) { |
| 131 | continue; |
| 132 | } |
| 133 | const url = detailsItem.sourceUrl; |
| 134 | const line = Number(detailsItem.sourceLine); |
| 135 | const column = Number(detailsItem.sourceColumn); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 136 | const element = await Components.Linkifier.Linkifier.linkifyURL(url, { |
| 137 | lineNumber: line, |
| 138 | columnNumber: column, |
| 139 | maxLength: MaxLengthForLinks, |
| 140 | bypassURLTrimming: undefined, |
| 141 | className: undefined, |
| 142 | preventClick: undefined, |
| 143 | tabStop: undefined, |
| 144 | text: undefined |
| 145 | }); |
Tim van der Lippe | 70842f3 | 2020-11-23 16:56:57 +0000 | [diff] [blame^] | 146 | UI.Tooltip.Tooltip.install(origHTMLElement, ''); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 147 | origHTMLElement.textContent = ''; |
| 148 | origHTMLElement.appendChild(element); |
Connor Clark | 0403a42 | 2019-11-18 18:03:18 -0800 | [diff] [blame] | 149 | } |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * @param {!Element} el |
| 154 | */ |
cjamcl@google.com | f2f8c09 | 2019-05-30 22:01:56 +0000 | [diff] [blame] | 155 | static handleDarkMode(el) { |
Paul Lewis | ca569a5 | 2020-09-09 17:11:51 +0100 | [diff] [blame] | 156 | if (ThemeSupport.ThemeSupport.instance().themeName() === 'dark') { |
cjamcl@google.com | f2f8c09 | 2019-05-30 22:01:56 +0000 | [diff] [blame] | 157 | el.classList.add('dark'); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 158 | } |
cjamcl@google.com | f2f8c09 | 2019-05-30 22:01:56 +0000 | [diff] [blame] | 159 | } |
Paul Lewis | cf2ef22 | 2019-11-22 14:55:35 +0000 | [diff] [blame] | 160 | } |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 161 | |
| 162 | /** |
| 163 | * @override |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 164 | * @extends {ReportRenderer.ReportUIFeatures} |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 165 | */ |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 166 | // @ts-ignore https://github.com/GoogleChrome/lighthouse/issues/11628 |
Tim van der Lippe | 1e10f85 | 2020-10-30 14:35:01 +0000 | [diff] [blame] | 167 | export class LighthouseReportUIFeatures extends self.ReportUIFeatures { |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 168 | /** |
Connor Clark | 9950836 | 2019-08-20 19:52:23 +0000 | [diff] [blame] | 169 | * @param {!DOM} dom |
| 170 | */ |
| 171 | constructor(dom) { |
| 172 | super(dom); |
| 173 | this._beforePrint = null; |
| 174 | this._afterPrint = null; |
| 175 | } |
| 176 | |
| 177 | /** |
Tim van der Lippe | 4df32c9 | 2020-11-06 12:35:05 +0000 | [diff] [blame] | 178 | * @override |
| 179 | * @param {?function():void} beforePrint |
Connor Clark | 9950836 | 2019-08-20 19:52:23 +0000 | [diff] [blame] | 180 | */ |
| 181 | setBeforePrint(beforePrint) { |
| 182 | this._beforePrint = beforePrint; |
| 183 | } |
| 184 | |
| 185 | /** |
Tim van der Lippe | 4df32c9 | 2020-11-06 12:35:05 +0000 | [diff] [blame] | 186 | * @override |
| 187 | * @param {?function():void} afterPrint |
Connor Clark | 9950836 | 2019-08-20 19:52:23 +0000 | [diff] [blame] | 188 | */ |
| 189 | setAfterPrint(afterPrint) { |
| 190 | this._afterPrint = afterPrint; |
| 191 | } |
| 192 | |
| 193 | /** |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 194 | * Returns the html that recreates this report. |
| 195 | * @return {string} |
| 196 | * @protected |
| 197 | */ |
| 198 | getReportHtml() { |
| 199 | this.resetUIState(); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 200 | // @ts-ignore https://github.com/GoogleChrome/lighthouse/issues/11628 |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 201 | return Lighthouse.ReportGenerator.generateReportHtml(this.json); |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Downloads a file (blob) using the system dialog prompt. |
| 206 | * @param {!Blob|!File} blob The file to save. |
| 207 | */ |
| 208 | async _saveFile(blob) { |
Paul Lewis | daac106 | 2020-03-05 14:37:10 +0000 | [diff] [blame] | 209 | const domain = new Common.ParsedURL.ParsedURL(this.json.finalUrl).domain(); |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 210 | const sanitizedDomain = domain.replace(/[^a-z0-9.-]+/gi, '_'); |
Simon Zünd | 2c704cd | 2020-06-04 11:08:35 +0200 | [diff] [blame] | 211 | const timestamp = Platform.DateUtilities.toISO8601Compact(new Date(this.json.fetchTime)); |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 212 | const ext = blob.type.match('json') ? '.json' : '.html'; |
| 213 | const basename = `${sanitizedDomain}-${timestamp}${ext}`; |
| 214 | const text = await blob.text(); |
Tim van der Lippe | 696c926 | 2020-08-26 15:39:32 +0100 | [diff] [blame] | 215 | Workspace.FileManager.FileManager.instance().save(basename, text, true /* forceSaveAs */); |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | async _print() { |
| 219 | const document = this.getDocument(); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 220 | const clonedReport = /** @type {!HTMLElement} */ (document.querySelector('.lh-root')).cloneNode(true /* deep */); |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 221 | const printWindow = window.open('', '_blank', 'channelmode=1,status=1,resizable=1'); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 222 | if (!printWindow) { |
| 223 | return; |
| 224 | } |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 225 | const style = printWindow.document.createElement('style'); |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 226 | style.textContent = Root.Runtime.cachedResources.get('third_party/lighthouse/report-assets/report.css') || ''; |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 227 | printWindow.document.head.appendChild(style); |
| 228 | printWindow.document.body.replaceWith(clonedReport); |
| 229 | // Linkified nodes are shadow elements, which aren't exposed via `cloneNode`. |
Tim van der Lippe | fe3cdc9 | 2020-11-06 15:23:13 +0000 | [diff] [blame] | 230 | await LighthouseReportRenderer.linkifyNodeDetails(/** @type {!HTMLElement} */ (clonedReport)); |
Connor Clark | 9950836 | 2019-08-20 19:52:23 +0000 | [diff] [blame] | 231 | |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 232 | if (this._beforePrint) { |
Connor Clark | 9950836 | 2019-08-20 19:52:23 +0000 | [diff] [blame] | 233 | this._beforePrint(); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 234 | } |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 235 | printWindow.focus(); |
| 236 | printWindow.print(); |
| 237 | printWindow.close(); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 238 | if (this._afterPrint) { |
Connor Clark | 9950836 | 2019-08-20 19:52:23 +0000 | [diff] [blame] | 239 | this._afterPrint(); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 +0000 | [diff] [blame] | 240 | } |
cjamcl@google.com | c5214af | 2019-06-25 20:31:21 +0000 | [diff] [blame] | 241 | } |
| 242 | |
| 243 | /** |
| 244 | * @suppress {visibility} |
| 245 | * @return {!Document} |
| 246 | */ |
| 247 | getDocument() { |
| 248 | return this._document; |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * @suppress {visibility} |
| 253 | */ |
| 254 | resetUIState() { |
| 255 | this._resetUIState(); |
| 256 | } |
Paul Lewis | cf2ef22 | 2019-11-22 14:55:35 +0000 | [diff] [blame] | 257 | } |