Type Alias style::servo::url::SpecifiedUrl

source ·
pub type SpecifiedUrl = CssUrl;
Expand description

A specified url() value for servo.

Aliased Type§

struct SpecifiedUrl {
    original: Option<Arc<String>>,
    resolved: Option<Arc<Url>>,
}

Fields§

§original: Option<Arc<String>>

The original URI. This might be optional since we may insert computed values of images into the cascade directly, and we don’t bother to convert their serialization.

Refcounted since cloning this should be cheap and data: uris can be really large.

§resolved: Option<Arc<Url>>

The resolved value for the url, if valid.

Trait Implementations§

source§

impl ToComputedValue for SpecifiedUrl

§

type ComputedValue = ComputedUrl

The computed value type we’re going to be converted to.
source§

fn to_computed_value(&self, _: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.
source§

fn from_computed_value(computed: &ComputedUrl) -> Self

Convert a computed value to specified value form. Read more