| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 HighPriorityProperties, | 268 HighPriorityProperties, |
| 269 LowPriorityProperties | 269 LowPriorityProperties |
| 270 }; | 270 }; |
| 271 template <StyleResolver::StyleApplicationPass pass> | 271 template <StyleResolver::StyleApplicationPass pass> |
| 272 static inline bool isPropertyForPass(CSSPropertyID); | 272 static inline bool isPropertyForPass(CSSPropertyID); |
| 273 template <StyleApplicationPass pass> | 273 template <StyleApplicationPass pass> |
| 274 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im
portant, int startIndex, int endIndex, bool inheritedOnly); | 274 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im
portant, int startIndex, int endIndex, bool inheritedOnly); |
| 275 template <StyleApplicationPass pass> | 275 template <StyleApplicationPass pass> |
| 276 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop
ertyWhitelistNone); | 276 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop
ertyWhitelistNone); |
| 277 template <StyleApplicationPass pass> | 277 template <StyleApplicationPass pass> |
| 278 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI
D, RefPtr<Interpolation> >&); | 278 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS
SPropertyID, RefPtrWillBeMember<Interpolation> >&); |
| 279 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); | 279 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); |
| 280 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); | 280 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); |
| 281 void collectViewportRules(); | 281 void collectViewportRules(); |
| 282 Settings* documentSettings() { return m_document.settings(); } | 282 Settings* documentSettings() { return m_document.settings(); } |
| 283 | 283 |
| 284 bool isLeftPage(int pageIndex) const; | 284 bool isLeftPage(int pageIndex) const; |
| 285 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } | 285 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } |
| 286 bool isFirstPage(int pageIndex) const; | 286 bool isFirstPage(int pageIndex) const; |
| 287 String pageName(int pageIndex) const; | 287 String pageName(int pageIndex) const; |
| 288 | 288 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 335 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 336 unsigned m_styleResolverStatsSequence; | 336 unsigned m_styleResolverStatsSequence; |
| 337 | 337 |
| 338 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 338 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 339 unsigned m_accessCount; | 339 unsigned m_accessCount; |
| 340 }; | 340 }; |
| 341 | 341 |
| 342 } // namespace WebCore | 342 } // namespace WebCore |
| 343 | 343 |
| 344 #endif // StyleResolver_h | 344 #endif // StyleResolver_h |
| OLD | NEW |