Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: Source/core/css/resolver/StyleResolver.h

Issue 863863004: Implemented additive animations for length (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed AnimationStackTest Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/Interpolation.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 11 matching lines...) Expand all
46 47
47 namespace blink { 48 namespace blink {
48 49
49 class AnimatableValue; 50 class AnimatableValue;
50 class CSSRuleList; 51 class CSSRuleList;
51 class CSSStyleSheet; 52 class CSSStyleSheet;
52 class CSSValue; 53 class CSSValue;
53 class ContainerNode; 54 class ContainerNode;
54 class Document; 55 class Document;
55 class Element; 56 class Element;
56 class Interpolation;
57 class MediaQueryEvaluator; 57 class MediaQueryEvaluator;
58 class RuleData; 58 class RuleData;
59 class ScopedStyleResolver; 59 class ScopedStyleResolver;
60 class StylePropertySet; 60 class StylePropertySet;
61 class StyleResolverStats; 61 class StyleResolverStats;
62 class StyleRule; 62 class StyleRule;
63 class StyleRuleKeyframe; 63 class StyleRuleKeyframe;
64 class StyleRulePage; 64 class StyleRulePage;
65 class ViewportStyleResolver; 65 class ViewportStyleResolver;
66 66
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 void applyMatchedProperties(StyleResolverState&, const MatchResult&); 228 void applyMatchedProperties(StyleResolverState&, const MatchResult&);
229 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl ement); 229 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl ement);
230 void applyCallbackSelectors(StyleResolverState&); 230 void applyCallbackSelectors(StyleResolverState&);
231 231
232 template <CSSPropertyPriority priority> 232 template <CSSPropertyPriority priority>
233 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); 233 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly);
234 template <CSSPropertyPriority priority> 234 template <CSSPropertyPriority priority>
235 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone); 235 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone);
236 template <CSSPropertyPriority priority> 236 template <CSSPropertyPriority priority>
237 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS SPropertyID, RefPtrWillBeMember<Interpolation> >&); 237 void applyAnimatedProperties(StyleResolverState&, const InterpolationPipelin eMap&);
238 template <CSSPropertyPriority priority> 238 template <CSSPropertyPriority priority>
239 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly); 239 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly);
240 240
241 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName); 241 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); 242 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage > >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&, bool isLeftPage, bool isFirstPage, const String& pageName);
243 void collectViewportRules(); 243 void collectViewportRules();
244 244
245 bool isLeftPage(int pageIndex) const; 245 bool isLeftPage(int pageIndex) const;
246 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 246 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
247 bool isFirstPage(int pageIndex) const; 247 bool isFirstPage(int pageIndex) const;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 289 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
290 unsigned m_styleResolverStatsSequence; 290 unsigned m_styleResolverStatsSequence;
291 291
292 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 292 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
293 unsigned m_accessCount; 293 unsigned m_accessCount;
294 }; 294 };
295 295
296 } // namespace blink 296 } // namespace blink
297 297
298 #endif // StyleResolver_h 298 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698