gecko-dev/devtools/server
Razvan Caliman bb53752bc3 Bug 1500947 - (Part 3) Update indices of tracked declarations when one is removed; r=pbro
Depends on D11209

We need to take care when deleting a declaration. This means shifting the indexes of declarations which follow it in the CSS rule. To do this, we iterate over all tracked added/removed declarations and make sure to decrement their index if it is larger than the index of the deleted one.

The Rule view and specialized editors do not support inserting declarations at any other position other than at the end of the existing declarations list. For now, it is safe to assume all newly added declarations will not shift any tracked indexes. But we will need to handle this for other use cases, like the Style Editor or manual editing of element style attributes.

MozReview-Commit-ID: InrNbsNsqz6

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

--HG--
extra : moz-landing-system : lando
2018-11-13 09:00:48 +00:00
..
actors Bug 1500947 - (Part 3) Update indices of tracked declarations when one is removed; r=pbro 2018-11-13 09:00:48 +00:00
performance Bug 1489745 - Convert the preference sample-frequency-khz to hz r=ochameau,mstange 2018-10-24 12:09:37 +00:00
socket Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
startup Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
tests Bug 1498280 - Introduce RootClient.getMainProcess to fetch ParentProcessTargetActor. r=yulia 2018-11-13 14:07:36 +00:00
main.js Bug 1497448: Rename closeAllListener to closeAllSocketListeners. r=ochameau,jdescottes 2018-11-07 17:46:05 +00:00
moz.build Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau 2018-09-26 10:09:15 +02:00