mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
LibWeb: Use interface_name instead of serialize_type virtual
`interface_name` is implemented for every platform object, so we no longer need this boilerplate for every serializable platform object.
This commit is contained in:
parent
4d64f21fa5
commit
6a9cd0e8e0
Notes:
github-actions[bot]
2026-02-14 19:36:00 +00:00
Author: https://github.com/shannonbooth
Commit: 6a9cd0e8e0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7518
17 changed files with 1 additions and 24 deletions
|
|
@ -444,7 +444,7 @@ public:
|
|||
// 2. Let typeString be the identifier of the primary interface of value.
|
||||
// 3. Set serialized to { [[Type]]: typeString }.
|
||||
serialized.encode(ValueTag::SerializableObject);
|
||||
serialized.encode(serializable->serialize_type());
|
||||
serialized.encode(as<Bindings::PlatformObject>(serializable)->interface_name());
|
||||
|
||||
// 4. Set deep to true
|
||||
deep = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue