mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibWeb: Use the specification defined types in IntersectionObserverInit
This commit is contained in:
parent
b172b56757
commit
6f7cab91a7
Notes:
sideshowbarker
2024-07-17 16:20:12 +09:00
Author: https://github.com/IdanHo
Commit: 6f7cab91a7
Pull-request: https://github.com/SerenityOS/serenity/pull/13424
Reviewed-by: https://github.com/alimpfard ✅
2 changed files with 5 additions and 8 deletions
|
@ -13,9 +13,9 @@
|
|||
namespace Web::IntersectionObserver {
|
||||
|
||||
struct IntersectionObserverInit {
|
||||
DOM::Node* root { nullptr };
|
||||
Optional<Variant<NonnullRefPtr<DOM::Element>, NonnullRefPtr<DOM::Document>>> root;
|
||||
String root_margin { "0px"sv };
|
||||
JS::Value threshold { 0 };
|
||||
Variant<double, Vector<double>> threshold { 0 };
|
||||
};
|
||||
|
||||
// https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue