| Index: Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| diff --git a/Source/core/css/PropertySetCSSStyleDeclaration.cpp b/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| index 74a46aaa852638cb69e579722f60b32bbc7f2a1a..27f0159231957438e358c783538f1ca55fecca10 100644
|
| --- a/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| +++ b/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| @@ -122,13 +122,13 @@ bool StyleAttributeMutationScope::s_shouldDeliver = false;
|
| } // namespace
|
|
|
| void PropertySetCSSStyleDeclaration::ref()
|
| -{
|
| +{
|
| m_propertySet->ref();
|
| }
|
|
|
| void PropertySetCSSStyleDeclaration::deref()
|
| {
|
| - m_propertySet->deref();
|
| + m_propertySet->deref();
|
| }
|
|
|
| unsigned PropertySetCSSStyleDeclaration::length() const
|
| @@ -147,7 +147,7 @@ String PropertySetCSSStyleDeclaration::cssText() const
|
| {
|
| return m_propertySet->asText();
|
| }
|
| -
|
| +
|
| void PropertySetCSSStyleDeclaration::setCssText(const String& text, ExceptionCode& ec)
|
| {
|
| StyleAttributeMutationScope mutationScope(this);
|
| @@ -159,7 +159,7 @@ void PropertySetCSSStyleDeclaration::setCssText(const String& text, ExceptionCod
|
|
|
| didMutate(PropertyChanged);
|
|
|
| - mutationScope.enqueueMutationRecord();
|
| + mutationScope.enqueueMutationRecord();
|
| }
|
|
|
| PassRefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValue(const String& propertyName)
|
| @@ -254,12 +254,12 @@ PassRefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal
|
| }
|
|
|
| String PropertySetCSSStyleDeclaration::getPropertyValueInternal(CSSPropertyID propertyID)
|
| -{
|
| +{
|
| return m_propertySet->getPropertyValue(propertyID);
|
| }
|
|
|
| void PropertySetCSSStyleDeclaration::setPropertyInternal(CSSPropertyID propertyID, const String& value, bool important, ExceptionCode& ec)
|
| -{
|
| +{
|
| StyleAttributeMutationScope mutationScope(this);
|
| willMutate();
|
|
|
| @@ -327,7 +327,7 @@ CSSValue* PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM(CSSValue* intern
|
| // FIXME: It is likely that the identity is not important for web compatibility and this code should be removed.
|
| if (!m_cssomCSSValueClones)
|
| m_cssomCSSValueClones = adoptPtr(new HashMap<CSSValue*, RefPtr<CSSValue> >);
|
| -
|
| +
|
| RefPtr<CSSValue>& clonedValue = m_cssomCSSValueClones->add(internalValue, RefPtr<CSSValue>()).iterator->value;
|
| if (!clonedValue)
|
| clonedValue = internalValue->cloneForCSSOM();
|
| @@ -335,7 +335,7 @@ CSSValue* PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM(CSSValue* intern
|
| }
|
|
|
| StyleSheetContents* PropertySetCSSStyleDeclaration::contextStyleSheet() const
|
| -{
|
| +{
|
| CSSStyleSheet* cssStyleSheet = parentStyleSheet();
|
| return cssStyleSheet ? cssStyleSheet->contents() : 0;
|
| }
|
| @@ -349,11 +349,11 @@ bool PropertySetCSSStyleDeclaration::cssPropertyMatches(CSSPropertyID propertyID
|
| {
|
| return m_propertySet->propertyMatches(propertyID, propertyValue);
|
| }
|
| -
|
| +
|
| StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration(MutableStylePropertySet* propertySet, CSSRule* parentRule)
|
| : PropertySetCSSStyleDeclaration(propertySet)
|
| , m_refCount(1)
|
| - , m_parentRule(parentRule)
|
| + , m_parentRule(parentRule)
|
| {
|
| m_propertySet->ref();
|
| }
|
| @@ -364,12 +364,12 @@ StyleRuleCSSStyleDeclaration::~StyleRuleCSSStyleDeclaration()
|
| }
|
|
|
| void StyleRuleCSSStyleDeclaration::ref()
|
| -{
|
| +{
|
| ++m_refCount;
|
| }
|
|
|
| void StyleRuleCSSStyleDeclaration::deref()
|
| -{
|
| +{
|
| ASSERT(m_refCount);
|
| if (!--m_refCount)
|
| delete this;
|
|
|