| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 bool fastRejectSelector(const RuleData&) const; | 247 bool fastRejectSelector(const RuleData&) const; |
| 248 | 248 |
| 249 void applyMatchedProperties(StyleResolverState&, const MatchResult&); | 249 void applyMatchedProperties(StyleResolverState&, const MatchResult&); |
| 250 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement)
; | 250 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement)
; |
| 251 | 251 |
| 252 enum StyleApplicationPass { | 252 enum StyleApplicationPass { |
| 253 HighPriorityProperties, | 253 HighPriorityProperties, |
| 254 LowPriorityProperties | 254 LowPriorityProperties |
| 255 }; | 255 }; |
| 256 template <StyleResolver::StyleApplicationPass pass> | 256 template <StyleApplicationPass pass> |
| 257 static inline CSSPropertyID firstCSSPropertyId(); | 257 static inline CSSPropertyID firstCSSPropertyId(); |
| 258 template <StyleResolver::StyleApplicationPass pass> | 258 template <StyleApplicationPass pass> |
| 259 static inline CSSPropertyID lastCSSPropertyId(); | 259 static inline CSSPropertyID lastCSSPropertyId(); |
| 260 template <StyleResolver::StyleApplicationPass pass> | 260 template <StyleApplicationPass pass> |
| 261 static inline bool isPropertyForPass(CSSPropertyID); | 261 static inline bool isPropertyForPass(CSSPropertyID); |
| 262 template <StyleApplicationPass pass> | 262 |
| 263 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im
portant, int startIndex, int endIndex, bool inheritedOnly); | |
| 264 template <StyleApplicationPass pass> | |
| 265 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop
ertyWhitelistNone); | |
| 266 template <StyleApplicationPass pass> | 263 template <StyleApplicationPass pass> |
| 267 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS
SPropertyID, RefPtrWillBeMember<Interpolation> >&); | 264 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS
SPropertyID, RefPtrWillBeMember<Interpolation> >&); |
| 268 template <StyleResolver::StyleApplicationPass pass> | |
| 269 void applyAllProperty(StyleResolverState&, CSSValue*); | |
| 270 | 265 |
| 271 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); | 266 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); |
| 272 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); | 267 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); |
| 273 void collectViewportRules(); | 268 void collectViewportRules(); |
| 274 | 269 |
| 275 bool isLeftPage(int pageIndex) const; | 270 bool isLeftPage(int pageIndex) const; |
| 276 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } | 271 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } |
| 277 bool isFirstPage(int pageIndex) const; | 272 bool isFirstPage(int pageIndex) const; |
| 278 String pageName(int pageIndex) const; | 273 String pageName(int pageIndex) const; |
| 279 | 274 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 317 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 323 unsigned m_styleResolverStatsSequence; | 318 unsigned m_styleResolverStatsSequence; |
| 324 | 319 |
| 325 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 320 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 326 unsigned m_accessCount; | 321 unsigned m_accessCount; |
| 327 }; | 322 }; |
| 328 | 323 |
| 329 } // namespace blink | 324 } // namespace blink |
| 330 | 325 |
| 331 #endif // StyleResolver_h | 326 #endif // StyleResolver_h |
| OLD | NEW |