mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +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
|
@ -30,7 +30,7 @@ pub struct PendingSheet {
|
|||
#[derive(Debug)]
|
||||
pub enum ImportSheet {
|
||||
/// A bonafide stylesheet.
|
||||
Sheet(::gecko::data::GeckoStyleSheet),
|
||||
Sheet(crate::gecko::data::GeckoStyleSheet),
|
||||
/// An @import created while parsing off-main-thread, whose Gecko sheet has
|
||||
/// yet to be created and attached.
|
||||
Pending(PendingSheet),
|
||||
|
@ -39,7 +39,7 @@ pub enum ImportSheet {
|
|||
#[cfg(feature = "gecko")]
|
||||
impl ImportSheet {
|
||||
/// Creates a new ImportSheet from a GeckoStyleSheet.
|
||||
pub fn new(sheet: ::gecko::data::GeckoStyleSheet) -> Self {
|
||||
pub fn new(sheet: crate::gecko::data::GeckoStyleSheet) -> Self {
|
||||
ImportSheet::Sheet(sheet)
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ impl ImportSheet {
|
|||
|
||||
/// Returns a reference to the GeckoStyleSheet in this ImportSheet, if it
|
||||
/// exists.
|
||||
pub fn as_sheet(&self) -> Option<&::gecko::data::GeckoStyleSheet> {
|
||||
pub fn as_sheet(&self) -> Option<&crate::gecko::data::GeckoStyleSheet> {
|
||||
match *self {
|
||||
ImportSheet::Sheet(ref s) => Some(s),
|
||||
ImportSheet::Pending(_) => None,
|
||||
|
@ -69,8 +69,8 @@ impl DeepCloneWithLock for ImportSheet {
|
|||
_guard: &SharedRwLockReadGuard,
|
||||
params: &DeepCloneParams,
|
||||
) -> Self {
|
||||
use gecko::data::GeckoStyleSheet;
|
||||
use gecko_bindings::bindings;
|
||||
use crate::gecko::data::GeckoStyleSheet;
|
||||
use crate::gecko_bindings::bindings;
|
||||
match *self {
|
||||
ImportSheet::Sheet(ref s) => {
|
||||
let clone = unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue