devtools-protocol 0.0.1377232 → 0.0.1378738
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4887,6 +4887,18 @@
|
|
4887
4887
|
}
|
4888
4888
|
]
|
4889
4889
|
},
|
4890
|
+
{
|
4891
|
+
"name": "trackComputedStyleUpdatesForNode",
|
4892
|
+
"description": "Starts tracking the given node for the computed style updates\nand whenever the computed style is updated for node, it queues\na `computedStyleUpdated` event with throttling.",
|
4893
|
+
"experimental": true,
|
4894
|
+
"parameters": [
|
4895
|
+
{
|
4896
|
+
"name": "nodeId",
|
4897
|
+
"optional": true,
|
4898
|
+
"$ref": "DOM.NodeId"
|
4899
|
+
}
|
4900
|
+
]
|
4901
|
+
},
|
4890
4902
|
{
|
4891
4903
|
"name": "trackComputedStyleUpdates",
|
4892
4904
|
"description": "Starts tracking the given computed styles for updates. The specified array of properties\nreplaces the one previously specified. Pass empty array to disable tracking.\nUse takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\nThe changes to computed style properties are only tracked for nodes pushed to the front-end\nby the DOM agent. If no changes to the tracked properties occur after the node has been pushed\nto the front-end, no updates will be issued for the node.",
|
@@ -5261,6 +5273,17 @@
|
|
5261
5273
|
"$ref": "StyleSheetId"
|
5262
5274
|
}
|
5263
5275
|
]
|
5276
|
+
},
|
5277
|
+
{
|
5278
|
+
"name": "computedStyleUpdated",
|
5279
|
+
"experimental": true,
|
5280
|
+
"parameters": [
|
5281
|
+
{
|
5282
|
+
"name": "nodeId",
|
5283
|
+
"description": "The node id that has updated computed styles.",
|
5284
|
+
"$ref": "DOM.NodeId"
|
5285
|
+
}
|
5286
|
+
]
|
5264
5287
|
}
|
5265
5288
|
]
|
5266
5289
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2319,6 +2319,13 @@ experimental domain CSS
|
|
2319
2319
|
returns
|
2320
2320
|
array of SourceRange ranges
|
2321
2321
|
|
2322
|
+
# Starts tracking the given node for the computed style updates
|
2323
|
+
# and whenever the computed style is updated for node, it queues
|
2324
|
+
# a `computedStyleUpdated` event with throttling.
|
2325
|
+
experimental command trackComputedStyleUpdatesForNode
|
2326
|
+
parameters
|
2327
|
+
optional DOM.NodeId nodeId
|
2328
|
+
|
2322
2329
|
# Starts tracking the given computed styles for updates. The specified array of properties
|
2323
2330
|
# replaces the one previously specified. Pass empty array to disable tracking.
|
2324
2331
|
# Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
|
@@ -2486,6 +2493,11 @@ experimental domain CSS
|
|
2486
2493
|
# Identifier of the removed stylesheet.
|
2487
2494
|
StyleSheetId styleSheetId
|
2488
2495
|
|
2496
|
+
experimental event computedStyleUpdated
|
2497
|
+
parameters
|
2498
|
+
# The node id that has updated computed styles.
|
2499
|
+
DOM.NodeId nodeId
|
2500
|
+
|
2489
2501
|
experimental domain CacheStorage
|
2490
2502
|
depends on Storage
|
2491
2503
|
|
@@ -161,6 +161,7 @@ export namespace ProtocolMapping {
|
|
161
161
|
* Fired whenever an active document stylesheet is removed.
|
162
162
|
*/
|
163
163
|
'CSS.styleSheetRemoved': [Protocol.CSS.StyleSheetRemovedEvent];
|
164
|
+
'CSS.computedStyleUpdated': [Protocol.CSS.ComputedStyleUpdatedEvent];
|
164
165
|
/**
|
165
166
|
* This is fired whenever the list of available sinks changes. A sink is a
|
166
167
|
* device or a software surface that you can cast to.
|
@@ -1871,6 +1872,15 @@ export namespace ProtocolMapping {
|
|
1871
1872
|
paramsType: [Protocol.CSS.GetLocationForSelectorRequest];
|
1872
1873
|
returnType: Protocol.CSS.GetLocationForSelectorResponse;
|
1873
1874
|
};
|
1875
|
+
/**
|
1876
|
+
* Starts tracking the given node for the computed style updates
|
1877
|
+
* and whenever the computed style is updated for node, it queues
|
1878
|
+
* a `computedStyleUpdated` event with throttling.
|
1879
|
+
*/
|
1880
|
+
'CSS.trackComputedStyleUpdatesForNode': {
|
1881
|
+
paramsType: [Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest?];
|
1882
|
+
returnType: void;
|
1883
|
+
};
|
1874
1884
|
/**
|
1875
1885
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1876
1886
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1102,6 +1102,13 @@ export namespace ProtocolProxyApi {
|
|
1102
1102
|
*/
|
1103
1103
|
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;
|
1104
1104
|
|
1105
|
+
/**
|
1106
|
+
* Starts tracking the given node for the computed style updates
|
1107
|
+
* and whenever the computed style is updated for node, it queues
|
1108
|
+
* a `computedStyleUpdated` event with throttling.
|
1109
|
+
*/
|
1110
|
+
trackComputedStyleUpdatesForNode(params: Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest): Promise<void>;
|
1111
|
+
|
1105
1112
|
/**
|
1106
1113
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1107
1114
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1217,6 +1224,8 @@ export namespace ProtocolProxyApi {
|
|
1217
1224
|
*/
|
1218
1225
|
on(event: 'styleSheetRemoved', listener: (params: Protocol.CSS.StyleSheetRemovedEvent) => void): void;
|
1219
1226
|
|
1227
|
+
on(event: 'computedStyleUpdated', listener: (params: Protocol.CSS.ComputedStyleUpdatedEvent) => void): void;
|
1228
|
+
|
1220
1229
|
}
|
1221
1230
|
|
1222
1231
|
export interface CacheStorageApi {
|
@@ -1170,6 +1170,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1170
1170
|
*/
|
1171
1171
|
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<{id: number, result: Protocol.CSS.GetLocationForSelectorResponse, sessionId: string}>;
|
1172
1172
|
|
1173
|
+
/**
|
1174
|
+
* Starts tracking the given node for the computed style updates
|
1175
|
+
* and whenever the computed style is updated for node, it queues
|
1176
|
+
* a `computedStyleUpdated` event with throttling.
|
1177
|
+
*/
|
1178
|
+
trackComputedStyleUpdatesForNode(params: Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1179
|
+
|
1173
1180
|
/**
|
1174
1181
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1175
1182
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1295,6 +1302,10 @@ export namespace ProtocolTestsProxyApi {
|
|
1295
1302
|
offStyleSheetRemoved(listener: (event: { params: Protocol.CSS.StyleSheetRemovedEvent }) => void): void;
|
1296
1303
|
onceStyleSheetRemoved(eventMatcher?: (event: { params: Protocol.CSS.StyleSheetRemovedEvent }) => boolean): Promise<{ params: Protocol.CSS.StyleSheetRemovedEvent }>;
|
1297
1304
|
|
1305
|
+
onComputedStyleUpdated(listener: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => void): void;
|
1306
|
+
offComputedStyleUpdated(listener: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => void): void;
|
1307
|
+
onceComputedStyleUpdated(eventMatcher?: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => boolean): Promise<{ params: Protocol.CSS.ComputedStyleUpdatedEvent }>;
|
1308
|
+
|
1298
1309
|
}
|
1299
1310
|
|
1300
1311
|
export interface CacheStorageApi {
|
package/types/protocol.d.ts
CHANGED
@@ -5574,6 +5574,10 @@ export namespace Protocol {
|
|
5574
5574
|
ranges: SourceRange[];
|
5575
5575
|
}
|
5576
5576
|
|
5577
|
+
export interface TrackComputedStyleUpdatesForNodeRequest {
|
5578
|
+
nodeId?: DOM.NodeId;
|
5579
|
+
}
|
5580
|
+
|
5577
5581
|
export interface TrackComputedStyleUpdatesRequest {
|
5578
5582
|
propertiesToTrack: CSSComputedStyleProperty[];
|
5579
5583
|
}
|
@@ -5770,6 +5774,13 @@ export namespace Protocol {
|
|
5770
5774
|
*/
|
5771
5775
|
styleSheetId: StyleSheetId;
|
5772
5776
|
}
|
5777
|
+
|
5778
|
+
export interface ComputedStyleUpdatedEvent {
|
5779
|
+
/**
|
5780
|
+
* The node id that has updated computed styles.
|
5781
|
+
*/
|
5782
|
+
nodeId: DOM.NodeId;
|
5783
|
+
}
|
5773
5784
|
}
|
5774
5785
|
|
5775
5786
|
export namespace CacheStorage {
|