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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 context, parentStyleSheet() ? parentStyleSheet()->contents() : nullptr, | 83 context, parentStyleSheet() ? parentStyleSheet()->contents() : nullptr, |
84 selectorText); | 84 selectorText); |
85 if (!selectorList.isValid()) | 85 if (!selectorList.isValid()) |
86 return; | 86 return; |
87 | 87 |
88 CSSStyleSheet::RuleMutationScope mutationScope(this); | 88 CSSStyleSheet::RuleMutationScope mutationScope(this); |
89 | 89 |
90 m_styleRule->wrapperAdoptSelectorList(std::move(selectorList)); | 90 m_styleRule->wrapperAdoptSelectorList(std::move(selectorList)); |
91 | 91 |
92 if (hasCachedSelectorText()) { | 92 if (hasCachedSelectorText()) { |
93 selectorTextCache().remove(this); | 93 selectorTextCache().erase(this); |
94 setHasCachedSelectorText(false); | 94 setHasCachedSelectorText(false); |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
98 String CSSStyleRule::cssText() const { | 98 String CSSStyleRule::cssText() const { |
99 StringBuilder result; | 99 StringBuilder result; |
100 result.append(selectorText()); | 100 result.append(selectorText()); |
101 result.append(" { "); | 101 result.append(" { "); |
102 String decls = m_styleRule->properties().asText(); | 102 String decls = m_styleRule->properties().asText(); |
103 result.append(decls); | 103 result.append(decls); |
(...skipping 16 matching lines...) Expand all Loading... |
120 CSSRule::trace(visitor); | 120 CSSRule::trace(visitor); |
121 } | 121 } |
122 | 122 |
123 DEFINE_TRACE_WRAPPERS(CSSStyleRule) { | 123 DEFINE_TRACE_WRAPPERS(CSSStyleRule) { |
124 visitor->traceWrappers(parentRule()); | 124 visitor->traceWrappers(parentRule()); |
125 visitor->traceWrappers(parentStyleSheet()); | 125 visitor->traceWrappers(parentStyleSheet()); |
126 CSSRule::traceWrappers(visitor); | 126 CSSRule::traceWrappers(visitor); |
127 } | 127 } |
128 | 128 |
129 } // namespace blink | 129 } // namespace blink |
OLD | NEW |