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
|
@ -54,7 +54,7 @@ pub enum SymbolsType {
|
|||
impl SymbolsType {
|
||||
/// Convert symbols type to their corresponding Gecko values.
|
||||
pub fn to_gecko_keyword(self) -> u8 {
|
||||
use gecko_bindings::structs;
|
||||
use crate::gecko_bindings::structs;
|
||||
match self {
|
||||
SymbolsType::Cyclic => structs::NS_STYLE_COUNTER_SYSTEM_CYCLIC as u8,
|
||||
SymbolsType::Numeric => structs::NS_STYLE_COUNTER_SYSTEM_NUMERIC as u8,
|
||||
|
@ -66,7 +66,7 @@ impl SymbolsType {
|
|||
|
||||
/// Convert Gecko value to symbol type.
|
||||
pub fn from_gecko_keyword(gecko_value: u32) -> SymbolsType {
|
||||
use gecko_bindings::structs;
|
||||
use crate::gecko_bindings::structs;
|
||||
match gecko_value {
|
||||
structs::NS_STYLE_COUNTER_SYSTEM_CYCLIC => SymbolsType::Cyclic,
|
||||
structs::NS_STYLE_COUNTER_SYSTEM_NUMERIC => SymbolsType::Numeric,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue