mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 22:49:47 +00:00
LibWeb/DOM: Add CascadedProperties accessors to AbstractElement
This commit is contained in:
parent
27aab90e66
commit
d0b6fadb6d
Notes:
github-actions[bot]
2025-09-11 16:48:47 +00:00
Author: https://github.com/AtkinsSJ
Commit: d0b6fadb6d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6118
2 changed files with 13 additions and 0 deletions
|
@ -117,6 +117,16 @@ RefPtr<CSS::StyleValue const> AbstractElement::get_custom_property(FlyString con
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
GC::Ptr<CSS::CascadedProperties> AbstractElement::cascaded_properties() const
|
||||
{
|
||||
return m_element->cascaded_properties(m_pseudo_element);
|
||||
}
|
||||
|
||||
void AbstractElement::set_cascaded_properties(GC::Ptr<CSS::CascadedProperties> cascaded_properties)
|
||||
{
|
||||
m_element->set_cascaded_properties(m_pseudo_element, cascaded_properties);
|
||||
}
|
||||
|
||||
bool AbstractElement::has_non_empty_counters_set() const
|
||||
{
|
||||
if (m_pseudo_element.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue