mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
Servo has had two implementations of `selectors::Element`, one used during layout and one used for `Element#matches()` and `Element#closest()`. The DOM APIs can trivially use the version that's exposed to the layout interface, which allows removing the duplicated implementation. This will eliminate code and prevent the two implementations from drifting apart. Testing: This should not change behavior in a testable way so should be covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@fastmail.fm> Co-authored-by: Martin Robinson <mrobinson@fastmail.fm>