mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +00:00
LibWeb: Add internal use_pseudo_element to DOM Element
This commit is contained in:
parent
cfe9577b48
commit
f621dc464b
Notes:
sideshowbarker
2024-07-17 02:22:23 +09:00
Author: https://github.com/bplaat
Commit: f621dc464b
Pull-request: https://github.com/SerenityOS/serenity/pull/22210
12 changed files with 61 additions and 96 deletions
|
@ -82,6 +82,11 @@ String ResolvedCSSStyleDeclaration::item(size_t index) const
|
|||
return MUST(String::from_utf8(string_from_property_id(property_id)));
|
||||
}
|
||||
|
||||
CSS::PropertyID ResolvedCSSStyleDeclaration::property_id_by_index(size_t index) const
|
||||
{
|
||||
return static_cast<PropertyID>(index + to_underlying(first_longhand_property_id));
|
||||
}
|
||||
|
||||
static NonnullRefPtr<StyleValue const> style_value_for_background_property(Layout::NodeWithStyle const& layout_node, Function<NonnullRefPtr<StyleValue const>(BackgroundLayerData const&)> callback, Function<NonnullRefPtr<StyleValue const>()> default_value)
|
||||
{
|
||||
auto const& background_layers = layout_node.background_layers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue