| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 { | 92 { |
| 93 ASSERT(m_cache.isEmpty()); | 93 ASSERT(m_cache.isEmpty()); |
| 94 } | 94 } |
| 95 | 95 |
| 96 const CachedMatchedProperties* find(unsigned hash, const StyleResolverState&
, const MatchedPropertiesVector&); | 96 const CachedMatchedProperties* find(unsigned hash, const StyleResolverState&
, const MatchedPropertiesVector&); |
| 97 void add(const ComputedStyle&, const ComputedStyle& parentStyle, unsigned ha
sh, const MatchedPropertiesVector&); | 97 void add(const ComputedStyle&, const ComputedStyle& parentStyle, unsigned ha
sh, const MatchedPropertiesVector&); |
| 98 | 98 |
| 99 void clear(); | 99 void clear(); |
| 100 void clearViewportDependent(); | 100 void clearViewportDependent(); |
| 101 | 101 |
| 102 static bool isCacheable(const ComputedStyle&, const ComputedStyle& parentSty
le); | 102 static bool isCacheable(const StyleResolverState&); |
| 103 | 103 |
| 104 DECLARE_TRACE(); | 104 DECLARE_TRACE(); |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 using Cache = HeapHashMap<unsigned, Member<CachedMatchedProperties>, Default
Hash<unsigned>::Hash, HashTraits<unsigned>, CachedMatchedPropertiesHashTraits>; | 107 using Cache = HeapHashMap<unsigned, Member<CachedMatchedProperties>, Default
Hash<unsigned>::Hash, HashTraits<unsigned>, CachedMatchedPropertiesHashTraits>; |
| 108 Cache m_cache; | 108 Cache m_cache; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace blink | 111 } // namespace blink |
| 112 | 112 |
| 113 #endif | 113 #endif |
| OLD | NEW |