mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Propagate quirks mode all the way to ParserContext
The quirks mode is still not properly propagated in geckolib.
This commit is contained in:
parent
10fb8e61c7
commit
f68e2fded9
39 changed files with 225 additions and 100 deletions
|
@ -256,9 +256,12 @@ impl CSSStyleDeclaration {
|
|||
|
||||
// Step 6
|
||||
let window = self.owner.window();
|
||||
let quirks_mode = window.Document().quirks_mode();
|
||||
let result =
|
||||
parse_one_declaration(id, &value, &self.owner.base_url(),
|
||||
window.css_error_reporter(), LengthParsingMode::Default);
|
||||
window.css_error_reporter(),
|
||||
LengthParsingMode::Default,
|
||||
quirks_mode);
|
||||
|
||||
// Step 7
|
||||
let parsed = match result {
|
||||
|
@ -434,11 +437,13 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
|
|||
return Err(Error::NoModificationAllowed);
|
||||
}
|
||||
|
||||
let quirks_mode = window.Document().quirks_mode();
|
||||
self.owner.mutate_associated_block(|mut pdb, mut _changed| {
|
||||
// Step 3
|
||||
*pdb = parse_style_attribute(&value,
|
||||
&self.owner.base_url(),
|
||||
window.css_error_reporter());
|
||||
window.css_error_reporter(),
|
||||
quirks_mode);
|
||||
});
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue