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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 244 |
245 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId,
unsigned rulesToInclude); | 245 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId,
unsigned rulesToInclude); |
246 void matchUARules(ElementRuleCollector&, RuleSet*); | 246 void matchUARules(ElementRuleCollector&, RuleSet*); |
247 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule
s); | 247 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule
s); |
248 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc
ludeEmptyRules, Vector<ScopedStyleResolver*, 8>& resolvers, Vector<ScopedStyleRe
solver*, 8>& resolversInShadowTree); | 248 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc
ludeEmptyRules, Vector<ScopedStyleResolver*, 8>& resolvers, Vector<ScopedStyleRe
solver*, 8>& resolversInShadowTree); |
249 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS
MILProperties); | 249 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS
MILProperties); |
250 void matchUARules(ElementRuleCollector&); | 250 void matchUARules(ElementRuleCollector&); |
251 // FIXME: watched selectors should be implemented using injected author styl
esheets: http://crbug.com/316960 | 251 // FIXME: watched selectors should be implemented using injected author styl
esheets: http://crbug.com/316960 |
252 void matchWatchSelectorRules(ElementRuleCollector&); | 252 void matchWatchSelectorRules(ElementRuleCollector&); |
253 void collectFeatures(); | 253 void collectFeatures(); |
254 void collectTreeBoundaryCrossingRules(Element*, ElementRuleCollector&, bool
includeEmptyRules); | 254 void collectTreeBoundaryCrossingRules(Element*, ElementRuleCollector&, bool
includeEmptyRules, CascadeOrder); |
255 void resetRuleFeatures(); | 255 void resetRuleFeatures(); |
256 | 256 |
257 bool fastRejectSelector(const RuleData&) const; | 257 bool fastRejectSelector(const RuleData&) const; |
258 | 258 |
259 void applyMatchedProperties(StyleResolverState&, const MatchResult&); | 259 void applyMatchedProperties(StyleResolverState&, const MatchResult&); |
260 void applyAnimatedProperties(StyleResolverState&, Element* animatingElement)
; | 260 void applyAnimatedProperties(StyleResolverState&, Element* animatingElement)
; |
261 | 261 |
262 enum StyleApplicationPass { | 262 enum StyleApplicationPass { |
263 VariableDefinitions, | 263 VariableDefinitions, |
264 AnimationProperties, | 264 AnimationProperties, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi
onElement, SelectorChecker::VisitedMatchDisabled); | 342 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi
onElement, SelectorChecker::VisitedMatchDisabled); |
343 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt
rategy()) == SelectorChecker::SelectorMatches) | 343 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt
rategy()) == SelectorChecker::SelectorMatches) |
344 return true; | 344 return true; |
345 } | 345 } |
346 return false; | 346 return false; |
347 } | 347 } |
348 | 348 |
349 } // namespace WebCore | 349 } // namespace WebCore |
350 | 350 |
351 #endif // StyleResolver_h | 351 #endif // StyleResolver_h |
OLD | NEW |