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

Unified Diff: sky/engine/core/css/resolver/MatchedPropertiesCache.h

Issue 681963002: Remove heap/*.cpp files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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: sky/engine/core/css/resolver/MatchedPropertiesCache.h
diff --git a/sky/engine/core/css/resolver/MatchedPropertiesCache.h b/sky/engine/core/css/resolver/MatchedPropertiesCache.h
index fe41c536c71dddbd9306fd82d1bc92ab5ffa6bbe..d91a77e256ff03f6c2a804a9f4f2abf0fc6748d6 100644
--- a/sky/engine/core/css/resolver/MatchedPropertiesCache.h
+++ b/sky/engine/core/css/resolver/MatchedPropertiesCache.h
@@ -49,15 +49,6 @@ public:
void trace(Visitor* visitor) { visitor->trace(matchedProperties); }
};
-// Specialize the HashTraits for CachedMatchedProperties to check for dead
-// entries in the MatchedPropertiesCache.
-#if ENABLE(OILPAN)
-struct CachedMatchedPropertiesHashTraits : HashTraits<Member<CachedMatchedProperties> > {
- static const WTF::WeakHandlingFlag weakHandlingFlag = WTF::WeakHandlingInCollections;
- static bool traceInCollection(Visitor*, Member<CachedMatchedProperties>&, WTF::ShouldWeakPointersBeMarkedStrongly);
-};
-#endif
-
class MatchedPropertiesCache {
DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(MatchedPropertiesCache);
@@ -75,9 +66,6 @@ public:
void trace(Visitor*);
private:
-#if ENABLE(OILPAN)
- typedef HeapHashMap<unsigned, Member<CachedMatchedProperties>, DefaultHash<unsigned>::Hash, HashTraits<unsigned>, CachedMatchedPropertiesHashTraits > Cache;
-#else
// Every N additions to the matched declaration cache trigger a sweep where entries holding
// the last reference to a style declaration are garbage collected.
void sweep(Timer<MatchedPropertiesCache>*);
@@ -86,7 +74,6 @@ private:
typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties> > Cache;
Timer<MatchedPropertiesCache> m_sweepTimer;
-#endif
Cache m_cache;
};
« no previous file with comments | « sky/engine/bindings/scripts/v8_callback_interface.py ('k') | sky/engine/core/css/resolver/MatchedPropertiesCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698