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

Unified Diff: Source/core/loader/cache/CachedCSSStyleSheet.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/loader/cache/CachedCSSStyleSheet.h ('k') | Source/core/loader/cache/CachedFont.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/cache/CachedCSSStyleSheet.cpp
diff --git a/Source/core/loader/cache/CachedCSSStyleSheet.cpp b/Source/core/loader/cache/CachedCSSStyleSheet.cpp
index 6a209ea84625264c7f4012f8e795924d4095d18f..d1a6616c5cc2b9288e7106f0ef0eea2447e7a782 100644
--- a/Source/core/loader/cache/CachedCSSStyleSheet.cpp
+++ b/Source/core/loader/cache/CachedCSSStyleSheet.cpp
@@ -76,17 +76,17 @@ String CachedCSSStyleSheet::encoding() const
{
return m_decoder->encoding().name();
}
-
-const String CachedCSSStyleSheet::sheetText(bool enforceMIMEType, bool* hasValidMIMEType) const
-{
+
+const String CachedCSSStyleSheet::sheetText(bool enforceMIMEType, bool* hasValidMIMEType) const
+{
ASSERT(!isPurgeable());
if (!m_data || m_data->isEmpty() || !canUseSheet(enforceMIMEType, hasValidMIMEType))
return String();
-
+
if (!m_decodedSheetText.isNull())
return m_decodedSheetText;
-
+
// Don't cache the decoded text, regenerating is cheap and it can use quite a bit of memory
String sheetText = m_decoder->decode(m_data->data(), m_data->size());
sheetText.append(m_decoder->flush());
@@ -112,7 +112,7 @@ bool CachedCSSStyleSheet::canUseSheet(bool enforceMIMEType, bool* hasValidMIMETy
{
if (errorOccurred())
return false;
-
+
if (!enforceMIMEType && !hasValidMIMEType)
return true;
« no previous file with comments | « Source/core/loader/cache/CachedCSSStyleSheet.h ('k') | Source/core/loader/cache/CachedFont.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698