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

Unified Diff: third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h

Issue 1845543002: Rename Heap to ThreadHeap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h
diff --git a/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h b/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h
index 0a18808d0d111edfc258f9ae3c68c26f5468edf7..831c038fae48fcedee4865d973aa930e043fb24e 100644
--- a/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h
+++ b/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h
@@ -65,7 +65,7 @@ struct CachedMatchedPropertiesHashTraits : HashTraits<Member<CachedMatchedProper
// in the CachedMatchedProperties value contain a dead "properties" field.
// If there is a dead field the entire cache entry is removed.
for (const auto& matchedProperties : cachedProperties->matchedProperties) {
- if (!Heap::isHeapObjectAlive(matchedProperties.properties)) {
+ if (!ThreadHeap::isHeapObjectAlive(matchedProperties.properties)) {
// For now report the cache entry as dead. This might not
// be the final result if in a subsequent call for this entry,
// the "properties" field has been marked via another path.
@@ -77,7 +77,7 @@ struct CachedMatchedPropertiesHashTraits : HashTraits<Member<CachedMatchedProper
// had a dead "properties" field so trace CachedMatchedProperties strongly.
// FIXME: traceInCollection is also called from WeakProcessing to check if the entry is dead.
// Avoid calling trace in that case by only calling trace when cachedProperties is not yet marked.
- if (!Heap::isHeapObjectAlive(cachedProperties))
+ if (!ThreadHeap::isHeapObjectAlive(cachedProperties))
visitor->trace(cachedProperties);
return false;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySet.cpp ('k') | third_party/WebKit/Source/core/dom/CrossThreadTaskTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698