commit | fb0426e1728afb7879c2fd02cc77059ea794cb73 | [log] [tgz] |
---|---|---|
author | Jack Franklin <[email protected]> | Tue Aug 18 11:09:52 2020 |
committer | Commit Bot <[email protected]> | Tue Aug 18 13:43:48 2020 |
tree | 4a13ba4608b72d0b31494481062af640784c812d | |
parent | 484e3dd359f493c43b11f230da59319b9a727f25 [diff] [blame] |
Rename `Element` => `LayoutElement` in LayoutPane `Element` clashes with the TypeScript built-in and the bridge generation gets confused now we have code to tell it that `Element` is a built-in type. I will work on a CL that errors when generating these bridges so that this is spotted. Change-Id: Ie6cb79bed29803728277233b4eb7ea53a8ff7af8 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2362568 Commit-Queue: Jack Franklin <[email protected]> Reviewed-by: Alex Rudenko <[email protected]> Auto-Submit: Jack Franklin <[email protected]>
diff --git a/front_end/elements/LayoutSidebarPane.js b/front_end/elements/LayoutSidebarPane.js index 49d7085..24bc115 100644 --- a/front_end/elements/LayoutSidebarPane.js +++ b/front_end/elements/LayoutSidebarPane.js
@@ -10,11 +10,11 @@ import * as UI from '../ui/ui.js'; import {ElementsPanel} from './ElementsPanel.js'; -import {createLayoutPane, Element} from './LayoutPane_bridge.js'; // eslint-disable-line no-unused-vars +import {createLayoutPane, LayoutElement} from './LayoutPane_bridge.js'; // eslint-disable-line no-unused-vars /** * @param {!Array<!SDK.DOMModel.DOMNode>} nodes - * @return {!Array<!Element>} + * @return {!Array<!LayoutElement>} */ const gridNodesToElements = nodes => { return nodes.map(node => {