| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 void adjustRenderStyle(RenderStyle* styleToAdjust, RenderStyle* parentStyle,
Element*); | 335 void adjustRenderStyle(RenderStyle* styleToAdjust, RenderStyle* parentStyle,
Element*); |
| 336 void adjustGridItemPosition(RenderStyle* styleToAdjust) const; | 336 void adjustGridItemPosition(RenderStyle* styleToAdjust) const; |
| 337 | 337 |
| 338 bool fastRejectSelector(const RuleData&) const; | 338 bool fastRejectSelector(const RuleData&) const; |
| 339 | 339 |
| 340 void applyMatchedProperties(const MatchResult&, const Element*); | 340 void applyMatchedProperties(const MatchResult&, const Element*); |
| 341 | 341 |
| 342 enum StyleApplicationPass { | 342 enum StyleApplicationPass { |
| 343 VariableDefinitions, | 343 VariableDefinitions, |
| 344 AnimationProperties, |
| 344 HighPriorityProperties, | 345 HighPriorityProperties, |
| 345 LowPriorityProperties | 346 LowPriorityProperties |
| 346 }; | 347 }; |
| 348 template <StyleResolver::StyleApplicationPass pass> |
| 349 static inline bool isPropertyForPass(CSSPropertyID); |
| 347 template <StyleApplicationPass pass> | 350 template <StyleApplicationPass pass> |
| 348 void applyMatchedProperties(const MatchResult&, bool important, int startInd
ex, int endIndex, bool inheritedOnly); | 351 void applyMatchedProperties(const MatchResult&, bool important, int startInd
ex, int endIndex, bool inheritedOnly); |
| 349 template <StyleApplicationPass pass> | 352 template <StyleApplicationPass pass> |
| 350 void applyProperties(const StylePropertySet* properties, StyleRule*, bool is
Important, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone); | 353 void applyProperties(const StylePropertySet* properties, StyleRule*, bool is
Important, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone); |
| 351 template <StyleApplicationPass pass> | 354 template <StyleApplicationPass pass> |
| 352 void applyAnimatedProperties(const Element* target); | 355 void applyAnimatedProperties(const Element* target); |
| 353 void resolveVariables(CSSPropertyID, CSSValue*, Vector<std::pair<CSSProperty
ID, String> >& knownExpressions); | 356 void resolveVariables(CSSPropertyID, CSSValue*, Vector<std::pair<CSSProperty
ID, String> >& knownExpressions); |
| 354 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); | 357 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); |
| 355 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto
r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); | 358 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto
r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); |
| 356 Settings* documentSettings() { return m_document->settings(); } | 359 Settings* documentSettings() { return m_document->settings(); } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 PseudoId ignoreDynamicPseudo = NOPSEUDO; | 454 PseudoId ignoreDynamicPseudo = NOPSEUDO; |
| 452 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo,
DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) | 455 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo,
DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) |
| 453 return true; | 456 return true; |
| 454 } | 457 } |
| 455 return false; | 458 return false; |
| 456 } | 459 } |
| 457 | 460 |
| 458 } // namespace WebCore | 461 } // namespace WebCore |
| 459 | 462 |
| 460 #endif // StyleResolver_h | 463 #endif // StyleResolver_h |
| OLD | NEW |