Bug 1331291 part 1 - Set stylesheet url_data correctly for import rule.

This commit is contained in:
Xidorn Quan 2017-06-13 10:07:06 +10:00
parent 1b07730323
commit cdc537f23e
10 changed files with 18 additions and 16 deletions

View file

@ -224,10 +224,11 @@ impl CssRule {
state: Option<State>,
loader: Option<&StylesheetLoader>
) -> Result<(Self, State), SingleRuleParseError> {
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,
None,
PARSING_MODE_DEFAULT,