mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
LibWeb: Remove unused StyleProperties::clone()
function
This commit is contained in:
parent
a738c2b120
commit
af13bd8af0
2 changed files with 0 additions and 17 deletions
|
@ -35,21 +35,6 @@
|
||||||
|
|
||||||
namespace Web::CSS {
|
namespace Web::CSS {
|
||||||
|
|
||||||
StyleProperties::StyleProperties(StyleProperties const& other)
|
|
||||||
: m_property_values(other.m_property_values)
|
|
||||||
{
|
|
||||||
if (other.m_font) {
|
|
||||||
m_font = other.m_font->clone();
|
|
||||||
} else {
|
|
||||||
m_font = nullptr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
NonnullRefPtr<StyleProperties> StyleProperties::clone() const
|
|
||||||
{
|
|
||||||
return adopt_ref(*new StyleProperties(*this));
|
|
||||||
}
|
|
||||||
|
|
||||||
void StyleProperties::set_property(CSS::PropertyID id, NonnullRefPtr<StyleValue const> value, CSS::CSSStyleDeclaration const* source_declaration)
|
void StyleProperties::set_property(CSS::PropertyID id, NonnullRefPtr<StyleValue const> value, CSS::CSSStyleDeclaration const* source_declaration)
|
||||||
{
|
{
|
||||||
m_property_values[to_underlying(id)] = StyleAndSourceDeclaration { move(value), source_declaration };
|
m_property_values[to_underlying(id)] = StyleAndSourceDeclaration { move(value), source_declaration };
|
||||||
|
|
|
@ -20,8 +20,6 @@ class StyleProperties : public RefCounted<StyleProperties> {
|
||||||
public:
|
public:
|
||||||
StyleProperties() = default;
|
StyleProperties() = default;
|
||||||
|
|
||||||
explicit StyleProperties(StyleProperties const&);
|
|
||||||
|
|
||||||
static NonnullRefPtr<StyleProperties> create() { return adopt_ref(*new StyleProperties); }
|
static NonnullRefPtr<StyleProperties> create() { return adopt_ref(*new StyleProperties); }
|
||||||
|
|
||||||
NonnullRefPtr<StyleProperties> clone() const;
|
NonnullRefPtr<StyleProperties> clone() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue