|
@@ -856,10 +856,7 @@ private:
|
|
|
|
|
|
class ColorStyleValue : public StyleValue {
|
|
class ColorStyleValue : public StyleValue {
|
|
public:
|
|
public:
|
|
- static NonnullRefPtr<ColorStyleValue> create(Color color)
|
|
|
|
- {
|
|
|
|
- return adopt_ref(*new ColorStyleValue(color));
|
|
|
|
- }
|
|
|
|
|
|
+ static NonnullRefPtr<ColorStyleValue> create(Color color);
|
|
virtual ~ColorStyleValue() override { }
|
|
virtual ~ColorStyleValue() override { }
|
|
|
|
|
|
Color color() const { return m_color; }
|
|
Color color() const { return m_color; }
|
|
@@ -1101,10 +1098,7 @@ private:
|
|
|
|
|
|
class LengthStyleValue : public StyleValue {
|
|
class LengthStyleValue : public StyleValue {
|
|
public:
|
|
public:
|
|
- static NonnullRefPtr<LengthStyleValue> create(Length const& length)
|
|
|
|
- {
|
|
|
|
- return adopt_ref(*new LengthStyleValue(length));
|
|
|
|
- }
|
|
|
|
|
|
+ static NonnullRefPtr<LengthStyleValue> create(Length const&);
|
|
virtual ~LengthStyleValue() override { }
|
|
virtual ~LengthStyleValue() override { }
|
|
|
|
|
|
Length const& length() const { return m_length; }
|
|
Length const& length() const { return m_length; }
|