gecko-dev/devtools
Nicolas Chevobbe 13d59f5645 Bug 1479373 - Refactor autocomplete popup for performance; r=jdescottes.
This patch introduces some options that can be passed to
setItems and openPopup to prevent doing unecessary work.
The main ideas here are to create all the popup items and
put them in a document fragment which then will be appended
to the popup, so we don't add them one by one which can be costly.
When creatingthe items, we also create one directly with the
selected class if autoSelect is set to true. This way, we don't have
to toggle the class later (which led to another reflow).

We take this work as an opportinuity to clean up the component.
Unused function (like appendItem and removeItem) are removed,
selectedIndex does not use a getter/setter anymore.

Some of the consumers calls are updated and so is the component test.

Differential Revision: https://phabricator.services.mozilla.com/D4848

--HG--
extra : moz-landing-system : lando
2018-09-05 08:34:47 +00:00
..
client Bug 1479373 - Refactor autocomplete popup for performance; r=jdescottes. 2018-09-05 08:34:47 +00:00
docs Bug 1483817 - Font Inspector telemetry needs more granular OS versioning r=gl 2018-08-23 19:48:17 +00:00
platform
server Bug 1440468 - Fix devtools test for new Function.prototype.toString behavior. r=yulia 2018-09-03 23:47:56 +02:00
shared Bug 1447490 - replace GCLI toolbox buttons with highlighters and appropriate actors; r=ochameau 2018-09-03 14:54:04 +00:00
startup Bug 1435429 - Android 'mach mochitest' fails: 'A cross-directory support file path noted in a test manifest does not appear in any other manifest.' r=bc,chmanchester 2018-08-28 20:29:58 +00:00
.eslintrc.js Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop 2018-09-04 18:08:43 +00:00
.eslintrc.mochitests.js Backed out changeset d8ff6c1c6f3a (bug 1471764) for failing devtools' browser_markup_flex_display_badge.js in beta simulations. a=backout 2018-09-04 18:21:03 +03:00
.eslintrc.xpcshell.js Bug 1443661 - Enable ESLint rule no-undef for test files in devtools/client/webconsole/new-console-output/. r=nchevobbe 2018-03-06 22:50:58 +00:00
CODE_OF_CONDUCT.md
moz.build Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander 2018-06-20 21:34:40 +03:00
templates.mozbuild