mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Rename parse_css_declaration() -> parse_css_style_attribute()
This commit is contained in:
committed by
Andreas Kling
parent
bcbe258619
commit
da1a819858
Notes:
sideshowbarker
2024-07-17 16:37:11 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/da1a819858 Pull-request: https://github.com/SerenityOS/serenity/pull/13318
@@ -255,7 +255,7 @@ void Element::parse_attribute(const FlyString& name, const String& value)
|
||||
if (m_class_list)
|
||||
m_class_list->associated_attribute_changed(value);
|
||||
} else if (name == HTML::AttributeNames::style) {
|
||||
auto parsed_style = parse_css_declaration(CSS::ParsingContext(document()), value);
|
||||
auto parsed_style = parse_css_style_attribute(CSS::ParsingContext(document()), value);
|
||||
if (!parsed_style.is_null()) {
|
||||
m_inline_style = CSS::ElementInlineCSSStyleDeclaration::create_and_take_properties_from(*this, parsed_style.release_nonnull());
|
||||
set_needs_style_update(true);
|
||||
|
||||
Reference in New Issue
Block a user