OLD | NEW |
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 18 matching lines...) Expand all Loading... |
29 #include "platform/heap/Handle.h" | 29 #include "platform/heap/Handle.h" |
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 RenderStyle; | 36 class RenderStyle; |
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 |
41 public: | 41 public: |
42 WillBeHeapVector<MatchedProperties> matchedProperties; | 42 WillBeHeapVector<MatchedProperties> matchedProperties; |
43 MatchRanges ranges; | 43 MatchRanges ranges; |
44 RefPtr<RenderStyle> renderStyle; | 44 RefPtr<RenderStyle> renderStyle; |
45 RefPtr<RenderStyle> parentRenderStyle; | 45 RefPtr<RenderStyle> parentRenderStyle; |
46 | 46 |
47 void set(const RenderStyle*, const RenderStyle* parentStyle, const MatchResu
lt&); | 47 void set(const RenderStyle*, const RenderStyle* parentStyle, const MatchResu
lt&); |
48 void clear(); | 48 void clear(); |
49 void trace(Visitor* visitor) { visitor->trace(matchedProperties); } | 49 void trace(Visitor* visitor) { visitor->trace(matchedProperties); } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties> > Cache; | 87 typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties> > Cache; |
88 Timer<MatchedPropertiesCache> m_sweepTimer; | 88 Timer<MatchedPropertiesCache> m_sweepTimer; |
89 #endif | 89 #endif |
90 Cache m_cache; | 90 Cache m_cache; |
91 }; | 91 }; |
92 | 92 |
93 } | 93 } |
94 | 94 |
95 #endif | 95 #endif |
OLD | NEW |