commit | 04d50fc9bd5572b3a4519dc17fc2df21e7dc4db1 | [log] [tgz] |
---|---|---|
author | Johan Bay <[email protected]> | Tue Mar 01 12:07:04 2022 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 02 11:18:32 2022 |
tree | 6b3e80e4ea0054099ebbe2f46697d728098ef35b | |
parent | 8e8446b2070652edf6a127e0eb4cdb35c5abee18 [diff] [blame] |
Rename async getters in CSSModel.ts Bug: 1301903 Change-Id: I9ac4f5cef2d6e4d6ee5589f0163022a255dec943 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3497015 Reviewed-by: Tim Van der Lippe <[email protected]> Reviewed-by: Changhao Han <[email protected]> Commit-Queue: Johan Bay <[email protected]>
diff --git a/front_end/panels/elements/ClassesPaneWidget.ts b/front_end/panels/elements/ClassesPaneWidget.ts index 70d4519..5d99576 100644 --- a/front_end/panels/elements/ClassesPaneWidget.ts +++ b/front_end/panels/elements/ClassesPaneWidget.ts
@@ -313,7 +313,7 @@ if (stylesheet.frameId !== this.selectedFrameId) { continue; } - const cssPromise = cssModel.classNamesPromise(stylesheet.id).then(classes => { + const cssPromise = cssModel.getClassNames(stylesheet.id).then(classes => { for (const className of classes) { completions.add(className); }