diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleProperties.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp index 84028bdd9a..96ebd559e7 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp @@ -44,6 +44,11 @@ NonnullRefPtr<StyleValue> StyleProperties::property(CSS::PropertyID property_id) return value.release_nonnull(); } +RefPtr<StyleValue> StyleProperties::maybe_null_property(CSS::PropertyID property_id) const +{ + return m_property_values[to_underlying(property_id)]; +} + CSS::Size StyleProperties::size_value(CSS::PropertyID id) const { auto value = property(id); |