Skip to content

Commit 7b02e7f

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 6114d77 commit 7b02e7f

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

gen-src/ChromeDevtoolsProtocol/Model/CSS/CSSProperty.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

protocol.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,6 +3624,16 @@
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
},

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d342da8ee5692ac4a054ccdc7d73ff52 protocol.json
1+
194c6afff5c791964516f0d8654d984f protocol.json

0 commit comments

Comments
 (0)