Nacre/vendor/servo-script/test.rs
astar76 0ecfd0f573 S031: root due timers in vendored servo-script (R5-01 SIGSEGV), crash-adblock regression smoke
fire_timer moved due timers into an unrooted Vec; a GC inside one callback swept
the functions of the timers still waiting. Heavy-web reruns and cargo test still pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:38:47 -06:00

107 lines
2.8 KiB
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// For compile-fail tests only.
// pub use script_bindings::cell::DomRefCell;
pub use crate::dom::bindings::refcounted::TrustedPromise;
// pub use crate::dom::bindings::root::Dom;
pub use crate::dom::bindings::str::{ByteString, DOMString};
// pub use crate::dom::node::Node;
pub mod area {
pub use crate::dom::html::htmlareaelement::{Area, Shape};
}
#[expect(non_snake_case)]
pub mod size_of {
use std::mem::size_of;
use crate::dom::characterdata::CharacterData;
use crate::dom::element::Element;
use crate::dom::element::storage::ContentAttributeData;
use crate::dom::eventtarget::EventTarget;
use crate::dom::html::htmldivelement::HTMLDivElement;
use crate::dom::html::htmlelement::HTMLElement;
use crate::dom::html::htmlimageelement::HTMLImageElement;
use crate::dom::html::htmlscriptelement::HTMLScriptElement;
use crate::dom::html::htmlspanelement::HTMLSpanElement;
use crate::dom::html::htmlvideoelement::HTMLVideoElement;
use crate::dom::node::Node;
use crate::dom::text::Text;
pub fn CharacterData() -> usize {
size_of::<CharacterData>()
}
pub fn Element() -> usize {
size_of::<Element>()
}
pub fn EventTarget() -> usize {
size_of::<EventTarget>()
}
pub fn HTMLDivElement() -> usize {
size_of::<HTMLDivElement>()
}
pub fn HTMLElement() -> usize {
size_of::<HTMLElement>()
}
pub fn HTMLImageElement() -> usize {
size_of::<HTMLImageElement>()
}
pub fn HTMLScriptElement() -> usize {
size_of::<HTMLScriptElement>()
}
pub fn HTMLSpanElement() -> usize {
size_of::<HTMLSpanElement>()
}
pub fn HTMLVideoElement() -> usize {
size_of::<HTMLVideoElement>()
}
pub fn Node() -> usize {
size_of::<Node>()
}
pub fn Text() -> usize {
size_of::<Text>()
}
pub fn ContentAttributeData() -> usize {
size_of::<ContentAttributeData>()
}
}
pub mod srcset {
pub use crate::dom::srcset::{Descriptor, ImageSource, parse_a_srcset_attribute};
}
pub mod timeranges {
pub use crate::dom::timeranges::TimeRangesContainer;
}
pub mod text_input {
pub use embedder_traits::EditingDirection;
pub use crate::dom::html::form_controls::text_input::{
ClipboardProvider, Lines, SelectionDirection, TextInput,
};
}
pub mod encoding_detection {
pub use crate::dom::servoparser::encoding::{
get_xml_encoding, prescan_the_byte_stream_to_determine_the_encoding,
};
}
pub mod unminify {
pub use crate::dom::html::htmlscriptelement::substitute_with_local_script;
pub use crate::unminify::create_output_file;
}