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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 HighPriorityProperties, | 265 HighPriorityProperties, |
266 LowPriorityProperties | 266 LowPriorityProperties |
267 }; | 267 }; |
268 template <StyleResolver::StyleApplicationPass pass> | 268 template <StyleResolver::StyleApplicationPass pass> |
269 static inline bool isPropertyForPass(CSSPropertyID); | 269 static inline bool isPropertyForPass(CSSPropertyID); |
270 template <StyleApplicationPass pass> | 270 template <StyleApplicationPass pass> |
271 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im
portant, int startIndex, int endIndex, bool inheritedOnly); | 271 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im
portant, int startIndex, int endIndex, bool inheritedOnly); |
272 template <StyleApplicationPass pass> | 272 template <StyleApplicationPass pass> |
273 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop
ertyWhitelistNone); | 273 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop
ertyWhitelistNone); |
274 template <StyleApplicationPass pass> | 274 template <StyleApplicationPass pass> |
275 void applyAnimatedProperties(StyleResolverState&, const AnimationEffect::Com
positableValueMap&); | 275 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI
D, RefPtr<Interpolation> >&); |
276 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); | 276 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); |
277 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto
r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); | 277 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto
r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); |
278 void collectViewportRules(); | 278 void collectViewportRules(); |
279 Settings* documentSettings() { return m_document.settings(); } | 279 Settings* documentSettings() { return m_document.settings(); } |
280 | 280 |
281 bool isLeftPage(int pageIndex) const; | 281 bool isLeftPage(int pageIndex) const; |
282 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } | 282 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } |
283 bool isFirstPage(int pageIndex) const; | 283 bool isFirstPage(int pageIndex) const; |
284 String pageName(int pageIndex) const; | 284 String pageName(int pageIndex) const; |
285 | 285 |
(...skipping 56 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 |