mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb/CSS: Take AbstractElement in compute_pe_style_if_needed()
This commit is contained in:
parent
cee84d22a0
commit
263c51f6ac
Notes:
github-actions[bot]
2025-09-11 16:48:25 +00:00
Author: https://github.com/AtkinsSJ
Commit: 263c51f6ac
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6118
3 changed files with 4 additions and 4 deletions
|
@ -2335,9 +2335,9 @@ GC::Ref<ComputedProperties> StyleComputer::compute_style(DOM::AbstractElement ab
|
|||
return *compute_style_impl(abstract_element, ComputeStyleMode::Normal, did_change_custom_properties);
|
||||
}
|
||||
|
||||
GC::Ptr<ComputedProperties> StyleComputer::compute_pseudo_element_style_if_needed(DOM::Element& element, Optional<CSS::PseudoElement> pseudo_element, Optional<bool&> did_change_custom_properties) const
|
||||
GC::Ptr<ComputedProperties> StyleComputer::compute_pseudo_element_style_if_needed(DOM::AbstractElement abstract_element, Optional<bool&> did_change_custom_properties) const
|
||||
{
|
||||
return compute_style_impl({ element, move(pseudo_element) }, ComputeStyleMode::CreatePseudoElementStyleIfNeeded, did_change_custom_properties);
|
||||
return compute_style_impl(abstract_element, ComputeStyleMode::CreatePseudoElementStyleIfNeeded, did_change_custom_properties);
|
||||
}
|
||||
|
||||
GC::Ptr<ComputedProperties> StyleComputer::compute_style_impl(DOM::AbstractElement abstract_element, ComputeStyleMode mode, Optional<bool&> did_change_custom_properties) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue