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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 void resetAuthorStyle(TreeScope&); | 123 void resetAuthorStyle(TreeScope&); |
124 void finishAppendAuthorStyleSheets(); | 124 void finishAppendAuthorStyleSheets(); |
125 | 125 |
126 void lazyAppendAuthorStyleSheets(unsigned firstNew, const WillBeHeapVector<R efPtrWillBeMember<CSSStyleSheet> >&); | 126 void lazyAppendAuthorStyleSheets(unsigned firstNew, const WillBeHeapVector<R efPtrWillBeMember<CSSStyleSheet> >&); |
127 void removePendingAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMembe r<CSSStyleSheet> >&); | 127 void removePendingAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMembe r<CSSStyleSheet> >&); |
128 void appendPendingAuthorStyleSheets(); | 128 void appendPendingAuthorStyleSheets(); |
129 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size( ) > 0 || m_needCollectFeatures; } | 129 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size( ) > 0 || m_needCollectFeatures; } |
130 | 130 |
131 SelectorFilter& selectorFilter() { return m_selectorFilter; } | 131 SelectorFilter& selectorFilter() { return m_selectorFilter; } |
132 | 132 |
133 const StyleRuleKeyframes* findKeyframesRule(const Element*, const AtomicStri ng& animationName); | 133 const StyleRuleKeyframes* findKeyframesRule(const Element*, const AtomicStri ng& animationName) const; |
shend
2015/01/05 06:29:54
Same as in StyleResolver, the const version isn't
| |
134 PassRefPtrWillBeRawPtr<StyleRuleKeyframes> findKeyframesRule(const Element*, const AtomicString& animationName); | |
134 | 135 |
135 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element). | 136 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element). |
136 enum CSSRuleFilter { | 137 enum CSSRuleFilter { |
137 UAAndUserCSSRules = 1 << 1, | 138 UAAndUserCSSRules = 1 << 1, |
138 AuthorCSSRules = 1 << 2, | 139 AuthorCSSRules = 1 << 2, |
139 EmptyCSSRules = 1 << 3, | 140 EmptyCSSRules = 1 << 3, |
140 CrossOriginCSSRules = 1 << 4, | 141 CrossOriginCSSRules = 1 << 4, |
141 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules, | 142 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules, |
142 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, | 143 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, |
143 }; | 144 }; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
299 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 300 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
300 unsigned m_styleResolverStatsSequence; | 301 unsigned m_styleResolverStatsSequence; |
301 | 302 |
302 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 303 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
303 unsigned m_accessCount; | 304 unsigned m_accessCount; |
304 }; | 305 }; |
305 | 306 |
306 } // namespace blink | 307 } // namespace blink |
307 | 308 |
308 #endif // StyleResolver_h | 309 #endif // StyleResolver_h |
OLD | NEW |