| 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 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 GarbageCollectedFinalized<CachedMat
chedProperties> { |
| 40 USING_FAST_MALLOC_WILL_BE_REMOVED(CachedMatchedProperties); | |
| 41 public: | 40 public: |
| 42 WillBeHeapVector<MatchedProperties> matchedProperties; | 41 HeapVector<MatchedProperties> matchedProperties; |
| 43 RefPtr<ComputedStyle> computedStyle; | 42 RefPtr<ComputedStyle> computedStyle; |
| 44 RefPtr<ComputedStyle> parentComputedStyle; | 43 RefPtr<ComputedStyle> parentComputedStyle; |
| 45 | 44 |
| 46 void set(const ComputedStyle&, const ComputedStyle& parentStyle, const Match
edPropertiesVector&); | 45 void set(const ComputedStyle&, const ComputedStyle& parentStyle, const Match
edPropertiesVector&); |
| 47 void clear(); | 46 void clear(); |
| 48 DEFINE_INLINE_TRACE() | 47 DEFINE_INLINE_TRACE() |
| 49 { | 48 { |
| 50 #if ENABLE(OILPAN) | 49 #if ENABLE(OILPAN) |
| 51 visitor->trace(matchedProperties); | 50 visitor->trace(matchedProperties); |
| 52 #endif | 51 #endif |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 120 |
| 122 using Cache = HashMap<unsigned, OwnPtr<CachedMatchedProperties>>; | 121 using Cache = HashMap<unsigned, OwnPtr<CachedMatchedProperties>>; |
| 123 Timer<MatchedPropertiesCache> m_sweepTimer; | 122 Timer<MatchedPropertiesCache> m_sweepTimer; |
| 124 #endif | 123 #endif |
| 125 Cache m_cache; | 124 Cache m_cache; |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 } // namespace blink | 127 } // namespace blink |
| 129 | 128 |
| 130 #endif | 129 #endif |
| OLD | NEW |