| Index: sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
|
| diff --git a/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp b/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
|
| index a6e6dfa4f261a37bd8c9ccfc0e753a21ad8bfbe9..503a0e4587299e962093ac426c851ffa0336c467 100644
|
| --- a/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
|
| +++ b/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
|
| @@ -280,71 +280,6 @@ bool AbstractPropertySetCSSStyleDeclaration::cssPropertyMatches(CSSPropertyID pr
|
| return propertySet().propertyMatches(propertyID, propertyValue);
|
| }
|
|
|
| -StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration(MutableStylePropertySet& propertySetArg, CSSRule* parentRule)
|
| - : PropertySetCSSStyleDeclaration(propertySetArg)
|
| -#if !ENABLE(OILPAN)
|
| - , m_refCount(1)
|
| -#endif
|
| - , m_parentRule(parentRule)
|
| -{
|
| -#if !ENABLE(OILPAN)
|
| - m_propertySet->ref();
|
| -#endif
|
| -}
|
| -
|
| -StyleRuleCSSStyleDeclaration::~StyleRuleCSSStyleDeclaration()
|
| -{
|
| -#if !ENABLE(OILPAN)
|
| - m_propertySet->deref();
|
| -#endif
|
| -}
|
| -
|
| -#if !ENABLE(OILPAN)
|
| -void StyleRuleCSSStyleDeclaration::ref()
|
| -{
|
| - ++m_refCount;
|
| -}
|
| -
|
| -void StyleRuleCSSStyleDeclaration::deref()
|
| -{
|
| - ASSERT(m_refCount);
|
| - if (!--m_refCount)
|
| - delete this;
|
| -}
|
| -#endif
|
| -
|
| -void StyleRuleCSSStyleDeclaration::willMutate()
|
| -{
|
| - if (m_parentRule && m_parentRule->parentStyleSheet())
|
| - m_parentRule->parentStyleSheet()->willMutateRules();
|
| -}
|
| -
|
| -void StyleRuleCSSStyleDeclaration::didMutate(MutationType type)
|
| -{
|
| - if (type == PropertyChanged)
|
| - m_cssomCSSValueClones.clear();
|
| -
|
| - // Style sheet mutation needs to be signaled even if the change failed. willMutateRules/didMutateRules must pair.
|
| - if (m_parentRule && m_parentRule->parentStyleSheet())
|
| - m_parentRule->parentStyleSheet()->didMutateRules();
|
| -}
|
| -
|
| -CSSStyleSheet* StyleRuleCSSStyleDeclaration::parentStyleSheet() const
|
| -{
|
| - return m_parentRule ? m_parentRule->parentStyleSheet() : 0;
|
| -}
|
| -
|
| -void StyleRuleCSSStyleDeclaration::reattach(MutableStylePropertySet& propertySet)
|
| -{
|
| -#if !ENABLE(OILPAN)
|
| - m_propertySet->deref();
|
| -#endif
|
| - m_propertySet = &propertySet;
|
| -#if !ENABLE(OILPAN)
|
| - m_propertySet->ref();
|
| -#endif
|
| -}
|
| -
|
| MutableStylePropertySet& InlineCSSStyleDeclaration::propertySet() const
|
| {
|
| return m_parentElement->ensureMutableInlineStyle();
|
|
|