mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Start generating arrays of specs for easier implementation of preference checks.
This commit is contained in:
parent
693d31d4ed
commit
88059acd7e
3 changed files with 43 additions and 21 deletions
|
@ -557,3 +557,9 @@ unsafe extern "C" fn instance_class_has_proto_at_depth(clasp: *const js::jsapi::
|
|||
pub const DOM_CALLBACKS: DOMCallbacks = DOMCallbacks {
|
||||
instanceClassMatchesProto: Some(instance_class_has_proto_at_depth),
|
||||
};
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub struct Prefable<T: 'static> {
|
||||
pub pref: Option<&'static str>,
|
||||
pub specs: &'static [T]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue