Skip to content

Commit 5307d4d

Browse files
bmeurerDevtools-frontend LUCI CQ
authored andcommitted
[unified-css] Rename cssContent to cssText.
The name `cssText` is more aligned with the Web Platform APIs (both `CSSRule` and `CSSStyleDeclaration` have a `cssText` property). Otherwise this change is neutral. Bug: 391381439 Change-Id: Iae65bd4cc0fe96078cdd8c2847573551fd3f80f9 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6357196 Auto-Submit: Benedikt Meurer <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]> Reviewed-by: Nikolay Vitkov <[email protected]>
1 parent d161910 commit 5307d4d

File tree

159 files changed

+203
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+203
-204
lines changed

front_end/global_typings/global_defs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
// found in the LICENSE file.
44

55
declare module '*.css.js' {
6-
const styles: {cssContent: string};
6+
const styles: {cssText: string};
77
export default styles;
88
}

front_end/panels/ai_assistance/components/ChatView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {UserActionRow} from './UserActionRow.js';
2525

2626
// TODO(crbug.com/391381439): Fully migrate off of constructed style sheets.
2727
const styles = new CSSStyleSheet();
28-
styles.replaceSync(stylesRaw.cssContent);
28+
styles.replaceSync(stylesRaw.cssText);
2929

3030
const {html, Directives: {ifDefined, ref}} = Lit;
3131

front_end/panels/ai_assistance/components/UserActionRow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export interface UserActionRowWidgetParams {
114114
export const DEFAULT_VIEW = (input: UserActionRowViewInput, output: ViewOutput, target: HTMLElement): void => {
115115
// clang-format off
116116
Lit.render(html`
117-
<style>${Input.textInputStylesRaw.cssContent}</style>
118-
<style>${userActionRowStyles.cssContent}</style>
117+
<style>${Input.textInputStylesRaw.cssText}</style>
118+
<style>${userActionRowStyles.cssText}</style>
119119
<div class="ai-assistance-feedback-row">
120120
<div class="rate-buttons">
121121
${input.showRateButtons ? html`

front_end/panels/application/components/BackForwardCacheView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class BackForwardCacheView extends LegacyWrapper.LegacyWrapper.WrappableC
185185
// Disabled until https://crbug.com/1079231 is fixed.
186186
// clang-format off
187187
Lit.render(html`
188-
<style>${backForwardCacheViewStyles.cssContent}</style>
188+
<style>${backForwardCacheViewStyles.cssText}</style>
189189
<devtools-report .data=${
190190
{reportTitle: i18nString(UIStrings.backForwardCacheTitle)} as ReportView.ReportView.ReportData
191191
} jslog=${VisualLogging.pane('back-forward-cache')}>

front_end/panels/application/components/BounceTrackingMitigationsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class BounceTrackingMitigationsView extends LegacyWrapper.LegacyWrapper.W
8989
async #render(): Promise<void> {
9090
// clang-format off
9191
Lit.render(html`
92-
<style>${bounceTrackingMitigationsViewStyles.cssContent}</style>
92+
<style>${bounceTrackingMitigationsViewStyles.cssText}</style>
9393
<devtools-report .data=${{reportTitle: i18nString(UIStrings.bounceTrackingMitigationsTitle)}}
9494
jslog=${VisualLogging.pane('bounce-tracking-mitigations')}>
9595
${await this.#renderMainFrameInformation()}

front_end/panels/application/components/EndpointsGrid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class EndpointsGrid extends HTMLElement {
5353
// Disabled until https://crbug.com/1079231 is fixed.
5454
// clang-format off
5555
render(html`
56-
<style>${reportingApiGridStyles.cssContent}</style>
57-
<style>${inspectorCommonStyles.cssContent}</style>
56+
<style>${reportingApiGridStyles.cssText}</style>
57+
<style>${inspectorCommonStyles.cssText}</style>
5858
<div class="reporting-container" jslog=${VisualLogging.section('endpoints')}>
5959
<div class="reporting-header">${i18n.i18n.lockedString('Endpoints')}</div>
6060
${this.#endpoints.size > 0 ? html`

front_end/panels/application/components/FrameDetailsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class FrameDetailsReportView extends LegacyWrapper.LegacyWrapper.Wrappabl
310310
// Disabled until https://crbug.com/1079231 is fixed.
311311
// clang-format off
312312
Lit.render(html`
313-
<style>${frameDetailsReportViewStyles.cssContent}</style>
313+
<style>${frameDetailsReportViewStyles.cssText}</style>
314314
<devtools-report .data=${{reportTitle: this.#frame.displayName()} as ReportView.ReportView.ReportData}
315315
jslog=${VisualLogging.pane('frames')}>
316316
${this.#renderDocumentSection()}

front_end/panels/application/components/InterestGroupAccessGrid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export class InterestGroupAccessGrid extends HTMLElement {
8686
}
8787
// clang-format off
8888
Lit.render(html`
89-
<style>${interestGroupAccessGridStyles.cssContent}</style>
90-
<style>${inspectorCommonStyles.cssContent}</style>
89+
<style>${interestGroupAccessGridStyles.cssText}</style>
90+
<style>${inspectorCommonStyles.cssText}</style>
9191
<div>
9292
<span class="heading">Interest Groups</span>
9393
<devtools-icon class="info-icon"

front_end/panels/application/components/OriginTrialTreeView.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class Badge extends HTMLElement {
9797

9898
Lit.render(
9999
html`
100-
<style>${badgeStyles.cssContent}</style>
100+
<style>${badgeStyles.cssText}</style>
101101
${this.#adorner}
102102
`,
103103
this.#shadow, {host: this});
@@ -304,7 +304,7 @@ export class OriginTrialTokenRows extends HTMLElement {
304304

305305
Lit.render(
306306
html`
307-
<style>${originTrialTokenRowsStyles.cssContent}</style>
307+
<style>${originTrialTokenRowsStyles.cssText}</style>
308308
<div class="content">
309309
${tokenDetailRows}
310310
</div>
@@ -330,7 +330,7 @@ export class OriginTrialTreeView extends HTMLElement {
330330
if (!trials.length) {
331331
Lit.render(
332332
html`
333-
<style>${originTrialTreeViewStyles.cssContent}</style>
333+
<style>${originTrialTreeViewStyles.cssText}</style>
334334
<span class="status-badge">
335335
<devtools-icon
336336
.data=${{
@@ -349,7 +349,7 @@ export class OriginTrialTreeView extends HTMLElement {
349349

350350
Lit.render(
351351
html`
352-
<style>${originTrialTreeViewStyles.cssContent}</style>
352+
<style>${originTrialTreeViewStyles.cssText}</style>
353353
<devtools-tree-outline .data=${{
354354
tree: trials.map(constructOriginTrialTree),
355355
defaultRenderer,

front_end/panels/application/components/PermissionsPolicySection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export class PermissionsPolicySection extends HTMLElement {
227227
// clang-format off
228228
Lit.render(
229229
html`
230-
<style>${permissionsPolicySectionStyles.cssContent}</style>
230+
<style>${permissionsPolicySectionStyles.cssText}</style>
231231
<devtools-report-section-header>${i18n.i18n.lockedString('Permissions Policy')}</devtools-report-section-header>
232232
${this.#renderAllowed()}
233233
${Lit.Directives.until(this.#renderDisallowed(), Lit.nothing)}

0 commit comments

Comments
 (0)