mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibWeb: Add context to new CSS parser, and deprecate the old one
The new one is the same as the old one, just in the new Parser's source files. This isn't the most elegant solution but it seemed like the best option. And it's all temporary, after all.
This commit is contained in:
parent
390cc30a97
commit
004ae453d1
10 changed files with 83 additions and 41 deletions
|
@ -35,7 +35,7 @@ bool CSSStyleDeclarationWrapper::internal_set(const JS::PropertyName& name, JS::
|
|||
if (vm().exception())
|
||||
return false;
|
||||
|
||||
auto new_value = parse_css_value(CSS::ParsingContext {}, css_text, property_id);
|
||||
auto new_value = parse_css_value(CSS::DeprecatedParsingContext {}, css_text, property_id);
|
||||
// FIXME: What are we supposed to do if we can't parse it?
|
||||
if (!new_value)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue