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

Unified Diff: Source/core/css/StyleSheetContents.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/StyleSheetContents.h ('k') | Source/core/css/WebKitCSSFilterValue.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleSheetContents.cpp
diff --git a/Source/core/css/StyleSheetContents.cpp b/Source/core/css/StyleSheetContents.cpp
index 03c10d806f0227f78a991928e9afba568822e9ae..891fa78a6773d21e248968773fb012c5763f353b 100644
--- a/Source/core/css/StyleSheetContents.cpp
+++ b/Source/core/css/StyleSheetContents.cpp
@@ -37,7 +37,7 @@ namespace WebCore {
// Rough size estimate for the memory cache.
unsigned StyleSheetContents::estimatedSizeInBytes() const
{
- // Note that this does not take into account size of the strings hanging from various objects.
+ // Note that this does not take into account size of the strings hanging from various objects.
// The assumption is that nearly all of of them are atomic and would exist anyway.
unsigned size = sizeof(*this);
@@ -185,7 +185,7 @@ void StyleSheetContents::parserSetEncodingFromCharsetRule(const String& encoding
{
// Parser enforces that there is ever only one @charset.
ASSERT(m_encodingFromCharsetRule.isNull());
- m_encodingFromCharsetRule = encoding;
+ m_encodingFromCharsetRule = encoding;
}
bool StyleSheetContents::wrapperInsertRule(PassRefPtr<StyleRuleBase> rule, unsigned index)
@@ -194,7 +194,7 @@ bool StyleSheetContents::wrapperInsertRule(PassRefPtr<StyleRuleBase> rule, unsig
ASSERT_WITH_SECURITY_IMPLICATION(index <= ruleCount());
// Parser::parseRule doesn't currently allow @charset so we don't need to deal with it.
ASSERT(!rule->isCharsetRule());
-
+
unsigned childVectorIndex = index;
// m_childRules does not contain @charset which is always in index 0 if it exists.
if (hasCharsetRule()) {
@@ -204,7 +204,7 @@ bool StyleSheetContents::wrapperInsertRule(PassRefPtr<StyleRuleBase> rule, unsig
}
--childVectorIndex;
}
-
+
if (childVectorIndex < m_importRules.size() || (childVectorIndex == m_importRules.size() && rule->isImportRule())) {
// Inserting non-import rule before @import is not allowed.
if (!rule->isImportRule())
@@ -219,7 +219,7 @@ bool StyleSheetContents::wrapperInsertRule(PassRefPtr<StyleRuleBase> rule, unsig
if (rule->isImportRule())
return false;
childVectorIndex -= m_importRules.size();
-
+
m_childRules.insert(childVectorIndex, rule);
return true;
}
@@ -403,7 +403,7 @@ void StyleSheetContents::addSubresourceStyleURLs(ListHashSet<KURL>& urls)
while (!styleSheetQueue.isEmpty()) {
StyleSheetContents* styleSheet = styleSheetQueue.takeFirst();
-
+
for (unsigned i = 0; i < styleSheet->m_importRules.size(); ++i) {
StyleRuleImport* importRule = styleSheet->m_importRules[i].get();
if (importRule->styleSheet()) {
« no previous file with comments | « Source/core/css/StyleSheetContents.h ('k') | Source/core/css/WebKitCSSFilterValue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698