mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
cargo fix --edition --features gecko
This commit is contained in:
parent
a15d33a10e
commit
b1822a39fa
87 changed files with 614 additions and 585 deletions
|
@ -172,8 +172,8 @@ impl DocumentMatchingFunction {
|
|||
#[cfg(feature = "gecko")]
|
||||
/// Evaluate a URL matching function.
|
||||
pub fn evaluate(&self, device: &Device) -> bool {
|
||||
use gecko_bindings::bindings::Gecko_DocumentRule_UseForPresentation;
|
||||
use gecko_bindings::structs::DocumentMatchingFunction as GeckoDocumentMatchingFunction;
|
||||
use crate::gecko_bindings::bindings::Gecko_DocumentRule_UseForPresentation;
|
||||
use crate::gecko_bindings::structs::DocumentMatchingFunction as GeckoDocumentMatchingFunction;
|
||||
use nsstring::nsCStr;
|
||||
|
||||
let func = match *self {
|
||||
|
@ -253,8 +253,8 @@ impl DocumentCondition {
|
|||
|
||||
#[cfg(feature = "gecko")]
|
||||
fn allowed_in(&self, context: &ParserContext) -> bool {
|
||||
use gecko_bindings::structs;
|
||||
use stylesheets::Origin;
|
||||
use crate::gecko_bindings::structs;
|
||||
use crate::stylesheets::Origin;
|
||||
|
||||
if context.stylesheet_origin != Origin::Author {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue