script: Replace usage of IntersectionObserverRootMargin with Stylo'sIntersectionObserverMargin (#38519)

@stevennovaryo 
Created wrapper for Stylo's IntersectionObserverMargin and cleaned up
repeated code.
Testing: Code compiles and `./mach test-unit tests/unit/style/` doesn't
have any errors. intersectionobserver.rs is able to utilize the struct.
Fixes: https://github.com/servo/servo/issues/35907

---------------------------
Signed-off-by: samir <samir.khan720a@gmail.com>

---------

Signed-off-by: samir <samir.khan720a@gmail.com>
This commit is contained in:
Labros 2025-08-10 03:01:44 +09:30 committed by GitHub
parent 0b2c0cd055
commit 7b057be780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 117 deletions

View file

@ -438,7 +438,6 @@ pub(crate) mod imagedata;
pub(crate) mod inputevent;
pub(crate) mod intersectionobserver;
pub(crate) mod intersectionobserverentry;
pub(crate) mod intersectionobserverrootmargin;
pub(crate) mod keyboardevent;
pub(crate) mod location;
pub(crate) mod mediadeviceinfo;