| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 void appendPendingAuthorStyleSheets(); | 146 void appendPendingAuthorStyleSheets(); |
| 147 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size(
) > 0 || m_needCollectFeatures; } | 147 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size(
) > 0 || m_needCollectFeatures; } |
| 148 | 148 |
| 149 SelectorFilter& selectorFilter() { return m_selectorFilter; } | 149 SelectorFilter& selectorFilter() { return m_selectorFilter; } |
| 150 | 150 |
| 151 void setBuildScopedStyleTreeInDocumentOrder(bool enabled) { m_styleTree.setB
uildInDocumentOrder(enabled); } | 151 void setBuildScopedStyleTreeInDocumentOrder(bool enabled) { m_styleTree.setB
uildInDocumentOrder(enabled); } |
| 152 bool buildScopedStyleTreeInDocumentOrder() const { return m_styleTree.buildI
nDocumentOrder(); } | 152 bool buildScopedStyleTreeInDocumentOrder() const { return m_styleTree.buildI
nDocumentOrder(); } |
| 153 bool styleTreeHasOnlyScopedResolverForDocument() const { return m_styleTree.
hasOnlyScopedResolverForDocument(); } | 153 bool styleTreeHasOnlyScopedResolverForDocument() const { return m_styleTree.
hasOnlyScopedResolverForDocument(); } |
| 154 ScopedStyleResolver* styleTreeScopedStyleResolverForDocument() const { retur
n m_styleTree.scopedStyleResolverForDocument(); } | 154 ScopedStyleResolver* styleTreeScopedStyleResolverForDocument() const { retur
n m_styleTree.scopedStyleResolverForDocument(); } |
| 155 | 155 |
| 156 ScopedStyleResolver* ensureScopedStyleResolver(ContainerNode* scope) | |
| 157 { | |
| 158 ASSERT(scope); | |
| 159 return m_styleTree.ensureScopedStyleResolver(*scope); | |
| 160 } | |
| 161 | |
| 162 void styleTreeResolveScopedKeyframesRules(const Element* element, Vector<Sco
pedStyleResolver*, 8>& resolvers) | 156 void styleTreeResolveScopedKeyframesRules(const Element* element, Vector<Sco
pedStyleResolver*, 8>& resolvers) |
| 163 { | 157 { |
| 164 m_styleTree.resolveScopedKeyframesRules(element, resolvers); | 158 m_styleTree.resolveScopedKeyframesRules(element, resolvers); |
| 165 } | 159 } |
| 166 | 160 |
| 167 // These methods will give back the set of rules that matched for a given el
ement (or a pseudo-element). | 161 // These methods will give back the set of rules that matched for a given el
ement (or a pseudo-element). |
| 168 enum CSSRuleFilter { | 162 enum CSSRuleFilter { |
| 169 UAAndUserCSSRules = 1 << 1, | 163 UAAndUserCSSRules = 1 << 1, |
| 170 AuthorCSSRules = 1 << 2, | 164 AuthorCSSRules = 1 << 2, |
| 171 EmptyCSSRules = 1 << 3, | 165 EmptyCSSRules = 1 << 3, |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 326 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 333 unsigned m_styleResolverStatsSequence; | 327 unsigned m_styleResolverStatsSequence; |
| 334 | 328 |
| 335 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 329 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 336 unsigned m_accessCount; | 330 unsigned m_accessCount; |
| 337 }; | 331 }; |
| 338 | 332 |
| 339 } // namespace WebCore | 333 } // namespace WebCore |
| 340 | 334 |
| 341 #endif // StyleResolver_h | 335 #endif // StyleResolver_h |
| OLD | NEW |