Skip to content

Commit 9020782

Browse files
devtools-ci-autoroll-builderDevtools-frontend LUCI CQ
authored andcommitted
Roll browser-protocol
This roll requires a manual review. See http://go/reviewed-rolls for guidance. In case of failures or errors, reach out to someone from config/owner/COMMON_OWNERS. Roll created at https://cr-buildbucket.appspot.com/build/8728791867596756305 [email protected] Bug: none Change-Id: I81dae6a4e9885f3a9a8ecf0bcbf31a09b09e5166 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6088580 Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Reviewed-by: Alex Rudenko <[email protected]> Commit-Queue: Alex Rudenko <[email protected]>
1 parent fa9f811 commit 9020782

File tree

8 files changed

+187
-3
lines changed

8 files changed

+187
-3
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ vars = {
2424
'inspector_protocol_revision': '69d69ddf3aa698b171886551a4a672c5af1ad902',
2525

2626
# Keeping track of the last time we rollerd the browser protocol files.
27-
'chromium_browser_protocol_revision' : 'a4d27b40bc7e114c8a581eec4c55f5be438a11ec',
27+
'chromium_browser_protocol_revision' : 'f6eeb774b14259df6669d34419d3a0d1165fcdcb',
2828

2929
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
3030
'clang_format_revision': '37f6e68a107df43b7d7e044fd36a13cbae3413f2',

front_end/generated/InspectorBackendCommands.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/generated/protocol-mapping.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,14 @@ export namespace ProtocolMapping {
12681268
paramsType: [Protocol.CSS.GetInlineStylesForNodeRequest];
12691269
returnType: Protocol.CSS.GetInlineStylesForNodeResponse;
12701270
};
1271+
/**
1272+
* Returns the styles coming from animations & transitions
1273+
* including the animation & transition styles coming from inheritance chain.
1274+
*/
1275+
'CSS.getAnimatedStylesForNode': {
1276+
paramsType: [Protocol.CSS.GetAnimatedStylesForNodeRequest];
1277+
returnType: Protocol.CSS.GetAnimatedStylesForNodeResponse;
1278+
};
12711279
/**
12721280
* Returns requested styles for a DOM node identified by `nodeId`.
12731281
*/

front_end/generated/protocol-proxy-api.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,12 @@ declare namespace ProtocolProxyApi {
676676
*/
677677
invoke_getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<Protocol.CSS.GetInlineStylesForNodeResponse>;
678678

679+
/**
680+
* Returns the styles coming from animations & transitions
681+
* including the animation & transition styles coming from inheritance chain.
682+
*/
683+
invoke_getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<Protocol.CSS.GetAnimatedStylesForNodeResponse>;
684+
679685
/**
680686
* Returns requested styles for a DOM node identified by `nodeId`.
681687
*/

front_end/generated/protocol.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,20 @@ export namespace CSS {
22722272
matches: RuleMatch[];
22732273
}
22742274

2275+
/**
2276+
* CSS style coming from animations with the name of the animation.
2277+
*/
2278+
export interface CSSAnimationStyle {
2279+
/**
2280+
* The name of the animation.
2281+
*/
2282+
name?: string;
2283+
/**
2284+
* The style coming from the animation.
2285+
*/
2286+
style: CSSStyle;
2287+
}
2288+
22752289
/**
22762290
* Inherited CSS rule collection from ancestor node.
22772291
*/
@@ -2286,6 +2300,20 @@ export namespace CSS {
22862300
matchedCSSRules: RuleMatch[];
22872301
}
22882302

2303+
/**
2304+
* Inherited CSS style collection for animated styles from ancestor node.
2305+
*/
2306+
export interface InheritedAnimatedStyleEntry {
2307+
/**
2308+
* Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
2309+
*/
2310+
animationStyles?: CSSAnimationStyle[];
2311+
/**
2312+
* The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
2313+
*/
2314+
transitionsStyle?: CSSStyle;
2315+
}
2316+
22892317
/**
22902318
* Inherited pseudo element matches from pseudos of an ancestor node.
22912319
*/
@@ -3269,6 +3297,26 @@ export namespace CSS {
32693297
attributesStyle?: CSSStyle;
32703298
}
32713299

3300+
export interface GetAnimatedStylesForNodeRequest {
3301+
nodeId: DOM.NodeId;
3302+
}
3303+
3304+
export interface GetAnimatedStylesForNodeResponse extends ProtocolResponseWithError {
3305+
/**
3306+
* Styles coming from animations.
3307+
*/
3308+
animationStyles?: CSSAnimationStyle[];
3309+
/**
3310+
* Style coming from transitions.
3311+
*/
3312+
transitionsStyle?: CSSStyle;
3313+
/**
3314+
* Inherited style entries for animationsStyle and transitionsStyle from
3315+
* the inheritance chain of the element.
3316+
*/
3317+
inherited?: InheritedAnimatedStyleEntry[];
3318+
}
3319+
32723320
export interface GetMatchedStylesForNodeRequest {
32733321
nodeId: DOM.NodeId;
32743322
}

front_end/models/javascript_metadata/NativeFunctions.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5277,11 +5277,23 @@ export const NativeFunctions = [
52775277
},
52785278
{
52795279
name: "atob",
5280-
signatures: [["data"]]
5280+
signatures: [["data"]],
5281+
receivers: ["Window","WorkerGlobalScope"]
5282+
},
5283+
{
5284+
name: "atob",
5285+
signatures: [["atob"]],
5286+
receivers: ["Window","ShadowRealmGlobalScope","WorkerGlobalScope"]
52815287
},
52825288
{
52835289
name: "btoa",
5284-
signatures: [["data"]]
5290+
signatures: [["data"]],
5291+
receivers: ["Window","WorkerGlobalScope"]
5292+
},
5293+
{
5294+
name: "btoa",
5295+
signatures: [["btoa"]],
5296+
receivers: ["Window","ShadowRealmGlobalScope","WorkerGlobalScope"]
52855297
},
52865298
{
52875299
name: "clearInterval",

third_party/blink/public/devtools_protocol/browser_protocol.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,6 +3393,24 @@
33933393
}
33943394
]
33953395
},
3396+
{
3397+
"id": "CSSAnimationStyle",
3398+
"description": "CSS style coming from animations with the name of the animation.",
3399+
"type": "object",
3400+
"properties": [
3401+
{
3402+
"name": "name",
3403+
"description": "The name of the animation.",
3404+
"optional": true,
3405+
"type": "string"
3406+
},
3407+
{
3408+
"name": "style",
3409+
"description": "The style coming from the animation.",
3410+
"$ref": "CSSStyle"
3411+
}
3412+
]
3413+
},
33963414
{
33973415
"id": "InheritedStyleEntry",
33983416
"description": "Inherited CSS rule collection from ancestor node.",
@@ -3414,6 +3432,28 @@
34143432
}
34153433
]
34163434
},
3435+
{
3436+
"id": "InheritedAnimatedStyleEntry",
3437+
"description": "Inherited CSS style collection for animated styles from ancestor node.",
3438+
"type": "object",
3439+
"properties": [
3440+
{
3441+
"name": "animationStyles",
3442+
"description": "Styles coming from the animations of the ancestor, if any, in the style inheritance chain.",
3443+
"optional": true,
3444+
"type": "array",
3445+
"items": {
3446+
"$ref": "CSSAnimationStyle"
3447+
}
3448+
},
3449+
{
3450+
"name": "transitionsStyle",
3451+
"description": "The style coming from the transitions of the ancestor, if any, in the style inheritance chain.",
3452+
"optional": true,
3453+
"$ref": "CSSStyle"
3454+
}
3455+
]
3456+
},
34173457
{
34183458
"id": "InheritedPseudoElementMatches",
34193459
"description": "Inherited pseudo element matches from pseudos of an ancestor node.",
@@ -4769,6 +4809,43 @@
47694809
}
47704810
]
47714811
},
4812+
{
4813+
"name": "getAnimatedStylesForNode",
4814+
"description": "Returns the styles coming from animations & transitions\nincluding the animation & transition styles coming from inheritance chain.",
4815+
"experimental": true,
4816+
"parameters": [
4817+
{
4818+
"name": "nodeId",
4819+
"$ref": "DOM.NodeId"
4820+
}
4821+
],
4822+
"returns": [
4823+
{
4824+
"name": "animationStyles",
4825+
"description": "Styles coming from animations.",
4826+
"optional": true,
4827+
"type": "array",
4828+
"items": {
4829+
"$ref": "CSSAnimationStyle"
4830+
}
4831+
},
4832+
{
4833+
"name": "transitionsStyle",
4834+
"description": "Style coming from transitions.",
4835+
"optional": true,
4836+
"$ref": "CSSStyle"
4837+
},
4838+
{
4839+
"name": "inherited",
4840+
"description": "Inherited style entries for animationsStyle and transitionsStyle from\nthe inheritance chain of the element.",
4841+
"optional": true,
4842+
"type": "array",
4843+
"items": {
4844+
"$ref": "InheritedAnimatedStyleEntry"
4845+
}
4846+
}
4847+
]
4848+
},
47724849
{
47734850
"name": "getMatchedStylesForNode",
47744851
"description": "Returns requested styles for a DOM node identified by `nodeId`.",

third_party/blink/public/devtools_protocol/browser_protocol.pdl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,14 @@ experimental domain CSS
17011701
# Matches of CSS rules applicable to the pseudo style.
17021702
array of RuleMatch matches
17031703

1704+
# CSS style coming from animations with the name of the animation.
1705+
type CSSAnimationStyle extends object
1706+
properties
1707+
# The name of the animation.
1708+
optional string name
1709+
# The style coming from the animation.
1710+
CSSStyle style
1711+
17041712
# Inherited CSS rule collection from ancestor node.
17051713
type InheritedStyleEntry extends object
17061714
properties
@@ -1709,6 +1717,14 @@ experimental domain CSS
17091717
# Matches of CSS rules matching the ancestor node in the style inheritance chain.
17101718
array of RuleMatch matchedCSSRules
17111719

1720+
# Inherited CSS style collection for animated styles from ancestor node.
1721+
type InheritedAnimatedStyleEntry extends object
1722+
properties
1723+
# Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
1724+
optional array of CSSAnimationStyle animationStyles
1725+
# The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
1726+
optional CSSStyle transitionsStyle
1727+
17121728
# Inherited pseudo element matches from pseudos of an ancestor node.
17131729
type InheritedPseudoElementMatches extends object
17141730
properties
@@ -2296,6 +2312,20 @@ experimental domain CSS
22962312
# Attribute-defined element style (e.g. resulting from "width=20 height=100%").
22972313
optional CSSStyle attributesStyle
22982314

2315+
# Returns the styles coming from animations & transitions
2316+
# including the animation & transition styles coming from inheritance chain.
2317+
experimental command getAnimatedStylesForNode
2318+
parameters
2319+
DOM.NodeId nodeId
2320+
returns
2321+
# Styles coming from animations.
2322+
optional array of CSSAnimationStyle animationStyles
2323+
# Style coming from transitions.
2324+
optional CSSStyle transitionsStyle
2325+
# Inherited style entries for animationsStyle and transitionsStyle from
2326+
# the inheritance chain of the element.
2327+
optional array of InheritedAnimatedStyleEntry inherited
2328+
22992329
# Returns requested styles for a DOM node identified by `nodeId`.
23002330
command getMatchedStylesForNode
23012331
parameters

0 commit comments

Comments
 (0)