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

Unified Diff: Source/core/dom/DocumentSharedObjectPool.cpp

Issue 152883002: (Concept patch) Simplify WTF::HashTable::add() return value for size and performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
Index: Source/core/dom/DocumentSharedObjectPool.cpp
diff --git a/Source/core/dom/DocumentSharedObjectPool.cpp b/Source/core/dom/DocumentSharedObjectPool.cpp
index e278979278b1e19cd81c10004d16f80a4614ec8a..9d8bd7838beb359f5996cb8ece71295f82da4168 100644
--- a/Source/core/dom/DocumentSharedObjectPool.cpp
+++ b/Source/core/dom/DocumentSharedObjectPool.cpp
@@ -47,7 +47,7 @@ PassRefPtr<ShareableElementData> DocumentSharedObjectPool::cachedShareableElemen
{
ASSERT(!attributes.isEmpty());
- ShareableElementDataCache::iterator it = m_shareableElementDataCache.add(attributeHash(attributes), 0).iterator;
+ ShareableElementDataCache::ValueType* it = m_shareableElementDataCache.add(attributeHash(attributes), 0).iterator;
// FIXME: This prevents sharing when there's a hash collision.
if (it->value && !hasSameAttributes(attributes, *it->value))

Powered by Google App Engine
This is Rietveld 408576698