forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1847565 - [devtools] Speedup StyleSheetsManager#getStyleSheetRule…
…CountAndAtRules . r=devtools-reviewers,jdescottes. Don't check if rules are instances of `CSSGroupingRule` (as `CSSStyleRule` would match now, so it's not providing the guard we want anymore). Avoid retrieving stylesheet window and document until it's needed, and only compute rule line and column for the at-rules we'll return. Differential Revision: https://phabricator.services.mozilla.com/D185636
- Loading branch information
Showing
1 changed file
with
56 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters