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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 234 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS MILProperties); | 234 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS MILProperties); |
| 235 void matchUARules(ElementRuleCollector&); | 235 void matchUARules(ElementRuleCollector&); |
| 236 // FIXME: watched selectors should be implemented using injected author styl esheets: http://crbug.com/316960 | 236 // FIXME: watched selectors should be implemented using injected author styl esheets: http://crbug.com/316960 |
| 237 void matchWatchSelectorRules(ElementRuleCollector&); | 237 void matchWatchSelectorRules(ElementRuleCollector&); |
| 238 void collectFeatures(); | 238 void collectFeatures(); |
| 239 void collectTreeBoundaryCrossingRules(Element*, ElementRuleCollector&, bool includeEmptyRules); | 239 void collectTreeBoundaryCrossingRules(Element*, ElementRuleCollector&, bool includeEmptyRules); |
| 240 | 240 |
| 241 bool fastRejectSelector(const RuleData&) const; | 241 bool fastRejectSelector(const RuleData&) const; |
| 242 | 242 |
| 243 void applyMatchedProperties(StyleResolverState&, const MatchResult&, Element * animatingElement); | 243 void applyMatchedProperties(StyleResolverState&, const MatchResult&, Element * animatingElement); |
| 244 void applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ; | |
| 244 | 245 |
| 245 enum StyleApplicationPass { | 246 enum StyleApplicationPass { |
| 246 VariableDefinitions, | 247 VariableDefinitions, |
| 247 AnimationProperties, | 248 AnimationProperties, |
| 248 HighPriorityProperties, | 249 HighPriorityProperties, |
| 249 LowPriorityProperties | 250 LowPriorityProperties |
| 250 }; | 251 }; |
| 251 template <StyleResolver::StyleApplicationPass pass> | 252 template <StyleResolver::StyleApplicationPass pass> |
| 252 static inline bool isPropertyForPass(CSSPropertyID); | 253 static inline bool isPropertyForPass(CSSPropertyID); |
| 253 template <StyleApplicationPass pass> | 254 template <StyleApplicationPass pass> |
| 254 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); | 255 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); |
| 255 template <StyleApplicationPass pass> | 256 template <StyleApplicationPass pass> |
| 256 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone); | 257 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone); |
| 257 template <StyleApplicationPass pass> | 258 template <StyleApplicationPass pass> |
| 258 bool applyAnimatedProperties(StyleResolverState&, const AnimationEffect::Com positableValueMap&); | 259 bool applyAnimatedProperties(StyleResolverState&, const AnimationEffect::Com positableValueMap&); |
|
Steve Block
2013/11/14 03:31:18
Do we need the return value any more?
Timothy Loh
2013/11/14 03:54:01
Removed. I guess we don't need the StyleApplicatio
| |
| 259 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName); | 260 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName); |
| 260 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); | 261 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); |
| 261 void collectViewportRules(); | 262 void collectViewportRules(); |
| 262 Settings* documentSettings() { return m_document.settings(); } | 263 Settings* documentSettings() { return m_document.settings(); } |
| 263 | 264 |
| 264 bool isLeftPage(int pageIndex) const; | 265 bool isLeftPage(int pageIndex) const; |
| 265 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } | 266 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } |
| 266 bool isFirstPage(int pageIndex) const; | 267 bool isFirstPage(int pageIndex) const; |
| 267 String pageName(int pageIndex) const; | 268 String pageName(int pageIndex) const; |
| 268 | 269 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 321 PseudoId ignoreDynamicPseudo = NOPSEUDO; | 322 PseudoId ignoreDynamicPseudo = NOPSEUDO; |
| 322 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) | 323 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) |
| 323 return true; | 324 return true; |
| 324 } | 325 } |
| 325 return false; | 326 return false; |
| 326 } | 327 } |
| 327 | 328 |
| 328 } // namespace WebCore | 329 } // namespace WebCore |
| 329 | 330 |
| 330 #endif // StyleResolver_h | 331 #endif // StyleResolver_h |
| OLD | NEW |