mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Shannon Booth
parent
4d64f21fa5
commit
6a9cd0e8e0
Notes:
github-actions[bot]
2026-02-14 19:36:00 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/6a9cd0e8e06 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7518
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user