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

Unified Diff: Source/WTF/wtf/text/AtomicString.cpp

Issue 13686020: Make HTMLNames threadsafe (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove extra assert Created 7 years, 8 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 | « no previous file | Source/WTF/wtf/text/StringImpl.h » ('j') | Source/WTF/wtf/text/StringImpl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WTF/wtf/text/AtomicString.cpp
diff --git a/Source/WTF/wtf/text/AtomicString.cpp b/Source/WTF/wtf/text/AtomicString.cpp
index c37eaf0c57b8f8e22946a97f073c931ce8817a3e..56f7df60cb110d0b1968a4d13fd4d6d299ee30b8 100644
--- a/Source/WTF/wtf/text/AtomicString.cpp
+++ b/Source/WTF/wtf/text/AtomicString.cpp
@@ -433,6 +433,7 @@ PassRefPtr<StringImpl> AtomicString::addSlowCase(StringImpl* r)
StringImpl* result = *stringTable().add(r).iterator;
if (result == r)
r->setIsAtomic(true);
+ ASSERT(!r->isStatic() || result->isStatic());
return result;
}
« no previous file with comments | « no previous file | Source/WTF/wtf/text/StringImpl.h » ('j') | Source/WTF/wtf/text/StringImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698