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

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

Issue 1304623002: Make blink classes and structures in core/css fast-allocated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing (Fixed windows compile error) Created 5 years, 4 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 * 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 19 matching lines...) Expand all
30 #include "wtf/Forward.h" 30 #include "wtf/Forward.h"
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 #include "wtf/Noncopyable.h" 32 #include "wtf/Noncopyable.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class ComputedStyle; 36 class ComputedStyle;
37 class StyleResolverState; 37 class StyleResolverState;
38 38
39 class CachedMatchedProperties final : public NoBaseWillBeGarbageCollectedFinaliz ed<CachedMatchedProperties> { 39 class CachedMatchedProperties final : public NoBaseWillBeGarbageCollectedFinaliz ed<CachedMatchedProperties> {
40 40 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CachedMatchedProperties);
41 public: 41 public:
42 WillBeHeapVector<MatchedProperties> matchedProperties; 42 WillBeHeapVector<MatchedProperties> matchedProperties;
43 RefPtr<ComputedStyle> computedStyle; 43 RefPtr<ComputedStyle> computedStyle;
44 RefPtr<ComputedStyle> parentComputedStyle; 44 RefPtr<ComputedStyle> parentComputedStyle;
45 45
46 void set(const ComputedStyle&, const ComputedStyle& parentStyle, const Match edPropertiesVector&); 46 void set(const ComputedStyle&, const ComputedStyle& parentStyle, const Match edPropertiesVector&);
47 void clear(); 47 void clear();
48 DEFINE_INLINE_TRACE() 48 DEFINE_INLINE_TRACE()
49 { 49 {
50 #if ENABLE(OILPAN) 50 #if ENABLE(OILPAN)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties>> Cache; 118 typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties>> Cache;
119 Timer<MatchedPropertiesCache> m_sweepTimer; 119 Timer<MatchedPropertiesCache> m_sweepTimer;
120 #endif 120 #endif
121 Cache m_cache; 121 Cache m_cache;
122 }; 122 };
123 123
124 } 124 }
125 125
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/CSSToStyleMap.h ('k') | Source/core/css/resolver/StyleBuilderConverter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698