Struct style::stylesheets::keyframes_rule::Keyframe
[−]
[src]
pub struct Keyframe {
pub selector: KeyframeSelector,
pub block: Arc<Locked<PropertyDeclarationBlock>>,
pub source_location: SourceLocation,
}A keyframe.
Fields
selector: KeyframeSelector
The selector this keyframe was specified from.
block: Arc<Locked<PropertyDeclarationBlock>>
The declaration block that was declared inside this keyframe.
Note that !important rules in keyframes don't apply, but we keep this
Arc just for convenience.
source_location: SourceLocation
The line and column of the rule's source code.
Methods
impl Keyframe[src]
pub fn parse<'i>(
css: &'i str,
parent_stylesheet_contents: &StylesheetContents,
lock: &SharedRwLock
) -> Result<Arc<Locked<Self>>, ParseError<'i>>[src]
css: &'i str,
parent_stylesheet_contents: &StylesheetContents,
lock: &SharedRwLock
) -> Result<Arc<Locked<Self>>, ParseError<'i>>
Parse a CSS keyframe.
Trait Implementations
impl Debug for Keyframe[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl ToCssWithGuard for Keyframe[src]
fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> Result where
W: Write, [src]
W: Write,
Serialize self in CSS syntax, writing to dest, using the given lock guard.
fn to_css_string(&self, guard: &SharedRwLockReadGuard) -> String[src]
Serialize self in CSS syntax using the given lock guard and return a string. Read more
impl DeepCloneWithLock for Keyframe[src]
fn deep_clone_with_lock(
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
_params: &DeepCloneParams
) -> Keyframe[src]
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
_params: &DeepCloneParams
) -> Keyframe
Deep clones this Keyframe.