@@ -52,8 +52,8 @@ export class CSSModel extends SDKModel<EventTypes> {
5252 readonly #styleLoader: ComputedStyleLoader ;
5353 readonly #stylePollingThrottler = new Common . Throttler . Throttler ( StylePollingInterval ) ;
5454 readonly #styleSheetIdsForURL =
55- new Map < Platform . DevToolsPath . UrlString , Map < string , Set < Protocol . CSS . StyleSheetId > > > ( ) ;
56- readonly #styleSheetIdToHeader = new Map < Protocol . CSS . StyleSheetId , CSSStyleSheetHeader > ( ) ;
55+ new Map < Platform . DevToolsPath . UrlString , Map < string , Set < Protocol . DOM . StyleSheetId > > > ( ) ;
56+ readonly #styleSheetIdToHeader = new Map < Protocol . DOM . StyleSheetId , CSSStyleSheetHeader > ( ) ;
5757 #cachedMatchedCascadeNode: DOMNode | null = null ;
5858 #cachedMatchedCascadePromise: Promise < CSSMatchedStyles | null > | null = null ;
5959 #cssPropertyTracker: CSSPropertyTracker | null = null ;
@@ -183,7 +183,7 @@ export class CSSModel extends SDKModel<EventTypes> {
183183 }
184184
185185 async setStyleText (
186- styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ,
186+ styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ,
187187 majorChange : boolean ) : Promise < boolean > {
188188 try {
189189 await this . ensureOriginalStyleSheetText ( styleSheetId ) ;
@@ -204,7 +204,7 @@ export class CSSModel extends SDKModel<EventTypes> {
204204 }
205205 }
206206
207- async setSelectorText ( styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ) :
207+ async setSelectorText ( styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ) :
208208 Promise < boolean > {
209209 Host . userMetrics . actionTaken ( Host . UserMetrics . Action . StyleRuleEdited ) ;
210210
@@ -226,7 +226,7 @@ export class CSSModel extends SDKModel<EventTypes> {
226226 }
227227
228228 async setPropertyRulePropertyName (
229- styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ) : Promise < boolean > {
229+ styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ) : Promise < boolean > {
230230 Host . userMetrics . actionTaken ( Host . UserMetrics . Action . StyleRuleEdited ) ;
231231
232232 try {
@@ -247,7 +247,7 @@ export class CSSModel extends SDKModel<EventTypes> {
247247 }
248248 }
249249
250- async setKeyframeKey ( styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ) :
250+ async setKeyframeKey ( styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange , text : string ) :
251251 Promise < boolean > {
252252 Host . userMetrics . actionTaken ( Host . UserMetrics . Action . StyleRuleEdited ) ;
253253
@@ -367,7 +367,7 @@ export class CSSModel extends SDKModel<EventTypes> {
367367 return await CSSMatchedStyles . create ( payload ) ;
368368 }
369369
370- async getClassNames ( styleSheetId : Protocol . CSS . StyleSheetId ) : Promise < string [ ] > {
370+ async getClassNames ( styleSheetId : Protocol . DOM . StyleSheetId ) : Promise < string [ ] > {
371371 const { classNames} = await this . agent . invoke_collectClassNames ( { styleSheetId} ) ;
372372 return classNames || [ ] ;
373373 }
@@ -502,7 +502,7 @@ export class CSSModel extends SDKModel<EventTypes> {
502502 }
503503
504504 async setMediaText (
505- styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange ,
505+ styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange ,
506506 newMediaText : string ) : Promise < boolean > {
507507 Host . userMetrics . actionTaken ( Host . UserMetrics . Action . StyleRuleEdited ) ;
508508
@@ -524,7 +524,7 @@ export class CSSModel extends SDKModel<EventTypes> {
524524 }
525525
526526 async setContainerQueryText (
527- styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange ,
527+ styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange ,
528528 newContainerQueryText : string ) : Promise < boolean > {
529529 Host . userMetrics . actionTaken ( Host . UserMetrics . Action . StyleRuleEdited ) ;
530530
@@ -547,7 +547,7 @@ export class CSSModel extends SDKModel<EventTypes> {
547547 }
548548
549549 async setSupportsText (
550- styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange ,
550+ styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange ,
551551 newSupportsText : string ) : Promise < boolean > {
552552 Host . userMetrics . actionTaken ( Host . UserMetrics . Action . StyleRuleEdited ) ;
553553
@@ -569,7 +569,7 @@ export class CSSModel extends SDKModel<EventTypes> {
569569 }
570570
571571 async setScopeText (
572- styleSheetId : Protocol . CSS . StyleSheetId , range : TextUtils . TextRange . TextRange ,
572+ styleSheetId : Protocol . DOM . StyleSheetId , range : TextUtils . TextRange . TextRange ,
573573 newScopeText : string ) : Promise < boolean > {
574574 Host . userMetrics . actionTaken ( Host . UserMetrics . Action . StyleRuleEdited ) ;
575575
@@ -590,7 +590,7 @@ export class CSSModel extends SDKModel<EventTypes> {
590590 }
591591 }
592592
593- async addRule ( styleSheetId : Protocol . CSS . StyleSheetId , ruleText : string , ruleLocation : TextUtils . TextRange . TextRange ) :
593+ async addRule ( styleSheetId : Protocol . DOM . StyleSheetId , ruleText : string , ruleLocation : TextUtils . TextRange . TextRange ) :
594594 Promise < CSSStyleRule | null > {
595595 try {
596596 await this . ensureOriginalStyleSheetText ( styleSheetId ) ;
@@ -657,19 +657,19 @@ export class CSSModel extends SDKModel<EventTypes> {
657657 return this . #fontFaces. get ( src ) ;
658658 }
659659
660- styleSheetHeaderForId ( id : Protocol . CSS . StyleSheetId ) : CSSStyleSheetHeader | null {
660+ styleSheetHeaderForId ( id : Protocol . DOM . StyleSheetId ) : CSSStyleSheetHeader | null {
661661 return this . #styleSheetIdToHeader. get ( id ) || null ;
662662 }
663663
664664 styleSheetHeaders ( ) : CSSStyleSheetHeader [ ] {
665665 return [ ...this . #styleSheetIdToHeader. values ( ) ] ;
666666 }
667667
668- fireStyleSheetChanged ( styleSheetId : Protocol . CSS . StyleSheetId , edit ?: Edit ) : void {
668+ fireStyleSheetChanged ( styleSheetId : Protocol . DOM . StyleSheetId , edit ?: Edit ) : void {
669669 this . dispatchEventToListeners ( Events . StyleSheetChanged , { styleSheetId, edit} ) ;
670670 }
671671
672- private ensureOriginalStyleSheetText ( styleSheetId : Protocol . CSS . StyleSheetId ) : Promise < string | null > {
672+ private ensureOriginalStyleSheetText ( styleSheetId : Protocol . DOM . StyleSheetId ) : Promise < string | null > {
673673 const header = this . styleSheetHeaderForId ( styleSheetId ) ;
674674 if ( ! header ) {
675675 return Promise . resolve ( null ) ;
@@ -732,7 +732,7 @@ export class CSSModel extends SDKModel<EventTypes> {
732732 this . dispatchEventToListeners ( Events . StyleSheetAdded , styleSheetHeader ) ;
733733 }
734734
735- styleSheetRemoved ( id : Protocol . CSS . StyleSheetId ) : void {
735+ styleSheetRemoved ( id : Protocol . DOM . StyleSheetId ) : void {
736736 const header = this . #styleSheetIdToHeader. get ( id ) ;
737737 console . assert ( Boolean ( header ) ) ;
738738 if ( ! header ) {
@@ -760,7 +760,7 @@ export class CSSModel extends SDKModel<EventTypes> {
760760 this . dispatchEventToListeners ( Events . StyleSheetRemoved , header ) ;
761761 }
762762
763- getStyleSheetIdsForURL ( url : Platform . DevToolsPath . UrlString ) : Protocol . CSS . StyleSheetId [ ] {
763+ getStyleSheetIdsForURL ( url : Platform . DevToolsPath . UrlString ) : Protocol . DOM . StyleSheetId [ ] {
764764 const frameIdToStyleSheetIds = this . #styleSheetIdsForURL. get ( url ) ;
765765 if ( ! frameIdToStyleSheetIds ) {
766766 return [ ] ;
@@ -773,7 +773,7 @@ export class CSSModel extends SDKModel<EventTypes> {
773773 return result ;
774774 }
775775
776- async setStyleSheetText ( styleSheetId : Protocol . CSS . StyleSheetId , newText : string , majorChange : boolean ) :
776+ async setStyleSheetText ( styleSheetId : Protocol . DOM . StyleSheetId , newText : string , majorChange : boolean ) :
777777 Promise < string | null > {
778778 const header = this . #styleSheetIdToHeader. get ( styleSheetId ) ;
779779 if ( ! header ) {
@@ -799,7 +799,7 @@ export class CSSModel extends SDKModel<EventTypes> {
799799 return null ;
800800 }
801801
802- async getStyleSheetText ( styleSheetId : Protocol . CSS . StyleSheetId ) : Promise < string | null > {
802+ async getStyleSheetText ( styleSheetId : Protocol . DOM . StyleSheetId ) : Promise < string | null > {
803803 const response = await this . agent . invoke_getStyleSheetText ( { styleSheetId} ) ;
804804 if ( response . getError ( ) ) {
805805 return null ;
@@ -953,7 +953,7 @@ export enum Events {
953953}
954954
955955export interface StyleSheetChangedEvent {
956- styleSheetId : Protocol . CSS . StyleSheetId ;
956+ styleSheetId : Protocol . DOM . StyleSheetId ;
957957 edit ?: Edit ;
958958}
959959
@@ -999,7 +999,7 @@ export class Edit {
999999
10001000export class CSSLocation {
10011001 readonly #cssModel: CSSModel ;
1002- styleSheetId : Protocol . CSS . StyleSheetId ;
1002+ styleSheetId : Protocol . DOM . StyleSheetId ;
10031003 url : Platform . DevToolsPath . UrlString ;
10041004 lineNumber : number ;
10051005 columnNumber : number ;
0 commit comments