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

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

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 c7d8d6e9d401a99562c0dbcfe7df2d3bf2bc6ae8..87467a6c60fcbb949e3a56b121448ffc838d2cc4 100644
--- a/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h
+++ b/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h
@@ -70,7 +70,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.
@@ -82,7 +82,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