Bug 1558783 - Fixes the subgrid and parent grid highlighter states when both are...
commit91807979e8e3b40f3e08228eeb4bf81d8da34936
authorGabriel Luong <gabriel.luong@gmail.com>
Mon, 24 Jun 2019 21:46:04 +0000 (24 17:46 -0400)
committerGabriel Luong <gabriel.luong@gmail.com>
Mon, 24 Jun 2019 21:46:04 +0000 (24 17:46 -0400)
tree34b5856af0fe49bb8c2a8b37368dac22cca4b0df
parent2f9520caf9dd4cd39dc3e1bb700f871761311e85
Bug 1558783 - Fixes the subgrid and parent grid highlighter states when both are highlighted. r=mtigley

This fixes 2 issues that we had when the subgrid and parent grid highlighter are shown:

1) When the subgrid and its parent grid container are both highlighted and the parent grid container
is unhighlighted, we need to still show a translucent parent grid container highlight.

2) Avoid showing a translucent parent grid container highlight for a subgrid, when the
parent grid container is already highlighted.

Differential Revision: https://phabricator.services.mozilla.com/D35725
devtools/client/inspector/shared/highlighters-overlay.js