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