mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
The main goal here is to have layout not depend on `ServoLayoutElement` directly and instead use the layout DOM interface exposed by `layout-api`. This change allows layout to determine if replaced content is the root of a user agent widget without having to access `ServoDangerousStyleShadowRoot` which isn't really safe to use in layout code. `LayoutElement::shadow_root()` is now no longer exposed to layout. Testing: This should not change behavior, so should be covered by existing test. Signed-off-by: Martin Robinson <mrobinson@igalia.com>