LibWeb: Return CSSStyleProperties as a GC::Ref

This commit is contained in:
Sam Atkins 2025-03-18 13:52:01 +00:00
parent 9b06f66571
commit 2d220a8bbc
Notes: github-actions[bot] 2025-03-19 13:53:59 +00:00
5 changed files with 6 additions and 6 deletions

View file

@ -2669,7 +2669,7 @@ void justify_the_selection(DOM::Document& document, JustifyAlignment alignment)
element->remove_attribute_ns(Namespace::HTML, HTML::AttributeNames::align);
// 2. Unset the CSS property "text-align" on element, if it's set by a style attribute.
auto* inline_style = element->style_for_bindings();
auto inline_style = element->style_for_bindings();
MUST(inline_style->remove_property(CSS::PropertyID::TextAlign));
// 3. If element is a div or span or center with no attributes, remove it, preserving its descendants.