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

Side by Side Diff: Source/core/css/resolver/MatchedPropertiesCache.h

Issue 1112363003: Oilpan: Remove OffHeapCollectionTrait (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 28 matching lines...) Expand all
39 class CachedMatchedProperties final : public NoBaseWillBeGarbageCollectedFinaliz ed<CachedMatchedProperties> { 39 class CachedMatchedProperties final : public NoBaseWillBeGarbageCollectedFinaliz ed<CachedMatchedProperties> {
40 40
41 public: 41 public:
42 WillBeHeapVector<MatchedProperties> matchedProperties; 42 WillBeHeapVector<MatchedProperties> matchedProperties;
43 MatchRanges ranges; 43 MatchRanges ranges;
44 RefPtr<ComputedStyle> computedStyle; 44 RefPtr<ComputedStyle> computedStyle;
45 RefPtr<ComputedStyle> parentComputedStyle; 45 RefPtr<ComputedStyle> parentComputedStyle;
46 46
47 void set(const ComputedStyle&, const ComputedStyle& parentStyle, const Match Result&); 47 void set(const ComputedStyle&, const ComputedStyle& parentStyle, const Match Result&);
48 void clear(); 48 void clear();
49 DEFINE_INLINE_TRACE() { visitor->trace(matchedProperties); } 49 DEFINE_INLINE_TRACE()
50 {
51 #if ENABLE(OILPAN)
52 visitor->trace(matchedProperties);
53 #endif
54 }
50 }; 55 };
51 56
52 // Specialize the HashTraits for CachedMatchedProperties to check for dead 57 // Specialize the HashTraits for CachedMatchedProperties to check for dead
53 // entries in the MatchedPropertiesCache. 58 // entries in the MatchedPropertiesCache.
54 #if ENABLE(OILPAN) 59 #if ENABLE(OILPAN)
55 struct CachedMatchedPropertiesHashTraits : HashTraits<Member<CachedMatchedProper ties>> { 60 struct CachedMatchedPropertiesHashTraits : HashTraits<Member<CachedMatchedProper ties>> {
56 static const WTF::WeakHandlingFlag weakHandlingFlag = WTF::WeakHandlingInCol lections; 61 static const WTF::WeakHandlingFlag weakHandlingFlag = WTF::WeakHandlingInCol lections;
57 62
58 template<typename VisitorDispatcher> 63 template<typename VisitorDispatcher>
59 static bool traceInCollection(VisitorDispatcher visitor, Member<CachedMatche dProperties>& cachedProperties, WTF::ShouldWeakPointersBeMarkedStrongly strongif y) 64 static bool traceInCollection(VisitorDispatcher visitor, Member<CachedMatche dProperties>& cachedProperties, WTF::ShouldWeakPointersBeMarkedStrongly strongif y)
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 118
114 typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties>> Cache; 119 typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties>> Cache;
115 Timer<MatchedPropertiesCache> m_sweepTimer; 120 Timer<MatchedPropertiesCache> m_sweepTimer;
116 #endif 121 #endif
117 Cache m_cache; 122 Cache m_cache;
118 }; 123 };
119 124
120 } 125 }
121 126
122 #endif 127 #endif
OLDNEW
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698