| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void applyPropertiesToStyle(const CSSPropertyValue* properties, size_t count
, RenderStyle*); | 132 void applyPropertiesToStyle(const CSSPropertyValue* properties, size_t count
, RenderStyle*); |
| 133 | 133 |
| 134 void addMediaQueryResults(const MediaQueryResultList&); | 134 void addMediaQueryResults(const MediaQueryResultList&); |
| 135 bool mediaQueryAffectedByViewportChange() const; | 135 bool mediaQueryAffectedByViewportChange() const; |
| 136 | 136 |
| 137 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something
. | 137 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something
. |
| 138 void invalidateMatchedPropertiesCache(); | 138 void invalidateMatchedPropertiesCache(); |
| 139 | 139 |
| 140 void notifyResizeForViewportUnits(); | 140 void notifyResizeForViewportUnits(); |
| 141 | 141 |
| 142 // Exposed for RenderStyle::isStyleAvilable(). | |
| 143 static RenderStyle* styleNotYetAvailable() { return s_styleNotYetAvailable;
} | |
| 144 | |
| 145 RuleFeatureSet& ensureUpdatedRuleFeatureSet() | 142 RuleFeatureSet& ensureUpdatedRuleFeatureSet() |
| 146 { | 143 { |
| 147 if (hasPendingAuthorStyleSheets()) | 144 if (hasPendingAuthorStyleSheets()) |
| 148 appendPendingAuthorStyleSheets(); | 145 appendPendingAuthorStyleSheets(); |
| 149 return m_features; | 146 return m_features; |
| 150 } | 147 } |
| 151 | 148 |
| 152 RuleFeatureSet& ruleFeatureSet() | 149 RuleFeatureSet& ruleFeatureSet() |
| 153 { | 150 { |
| 154 return m_features; | 151 return m_features; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, bool isImportant, bool inheritedOnly); | 208 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, bool isImportant, bool inheritedOnly); |
| 212 template <StyleApplicationPass pass> | 209 template <StyleApplicationPass pass> |
| 213 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI
D, RefPtr<Interpolation> >&); | 210 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI
D, RefPtr<Interpolation> >&); |
| 214 template <StyleResolver::StyleApplicationPass pass> | 211 template <StyleResolver::StyleApplicationPass pass> |
| 215 void applyAllProperty(StyleResolverState&, CSSValue*); | 212 void applyAllProperty(StyleResolverState&, CSSValue*); |
| 216 | 213 |
| 217 // FIXME: This likely belongs on RuleSet. | 214 // FIXME: This likely belongs on RuleSet. |
| 218 typedef HashMap<StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRuleMap; | 215 typedef HashMap<StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRuleMap; |
| 219 KeyframesRuleMap m_keyframesRuleMap; | 216 KeyframesRuleMap m_keyframesRuleMap; |
| 220 | 217 |
| 221 static RenderStyle* s_styleNotYetAvailable; | |
| 222 | |
| 223 MatchedPropertiesCache m_matchedPropertiesCache; | 218 MatchedPropertiesCache m_matchedPropertiesCache; |
| 224 | 219 |
| 225 OwnPtr<MediaQueryEvaluator> m_medium; | 220 OwnPtr<MediaQueryEvaluator> m_medium; |
| 226 MediaQueryResultList m_viewportDependentMediaQueryResults; | 221 MediaQueryResultList m_viewportDependentMediaQueryResults; |
| 227 | 222 |
| 228 RawPtr<Document> m_document; | 223 RawPtr<Document> m_document; |
| 229 | 224 |
| 230 ListHashSet<RawPtr<CSSStyleSheet>, 16> m_pendingStyleSheets; | 225 ListHashSet<RawPtr<CSSStyleSheet>, 16> m_pendingStyleSheets; |
| 231 | 226 |
| 232 // FIXME: The entire logic of collecting features on StyleResolver, as well
as transferring them | 227 // FIXME: The entire logic of collecting features on StyleResolver, as well
as transferring them |
| (...skipping 12 matching lines...) Expand all Loading... |
| 245 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 240 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 246 unsigned m_styleResolverStatsSequence; | 241 unsigned m_styleResolverStatsSequence; |
| 247 | 242 |
| 248 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 243 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 249 unsigned m_accessCount; | 244 unsigned m_accessCount; |
| 250 }; | 245 }; |
| 251 | 246 |
| 252 } // namespace blink | 247 } // namespace blink |
| 253 | 248 |
| 254 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ | 249 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ |
| OLD | NEW |