adobe/brackets — pull request #2210 by gruehle (2012-11-26 21:00:55+00:00)
Title: Redraw CSS Highlights when Brackets is focused

This is a partial workaround for #2188. Whenever Brackets is re-focused, any existing CSS Highlights will be redrawn.

Whenever CSS highlights are redrawn, a new `querySelectorAll()` call is made so any elements added (or removed) since the last query will be properly updated.

As a side effect of this change, scrolling or resizing the browser will also re-run the query, which will catch any elements that have been added/removed since the last update.