mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
script: Feature-gate all crown support. (#35055)
* script: Feature-gate all crown support. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Use cfg(crown) instead of a cargo feature. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
1bd34a5781
commit
875e387004
223 changed files with 442 additions and 417 deletions
|
@ -25,14 +25,14 @@ pub(crate) struct RadioNodeList {
|
|||
}
|
||||
|
||||
impl RadioNodeList {
|
||||
#[allow(crown::unrooted_must_root)]
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
fn new_inherited(list_type: NodeListType) -> RadioNodeList {
|
||||
RadioNodeList {
|
||||
node_list: NodeList::new_inherited(list_type),
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(crown::unrooted_must_root)]
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
pub(crate) fn new(window: &Window, list_type: NodeListType) -> DomRoot<RadioNodeList> {
|
||||
reflect_dom_object(
|
||||
Box::new(RadioNodeList::new_inherited(list_type)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue