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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 |
22 #ifndef StyleResolver_h | 22 #ifndef StyleResolver_h |
23 #define StyleResolver_h | 23 #define StyleResolver_h |
24 | 24 |
| 25 #include "core/animation/InterpolationPipeline.h" |
25 #include "core/css/ElementRuleCollector.h" | 26 #include "core/css/ElementRuleCollector.h" |
26 #include "core/css/PseudoStyleRequest.h" | 27 #include "core/css/PseudoStyleRequest.h" |
27 #include "core/css/RuleFeature.h" | 28 #include "core/css/RuleFeature.h" |
28 #include "core/css/RuleSet.h" | 29 #include "core/css/RuleSet.h" |
29 #include "core/css/SelectorChecker.h" | 30 #include "core/css/SelectorChecker.h" |
30 #include "core/css/SelectorFilter.h" | 31 #include "core/css/SelectorFilter.h" |
31 #include "core/css/SiblingTraversalStrategies.h" | 32 #include "core/css/SiblingTraversalStrategies.h" |
32 #include "core/css/TreeBoundaryCrossingRules.h" | 33 #include "core/css/TreeBoundaryCrossingRules.h" |
33 #include "core/css/resolver/CSSPropertyPriority.h" | 34 #include "core/css/resolver/CSSPropertyPriority.h" |
34 #include "core/css/resolver/MatchedPropertiesCache.h" | 35 #include "core/css/resolver/MatchedPropertiesCache.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 228 |
228 void applyMatchedProperties(StyleResolverState&, const MatchResult&); | 229 void applyMatchedProperties(StyleResolverState&, const MatchResult&); |
229 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl
ement); | 230 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl
ement); |
230 void applyCallbackSelectors(StyleResolverState&); | 231 void applyCallbackSelectors(StyleResolverState&); |
231 | 232 |
232 template <CSSPropertyPriority priority> | 233 template <CSSPropertyPriority priority> |
233 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im
portant, int startIndex, int endIndex, bool inheritedOnly); | 234 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im
portant, int startIndex, int endIndex, bool inheritedOnly); |
234 template <CSSPropertyPriority priority> | 235 template <CSSPropertyPriority priority> |
235 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis
tNone); | 236 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis
tNone); |
236 template <CSSPropertyPriority priority> | 237 template <CSSPropertyPriority priority> |
237 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS
SPropertyID, RefPtrWillBeMember<Interpolation> >&); | 238 void applyAnimatedProperties(StyleResolverState&, const InterpolationPipelin
eMap&); |
238 template <CSSPropertyPriority priority> | 239 template <CSSPropertyPriority priority> |
239 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly); | 240 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly); |
240 | 241 |
241 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); | 242 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); |
242 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); | 243 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); |
243 void collectViewportRules(); | 244 void collectViewportRules(); |
244 | 245 |
245 bool isLeftPage(int pageIndex) const; | 246 bool isLeftPage(int pageIndex) const; |
246 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } | 247 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } |
247 bool isFirstPage(int pageIndex) const; | 248 bool isFirstPage(int pageIndex) const; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 290 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
290 unsigned m_styleResolverStatsSequence; | 291 unsigned m_styleResolverStatsSequence; |
291 | 292 |
292 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 293 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
293 unsigned m_accessCount; | 294 unsigned m_accessCount; |
294 }; | 295 }; |
295 | 296 |
296 } // namespace blink | 297 } // namespace blink |
297 | 298 |
298 #endif // StyleResolver_h | 299 #endif // StyleResolver_h |
OLD | NEW |