File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
gen-src/ChromeDevtoolsProtocol/Model/CSS Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,13 @@ final class CSSProperty implements \JsonSerializable
67
67
*/
68
68
public $ range ;
69
69
70
+ /**
71
+ * Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
72
+ *
73
+ * @var CSSProperty[]|null
74
+ */
75
+ public $ longhandProperties ;
76
+
70
77
71
78
/**
72
79
* @param object $data
@@ -99,6 +106,12 @@ public static function fromJson($data)
99
106
if (isset ($ data ->range )) {
100
107
$ instance ->range = SourceRange::fromJson ($ data ->range );
101
108
}
109
+ if (isset ($ data ->longhandProperties )) {
110
+ $ instance ->longhandProperties = [];
111
+ foreach ($ data ->longhandProperties as $ item ) {
112
+ $ instance ->longhandProperties [] = CSSProperty::fromJson ($ item );
113
+ }
114
+ }
102
115
return $ instance ;
103
116
}
104
117
@@ -130,6 +143,12 @@ public function jsonSerialize()
130
143
if ($ this ->range !== null ) {
131
144
$ data ->range = $ this ->range ->jsonSerialize ();
132
145
}
146
+ if ($ this ->longhandProperties !== null ) {
147
+ $ data ->longhandProperties = [];
148
+ foreach ($ this ->longhandProperties as $ item ) {
149
+ $ data ->longhandProperties [] = $ item ->jsonSerialize ();
150
+ }
151
+ }
133
152
return $ data ;
134
153
}
135
154
}
Original file line number Diff line number Diff line change 3624
3624
"description": "The entire property range in the enclosing style declaration (if available).",
3625
3625
"optional": true,
3626
3626
"$ref": "SourceRange"
3627
+ },
3628
+ {
3629
+ "name": "longhandProperties",
3630
+ "description": "Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.",
3631
+ "experimental": true,
3632
+ "optional": true,
3633
+ "type": "array",
3634
+ "items": {
3635
+ "$ref": "CSSProperty"
3636
+ }
3627
3637
}
3628
3638
]
3629
3639
},
Original file line number Diff line number Diff line change 1
- d342da8ee5692ac4a054ccdc7d73ff52 protocol.json
1
+ 194c6afff5c791964516f0d8654d984f protocol.json
You can’t perform that action at this time.
0 commit comments