Skip to content

Commit

Permalink
Bug 1876477 - [devtools] Use proper private fields and methods in Sty…
Browse files Browse the repository at this point in the history
…leSheetsManager. r=devtools-reviewers,ochameau.

This revealed that some of the pseudo methods were used outside of the StyleSheetsManager,
so we're making them public instead.

Differential Revision: https://phabricator.services.mozilla.com/D199610
  • Loading branch information
nchevobbe committed Jan 25, 2024
1 parent 888e2e0 commit 7b88c1b
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 138 deletions.
6 changes: 3 additions & 3 deletions devtools/server/actors/resources/stylesheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ class StyleSheetWatcher {
href: styleSheet.href,
isNew: isCreatedByDevTools,
atRules,
nodeHref: this._styleSheetsManager._getNodeHref(styleSheet),
nodeHref: this._styleSheetsManager.getNodeHref(styleSheet),
ruleCount,
sourceMapBaseURL:
this._styleSheetsManager._getSourcemapBaseURL(styleSheet),
this._styleSheetsManager.getSourcemapBaseURL(styleSheet),
sourceMapURL: styleSheet.sourceMapURL,
styleSheetIndex: this._styleSheetsManager._getStyleSheetIndex(styleSheet),
styleSheetIndex: this._styleSheetsManager.getStyleSheetIndex(resourceId),
system: CssLogic.isAgentStylesheet(styleSheet),
title: styleSheet.title,
};
Expand Down
Loading

0 comments on commit 7b88c1b

Please sign in to comment.