mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Deep clone ServoStyleSheets.
MozReview-Commit-ID: 6hYIcOa86Y
This commit is contained in:
parent
bb310efbb9
commit
31584e3c14
9 changed files with 221 additions and 10 deletions
|
@ -20,7 +20,7 @@ use style_traits::ToCss;
|
|||
use values::specified::url::SpecifiedUrl;
|
||||
|
||||
/// A URL matching function for a `@document` rule's condition.
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum UrlMatchingFunction {
|
||||
/// Exact URL matching function. It evaluates to true whenever the
|
||||
/// URL of the document being styled is exactly the URL given.
|
||||
|
@ -141,7 +141,7 @@ impl ToCss for UrlMatchingFunction {
|
|||
/// The `@document` rule's condition is written as a comma-separated list of
|
||||
/// URL matching functions, and the condition evaluates to true whenever any
|
||||
/// one of those functions evaluates to true.
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct DocumentCondition(Vec<UrlMatchingFunction>);
|
||||
|
||||
impl DocumentCondition {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue