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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 if (++m_additionsSinceLastSweep >= maxAdditionsBetweenSweeps 88 if (++m_additionsSinceLastSweep >= maxAdditionsBetweenSweeps
89 && !m_sweepTimer.isActive()) { 89 && !m_sweepTimer.isActive()) {
90 static const unsigned sweepTimeInSeconds = 60; 90 static const unsigned sweepTimeInSeconds = 60;
91 m_sweepTimer.startOneShot(sweepTimeInSeconds, BLINK_FROM_HERE); 91 m_sweepTimer.startOneShot(sweepTimeInSeconds, BLINK_FROM_HERE);
92 } 92 }
93 #endif 93 #endif
94 94
95 ASSERT(hash); 95 ASSERT(hash);
96 Cache::AddResult addResult = m_cache.add(hash, nullptr); 96 Cache::AddResult addResult = m_cache.add(hash, nullptr);
97 if (addResult.isNewEntry) 97 if (addResult.isNewEntry)
98 addResult.storedValue->value = adoptPtrWillBeNoop(new CachedMatchedPrope rties); 98 addResult.storedValue->value = (new CachedMatchedProperties);
99 99
100 CachedMatchedProperties* cacheItem = addResult.storedValue->value.get(); 100 CachedMatchedProperties* cacheItem = addResult.storedValue->value.get();
101 if (!addResult.isNewEntry) 101 if (!addResult.isNewEntry)
102 cacheItem->clear(); 102 cacheItem->clear();
103 103
104 cacheItem->set(style, parentStyle, properties); 104 cacheItem->set(style, parentStyle, properties);
105 } 105 }
106 106
107 void MatchedPropertiesCache::clear() 107 void MatchedPropertiesCache::clear()
108 { 108 {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 DEFINE_TRACE(MatchedPropertiesCache) 167 DEFINE_TRACE(MatchedPropertiesCache)
168 { 168 {
169 #if ENABLE(OILPAN) 169 #if ENABLE(OILPAN)
170 visitor->trace(m_cache); 170 visitor->trace(m_cache);
171 #endif 171 #endif
172 } 172 }
173 173
174 } // namespace blink 174 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698