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