mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Bug 1331291 part 1 - Set stylesheet url_data correctly for import rule.
This commit is contained in:
parent
1b07730323
commit
cdc537f23e
10 changed files with 18 additions and 16 deletions
|
@ -205,9 +205,10 @@ impl Keyframe {
|
|||
/// Parse a CSS keyframe.
|
||||
pub fn parse<'i>(css: &'i str, parent_stylesheet: &Stylesheet)
|
||||
-> Result<Arc<Locked<Self>>, ParseError<'i>> {
|
||||
let url_data = parent_stylesheet.url_data.read();
|
||||
let error_reporter = NullReporter;
|
||||
let context = ParserContext::new(parent_stylesheet.origin,
|
||||
&parent_stylesheet.url_data,
|
||||
&url_data,
|
||||
&error_reporter,
|
||||
Some(CssRuleType::Keyframe),
|
||||
PARSING_MODE_DEFAULT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue