mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 00:51:51 +00:00
LibWeb: Return CSSStyleProperties as a GC::Ref
This commit is contained in:
parent
9b06f66571
commit
2d220a8bbc
Notes:
github-actions[bot]
2025-03-19 13:53:59 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2d220a8bbc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3983
5 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue