Chromium Code Reviews| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 static inline bool isPropertyForPass(CSSPropertyID); | 189 static inline bool isPropertyForPass(CSSPropertyID); |
| 190 template <StyleApplicationPass pass> | 190 template <StyleApplicationPass pass> |
| 191 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); | 191 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); |
| 192 template <StyleApplicationPass pass> | 192 template <StyleApplicationPass pass> |
| 193 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly); | 193 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly); |
| 194 template <StyleApplicationPass pass> | 194 template <StyleApplicationPass pass> |
| 195 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI D, RefPtr<Interpolation> >&); | 195 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI D, RefPtr<Interpolation> >&); |
| 196 template <StyleResolver::StyleApplicationPass pass> | 196 template <StyleResolver::StyleApplicationPass pass> |
| 197 void applyAllProperty(StyleResolverState&, CSSValue*); | 197 void applyAllProperty(StyleResolverState&, CSSValue*); |
| 198 | 198 |
| 199 // FIXME: This likely belongs on RuleSet. | |
| 200 typedef HashMap<StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRuleMap; | |
| 201 KeyframesRuleMap m_keyframesRuleMap; | |
|
esprehn
2015/01/07 07:23:50
This code was just dead.
| |
| 202 | |
| 203 static RenderStyle* s_styleNotYetAvailable; | 199 static RenderStyle* s_styleNotYetAvailable; |
| 204 | 200 |
| 205 MatchedPropertiesCache m_matchedPropertiesCache; | 201 MatchedPropertiesCache m_matchedPropertiesCache; |
| 206 | 202 |
| 207 OwnPtr<MediaQueryEvaluator> m_medium; | 203 OwnPtr<MediaQueryEvaluator> m_medium; |
| 208 MediaQueryResultList m_viewportDependentMediaQueryResults; | 204 MediaQueryResultList m_viewportDependentMediaQueryResults; |
| 209 | 205 |
| 210 RawPtr<Document> m_document; | 206 RawPtr<Document> m_document; |
| 211 | 207 |
| 212 ListHashSet<RawPtr<CSSStyleSheet>, 16> m_pendingStyleSheets; | 208 ListHashSet<RawPtr<CSSStyleSheet>, 16> m_pendingStyleSheets; |
| 213 | 209 |
| 214 bool m_printMediaType; | 210 bool m_printMediaType; |
| 215 | 211 |
| 216 StyleResourceLoader m_styleResourceLoader; | 212 StyleResourceLoader m_styleResourceLoader; |
| 217 | 213 |
| 218 unsigned m_styleSharingDepth; | 214 unsigned m_styleSharingDepth; |
| 219 Vector<OwnPtr<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists; | 215 Vector<OwnPtr<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists; |
| 220 | 216 |
| 221 OwnPtr<StyleResolverStats> m_styleResolverStats; | 217 OwnPtr<StyleResolverStats> m_styleResolverStats; |
| 222 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 218 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 223 unsigned m_styleResolverStatsSequence; | 219 unsigned m_styleResolverStatsSequence; |
| 224 | 220 |
| 225 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 221 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 226 unsigned m_accessCount; | 222 unsigned m_accessCount; |
| 227 }; | 223 }; |
| 228 | 224 |
| 229 } // namespace blink | 225 } // namespace blink |
| 230 | 226 |
| 231 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ | 227 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ |
| OLD | NEW |