Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 1 | // Copyright (c) 2015 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. |
Tim van der Lippe | aabc830 | 2019-12-10 15:34:45 | [diff] [blame^] | 4 | import {ElementsPanel} from './ElementsPanel.js'; |
| 5 | |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 6 | /** |
| 7 | * @unrestricted |
| 8 | */ |
Tim van der Lippe | aabc830 | 2019-12-10 15:34:45 | [diff] [blame^] | 9 | export class ClassesPaneWidget extends UI.Widget { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 10 | constructor() { |
| 11 | super(true); |
| 12 | this.registerRequiredCSS('elements/classesPaneWidget.css'); |
| 13 | this.contentElement.className = 'styles-element-classes-pane'; |
| 14 | const container = this.contentElement.createChild('div', 'title-container'); |
| 15 | this._input = container.createChild('div', 'new-class-input monospace'); |
| 16 | this.setDefaultFocusedElement(this._input); |
| 17 | this._classesContainer = this.contentElement.createChild('div', 'source-code'); |
| 18 | this._classesContainer.classList.add('styles-element-classes-container'); |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 19 | this._prompt = new ClassNamePrompt(this._nodeClasses.bind(this)); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 20 | this._prompt.setAutocompletionTimeout(0); |
| 21 | this._prompt.renderAsBlock(); |
| 22 | |
| 23 | const proxyElement = this._prompt.attach(this._input); |
| 24 | this._prompt.setPlaceholder(Common.UIString('Add new class')); |
| 25 | this._prompt.addEventListener(UI.TextPrompt.Events.TextChanged, this._onTextChanged, this); |
| 26 | proxyElement.addEventListener('keydown', this._onKeyDown.bind(this), false); |
| 27 | |
| 28 | SDK.targetManager.addModelListener(SDK.DOMModel, SDK.DOMModel.Events.DOMMutated, this._onDOMMutated, this); |
| 29 | /** @type {!Set<!SDK.DOMNode>} */ |
| 30 | this._mutatingNodes = new Set(); |
| 31 | /** @type {!Map<!SDK.DOMNode, string>} */ |
| 32 | this._pendingNodeClasses = new Map(); |
| 33 | this._updateNodeThrottler = new Common.Throttler(0); |
| 34 | /** @type {?SDK.DOMNode} */ |
| 35 | this._previousTarget = null; |
| 36 | UI.context.addFlavorChangeListener(SDK.DOMNode, this._onSelectedNodeChanged, this); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * @param {string} text |
| 41 | * @return {!Array.<string>} |
| 42 | */ |
| 43 | _splitTextIntoClasses(text) { |
| 44 | return text.split(/[.,\s]/) |
| 45 | .map(className => className.trim()) |
| 46 | .filter(className => className.length); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @param {!Event} event |
| 51 | */ |
| 52 | _onKeyDown(event) { |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 53 | if (!isEnterKey(event) && !isEscKey(event)) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 54 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 55 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 56 | |
| 57 | if (isEnterKey(event)) { |
| 58 | event.consume(); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 59 | if (this._prompt.acceptAutoComplete()) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 60 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 61 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | let text = event.target.textContent; |
| 65 | if (isEscKey(event)) { |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 66 | if (!text.isWhitespace()) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 67 | event.consume(true); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 68 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 69 | text = ''; |
| 70 | } |
| 71 | |
| 72 | this._prompt.clearAutocomplete(); |
| 73 | event.target.textContent = ''; |
| 74 | |
| 75 | const node = UI.context.flavor(SDK.DOMNode); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 76 | if (!node) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 77 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 78 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 79 | |
| 80 | const classNames = this._splitTextIntoClasses(text); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 81 | for (const className of classNames) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 82 | this._toggleClass(node, className, true); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 83 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 84 | this._installNodeClasses(node); |
| 85 | this._update(); |
| 86 | } |
| 87 | |
| 88 | _onTextChanged() { |
| 89 | const node = UI.context.flavor(SDK.DOMNode); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 90 | if (!node) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 91 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 92 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 93 | this._installNodeClasses(node); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * @param {!Common.Event} event |
| 98 | */ |
| 99 | _onDOMMutated(event) { |
| 100 | const node = /** @type {!SDK.DOMNode} */ (event.data); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 101 | if (this._mutatingNodes.has(node)) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 102 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 103 | } |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 104 | delete node[ClassesPaneWidget._classesSymbol]; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 105 | this._update(); |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * @param {!Common.Event} event |
| 110 | */ |
| 111 | _onSelectedNodeChanged(event) { |
| 112 | if (this._previousTarget && this._prompt.text()) { |
| 113 | this._input.textContent = ''; |
| 114 | this._installNodeClasses(this._previousTarget); |
| 115 | } |
| 116 | this._previousTarget = /** @type {?SDK.DOMNode} */ (event.data); |
| 117 | this._update(); |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * @override |
| 122 | */ |
| 123 | wasShown() { |
| 124 | this._update(); |
| 125 | } |
| 126 | |
| 127 | _update() { |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 128 | if (!this.isShowing()) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 129 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 130 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 131 | |
| 132 | let node = UI.context.flavor(SDK.DOMNode); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 133 | if (node) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 134 | node = node.enclosingElementOrSelf(); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 135 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 136 | |
| 137 | this._classesContainer.removeChildren(); |
| 138 | this._input.disabled = !node; |
| 139 | |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 140 | if (!node) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 141 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 142 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 143 | |
| 144 | const classes = this._nodeClasses(node); |
| 145 | const keys = classes.keysArray(); |
| 146 | keys.sort(String.caseInsensetiveComparator); |
| 147 | for (let i = 0; i < keys.length; ++i) { |
| 148 | const className = keys[i]; |
| 149 | const label = UI.CheckboxLabel.create(className, classes.get(className)); |
| 150 | label.classList.add('monospace'); |
| 151 | label.checkboxElement.addEventListener('click', this._onClick.bind(this, className), false); |
| 152 | this._classesContainer.appendChild(label); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * @param {string} className |
| 158 | * @param {!Event} event |
| 159 | */ |
| 160 | _onClick(className, event) { |
| 161 | const node = UI.context.flavor(SDK.DOMNode); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 162 | if (!node) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 163 | return; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 164 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 165 | const enabled = event.target.checked; |
| 166 | this._toggleClass(node, className, enabled); |
| 167 | this._installNodeClasses(node); |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * @param {!SDK.DOMNode} node |
| 172 | * @return {!Map<string, boolean>} |
| 173 | */ |
| 174 | _nodeClasses(node) { |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 175 | let result = node[ClassesPaneWidget._classesSymbol]; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 176 | if (!result) { |
| 177 | const classAttribute = node.getAttribute('class') || ''; |
| 178 | const classes = classAttribute.split(/\s/); |
| 179 | result = new Map(); |
| 180 | for (let i = 0; i < classes.length; ++i) { |
| 181 | const className = classes[i].trim(); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 182 | if (!className.length) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 183 | continue; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 184 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 185 | result.set(className, true); |
| 186 | } |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 187 | node[ClassesPaneWidget._classesSymbol] = result; |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 188 | } |
| 189 | return result; |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * @param {!SDK.DOMNode} node |
| 194 | * @param {string} className |
| 195 | * @param {boolean} enabled |
| 196 | */ |
| 197 | _toggleClass(node, className, enabled) { |
| 198 | const classes = this._nodeClasses(node); |
| 199 | classes.set(className, enabled); |
| 200 | } |
| 201 | |
| 202 | /** |
| 203 | * @param {!SDK.DOMNode} node |
| 204 | */ |
| 205 | _installNodeClasses(node) { |
| 206 | const classes = this._nodeClasses(node); |
| 207 | const activeClasses = new Set(); |
| 208 | for (const className of classes.keys()) { |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 209 | if (classes.get(className)) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 210 | activeClasses.add(className); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 211 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 212 | } |
| 213 | |
| 214 | const additionalClasses = this._splitTextIntoClasses(this._prompt.textWithCurrentSuggestion()); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 215 | for (const className of additionalClasses) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 216 | activeClasses.add(className); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 217 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 218 | |
| 219 | const newClasses = activeClasses.valuesArray(); |
| 220 | newClasses.sort(); |
| 221 | |
| 222 | this._pendingNodeClasses.set(node, newClasses.join(' ')); |
| 223 | this._updateNodeThrottler.schedule(this._flushPendingClasses.bind(this)); |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * @return {!Promise} |
| 228 | */ |
| 229 | _flushPendingClasses() { |
| 230 | const promises = []; |
| 231 | for (const node of this._pendingNodeClasses.keys()) { |
| 232 | this._mutatingNodes.add(node); |
| 233 | const promise = node.setAttributeValuePromise('class', this._pendingNodeClasses.get(node)) |
| 234 | .then(onClassValueUpdated.bind(this, node)); |
| 235 | promises.push(promise); |
| 236 | } |
| 237 | this._pendingNodeClasses.clear(); |
| 238 | return Promise.all(promises); |
| 239 | |
| 240 | /** |
| 241 | * @param {!SDK.DOMNode} node |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 242 | * @this {ClassesPaneWidget} |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 243 | */ |
| 244 | function onClassValueUpdated(node) { |
| 245 | this._mutatingNodes.delete(node); |
| 246 | } |
| 247 | } |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 248 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 249 | |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 250 | ClassesPaneWidget._classesSymbol = Symbol('ClassesPaneWidget._classesSymbol'); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 251 | |
| 252 | /** |
| 253 | * @implements {UI.ToolbarItem.Provider} |
| 254 | * @unrestricted |
| 255 | */ |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 256 | export class ButtonProvider { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 257 | constructor() { |
| 258 | this._button = new UI.ToolbarToggle(Common.UIString('Element Classes'), ''); |
| 259 | this._button.setText('.cls'); |
| 260 | this._button.element.classList.add('monospace'); |
| 261 | this._button.addEventListener(UI.ToolbarButton.Events.Click, this._clicked, this); |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 262 | this._view = new ClassesPaneWidget(); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 263 | } |
| 264 | |
| 265 | _clicked() { |
Tim van der Lippe | aabc830 | 2019-12-10 15:34:45 | [diff] [blame^] | 266 | ElementsPanel.instance().showToolbarPane(!this._view.isShowing() ? this._view : null, this._button); |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 267 | } |
| 268 | |
| 269 | /** |
| 270 | * @override |
| 271 | * @return {!UI.ToolbarItem} |
| 272 | */ |
| 273 | item() { |
| 274 | return this._button; |
| 275 | } |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 276 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 277 | |
| 278 | /** |
| 279 | * @unrestricted |
| 280 | */ |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 281 | export class ClassNamePrompt extends UI.TextPrompt { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 282 | /** |
| 283 | * @param {function(!SDK.DOMNode):!Map<string, boolean>} nodeClasses |
| 284 | */ |
| 285 | constructor(nodeClasses) { |
| 286 | super(); |
| 287 | this._nodeClasses = nodeClasses; |
| 288 | this.initialize(this._buildClassNameCompletions.bind(this), ' '); |
| 289 | this.disableDefaultSuggestionForEmptyInput(); |
| 290 | this._selectedFrameId = ''; |
| 291 | this._classNamesPromise = null; |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * @param {!SDK.DOMNode} selectedNode |
| 296 | * @return {!Promise.<!Array.<string>>} |
| 297 | */ |
| 298 | _getClassNames(selectedNode) { |
| 299 | const promises = []; |
| 300 | const completions = new Set(); |
| 301 | this._selectedFrameId = selectedNode.frameId(); |
| 302 | |
| 303 | const cssModel = selectedNode.domModel().cssModel(); |
| 304 | const allStyleSheets = cssModel.allStyleSheets(); |
| 305 | for (const stylesheet of allStyleSheets) { |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 306 | if (stylesheet.frameId !== this._selectedFrameId) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 307 | continue; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 308 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 309 | const cssPromise = cssModel.classNamesPromise(stylesheet.id).then(classes => completions.addAll(classes)); |
| 310 | promises.push(cssPromise); |
| 311 | } |
| 312 | |
| 313 | const domPromise = selectedNode.domModel() |
| 314 | .classNamesPromise(selectedNode.ownerDocument.id) |
| 315 | .then(classes => completions.addAll(classes)); |
| 316 | promises.push(domPromise); |
| 317 | return Promise.all(promises).then(() => completions.valuesArray()); |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * @param {string} expression |
| 322 | * @param {string} prefix |
| 323 | * @param {boolean=} force |
| 324 | * @return {!Promise<!UI.SuggestBox.Suggestions>} |
| 325 | */ |
| 326 | _buildClassNameCompletions(expression, prefix, force) { |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 327 | if (!prefix || force) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 328 | this._classNamesPromise = null; |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 329 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 330 | |
| 331 | const selectedNode = UI.context.flavor(SDK.DOMNode); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 332 | if (!selectedNode || (!prefix && !force && !expression.trim())) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 333 | return Promise.resolve([]); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 334 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 335 | |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 336 | if (!this._classNamesPromise || this._selectedFrameId !== selectedNode.frameId()) { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 337 | this._classNamesPromise = this._getClassNames(selectedNode); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 338 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 339 | |
| 340 | return this._classNamesPromise.then(completions => { |
| 341 | const classesMap = this._nodeClasses(/** @type {!SDK.DOMNode} */ (selectedNode)); |
| 342 | completions = completions.filter(value => !classesMap.get(value)); |
| 343 | |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 344 | if (prefix[0] === '.') { |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 345 | completions = completions.map(value => '.' + value); |
Tim van der Lippe | 1d6e57a | 2019-09-30 11:55:34 | [diff] [blame] | 346 | } |
Blink Reformat | 4c46d09 | 2018-04-07 15:32:37 | [diff] [blame] | 347 | return completions.filter(value => value.startsWith(prefix)).sort().map(completion => ({text: completion})); |
| 348 | }); |
| 349 | } |
Tim van der Lippe | 13f71fb | 2019-11-29 11:17:39 | [diff] [blame] | 350 | } |