Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: Source/core/css/PropertySetCSSStyleDeclaration.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.h ('k') | Source/core/css/Rect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.h ('k') | Source/core/css/Rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698