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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.h

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/wtf/Vector.h ('k') | third_party/WebKit/Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/StringImpl.h
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.h b/third_party/WebKit/Source/wtf/text/StringImpl.h
index def8e4e40aaba0193a2cb9b7b35725eed7e58e6c..c292b1b42b80e6d5bc658fc39212c279e6e94afa 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.h
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
@@ -285,10 +285,11 @@ class WTF_EXPORT StringImpl {
DCHECK(!hasHash());
// Multiple clients assume that StringHasher is the canonical string
// hash function.
- DCHECK(hash == (is8Bit() ? StringHasher::computeHashAndMaskTop8Bits(
- characters8(), m_length)
- : StringHasher::computeHashAndMaskTop8Bits(
- characters16(), m_length)));
+ DCHECK(hash ==
+ (is8Bit() ? StringHasher::computeHashAndMaskTop8Bits(characters8(),
+ m_length)
+ : StringHasher::computeHashAndMaskTop8Bits(characters16(),
+ m_length)));
m_hash = hash;
DCHECK(hash); // Verify that 0 is a valid sentinel hash value.
}
@@ -523,8 +524,9 @@ class WTF_EXPORT StringImpl {
#if DCHECK_IS_ON()
void assertHashIsCorrect() {
DCHECK(hasHash());
- DCHECK_EQ(existingHash(), StringHasher::computeHashAndMaskTop8Bits(
- characters8(), length()));
+ DCHECK_EQ(
+ existingHash(),
+ StringHasher::computeHashAndMaskTop8Bits(characters8(), length()));
}
#endif
« no previous file with comments | « third_party/WebKit/Source/wtf/Vector.h ('k') | third_party/WebKit/Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698