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

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

Issue 19266007: Web Animations: Introduce ActiveAnimations and AnimationStack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed maps. Store ActiveAnimations in ElementRareData. Created 7 years, 5 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 | Annotate | Revision Log
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,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class CSSImageValue; 54 class CSSImageValue;
55 class CSSPageRule; 55 class CSSPageRule;
56 class CSSPrimitiveValue; 56 class CSSPrimitiveValue;
57 class CSSProperty; 57 class CSSProperty;
58 class CSSRuleList; 58 class CSSRuleList;
59 class CSSSelector; 59 class CSSSelector;
60 class CSSStyleSheet; 60 class CSSStyleSheet;
61 class CSSValue; 61 class CSSValue;
62 class ContainerNode; 62 class ContainerNode;
63 class Document; 63 class Document;
64 class DocumentTimeline;
64 class Element; 65 class Element;
65 class ElementRuleCollector; 66 class ElementRuleCollector;
66 class Frame; 67 class Frame;
67 class FrameView; 68 class FrameView;
68 class KeyframeList; 69 class KeyframeList;
69 class KeyframeValue; 70 class KeyframeValue;
70 class MediaQueryEvaluator; 71 class MediaQueryEvaluator;
71 class MediaQueryExp; 72 class MediaQueryExp;
72 class MediaQueryResult; 73 class MediaQueryResult;
73 class Node; 74 class Node;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 HighPriorityProperties, 255 HighPriorityProperties,
255 LowPriorityProperties 256 LowPriorityProperties
256 }; 257 };
257 template <StyleResolver::StyleApplicationPass pass> 258 template <StyleResolver::StyleApplicationPass pass>
258 static inline bool isPropertyForPass(CSSPropertyID); 259 static inline bool isPropertyForPass(CSSPropertyID);
259 template <StyleApplicationPass pass> 260 template <StyleApplicationPass pass>
260 void applyMatchedProperties(const MatchResult&, bool important, int startInd ex, int endIndex, bool inheritedOnly); 261 void applyMatchedProperties(const MatchResult&, bool important, int startInd ex, int endIndex, bool inheritedOnly);
261 template <StyleApplicationPass pass> 262 template <StyleApplicationPass pass>
262 void applyProperties(const StylePropertySet* properties, StyleRule*, bool is Important, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone); 263 void applyProperties(const StylePropertySet* properties, StyleRule*, bool is Important, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone);
263 template <StyleApplicationPass pass> 264 template <StyleApplicationPass pass>
264 void applyAnimatedProperties(const Element* target); 265 void applyAnimatedProperties(const Element*, const DocumentTimeline*);
265 void resolveVariables(CSSPropertyID, CSSValue*, Vector<std::pair<CSSProperty ID, String> >& knownExpressions); 266 void resolveVariables(CSSPropertyID, CSSValue*, Vector<std::pair<CSSProperty ID, String> >& knownExpressions);
266 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName); 267 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName);
267 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); 268 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName);
268 void collectViewportRules(); 269 void collectViewportRules();
269 Settings* documentSettings() { return m_document->settings(); } 270 Settings* documentSettings() { return m_document->settings(); }
270 271
271 bool isLeftPage(int pageIndex) const; 272 bool isLeftPage(int pageIndex) const;
272 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 273 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
273 bool isFirstPage(int pageIndex) const; 274 bool isFirstPage(int pageIndex) const;
274 String pageName(int pageIndex) const; 275 String pageName(int pageIndex) const;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 PseudoId ignoreDynamicPseudo = NOPSEUDO; 344 PseudoId ignoreDynamicPseudo = NOPSEUDO;
344 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 345 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
345 return true; 346 return true;
346 } 347 }
347 return false; 348 return false;
348 } 349 }
349 350
350 } // namespace WebCore 351 } // namespace WebCore
351 352
352 #endif // StyleResolver_h 353 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698