| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple 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 13 matching lines...) Expand all Loading... |
| 24 #include "core/css/CSSSelector.h" | 24 #include "core/css/CSSSelector.h" |
| 25 #include "core/css/CSSStyleSheet.h" | 25 #include "core/css/CSSStyleSheet.h" |
| 26 #include "core/css/PropertySetCSSStyleDeclaration.h" | 26 #include "core/css/PropertySetCSSStyleDeclaration.h" |
| 27 #include "core/css/StylePropertySet.h" | 27 #include "core/css/StylePropertySet.h" |
| 28 #include "core/css/StyleRule.h" | 28 #include "core/css/StyleRule.h" |
| 29 #include "core/css/parser/CSSParser.h" | 29 #include "core/css/parser/CSSParser.h" |
| 30 #include "wtf/text/StringBuilder.h" | 30 #include "wtf/text/StringBuilder.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 using SelectorTextCache = WillBePersistentHeapHashMap<RawPtrWillBeWeakMember<con
st CSSStyleRule>, String>; | 34 using SelectorTextCache = PersistentHeapHashMap<WeakMember<const CSSStyleRule>,
String>; |
| 35 | 35 |
| 36 static SelectorTextCache& selectorTextCache() | 36 static SelectorTextCache& selectorTextCache() |
| 37 { | 37 { |
| 38 DEFINE_STATIC_LOCAL(SelectorTextCache, cache, ()); | 38 DEFINE_STATIC_LOCAL(SelectorTextCache, cache, ()); |
| 39 return cache; | 39 return cache; |
| 40 } | 40 } |
| 41 | 41 |
| 42 CSSStyleRule::CSSStyleRule(StyleRule* styleRule, CSSStyleSheet* parent) | 42 CSSStyleRule::CSSStyleRule(StyleRule* styleRule, CSSStyleSheet* parent) |
| 43 : CSSRule(parent) | 43 : CSSRule(parent) |
| 44 , m_styleRule(styleRule) | 44 , m_styleRule(styleRule) |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 DEFINE_TRACE(CSSStyleRule) | 133 DEFINE_TRACE(CSSStyleRule) |
| 134 { | 134 { |
| 135 visitor->trace(m_styleRule); | 135 visitor->trace(m_styleRule); |
| 136 visitor->trace(m_propertiesCSSOMWrapper); | 136 visitor->trace(m_propertiesCSSOMWrapper); |
| 137 CSSRule::trace(visitor); | 137 CSSRule::trace(visitor); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace blink | 140 } // namespace blink |
| OLD | NEW |