File tree Expand file tree Collapse file tree
gen-src/ChromeDevtoolsProtocol/Model/CSS Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,6 +67,13 @@ final class CSSProperty implements \JsonSerializable
6767 */
6868 public $ range ;
6969
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+
7077
7178 /**
7279 * @param object $data
@@ -99,6 +106,12 @@ public static function fromJson($data)
99106 if (isset ($ data ->range )) {
100107 $ instance ->range = SourceRange::fromJson ($ data ->range );
101108 }
109+ if (isset ($ data ->longhandProperties )) {
110+ $ instance ->longhandProperties = [];
111+ foreach ($ data ->longhandProperties as $ item ) {
112+ $ instance ->longhandProperties [] = CSSProperty::fromJson ($ item );
113+ }
114+ }
102115 return $ instance ;
103116 }
104117
@@ -130,6 +143,12 @@ public function jsonSerialize()
130143 if ($ this ->range !== null ) {
131144 $ data ->range = $ this ->range ->jsonSerialize ();
132145 }
146+ if ($ this ->longhandProperties !== null ) {
147+ $ data ->longhandProperties = [];
148+ foreach ($ this ->longhandProperties as $ item ) {
149+ $ data ->longhandProperties [] = $ item ->jsonSerialize ();
150+ }
151+ }
133152 return $ data ;
134153 }
135154}
Original file line number Diff line number Diff line change 36243624 "description": "The entire property range in the enclosing style declaration (if available).",
36253625 "optional": true,
36263626 "$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+ }
36273637 }
36283638 ]
36293639 },
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