| Index: Source/core/css/CSSPrimitiveValue.h
|
| diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h
|
| index 30f7f6d940c0a77be6de96a4abd6ffc3c1acba49..c5a5bda5c172643b265b122eb2fc6e103581f7db 100644
|
| --- a/Source/core/css/CSSPrimitiveValue.h
|
| +++ b/Source/core/css/CSSPrimitiveValue.h
|
| @@ -399,14 +399,26 @@ public:
|
| {
|
| }
|
|
|
| -
|
| + /*
|
| CSSPrimitiveValue(const CSSPrimitiveValue& other)
|
| : m_rawValue(other.m_rawValue.asPtr)
|
| {
|
| ref();
|
| + }*/
|
| +
|
| + CSSPrimitiveValue(CSSPrimitiveValue const& other)
|
| + : m_rawValue(other.m_rawValue.asPtr)
|
| + {
|
| + ref();
|
| + }
|
| +
|
| + CSSPrimitiveValue(CSSPrimitiveValue&& other)
|
| + : m_rawValue(other.m_rawValue.asPtr)
|
| + {
|
| + other.m_rawValue.asPtr.clear();
|
| }
|
|
|
| - CSSPrimitiveValue& operator=(const CSSPrimitiveValue& rhs)
|
| + CSSPrimitiveValue& operator=(CSSPrimitiveValue const& rhs)
|
| {
|
| rhs.ref();
|
| deref();
|
| @@ -414,9 +426,15 @@ public:
|
| return *this;
|
| }
|
|
|
| + CSSPrimitiveValue& operator=(CSSPrimitiveValue&& rhs)
|
| + {
|
| + return *this;
|
| + }
|
| +
|
| ~CSSPrimitiveValue()
|
| {
|
| - deref();
|
| + if (m_rawValue.asPtr)
|
| + deref();
|
| }
|
|
|
|
|
|
|