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

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: Rebased. 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 class CSSFontSelector; 45 class CSSFontSelector;
46 class CSSRuleList; 46 class CSSRuleList;
47 class CSSSelector; 47 class CSSSelector;
48 class CSSStyleSheet; 48 class CSSStyleSheet;
49 class CSSValue; 49 class CSSValue;
50 class ContainerNode; 50 class ContainerNode;
51 class Document; 51 class Document;
52 class DocumentTimeline;
52 class Element; 53 class Element;
53 class ElementRuleCollector; 54 class ElementRuleCollector;
54 class KeyframeList; 55 class KeyframeList;
55 class KeyframeValue; 56 class KeyframeValue;
56 class MediaQueryEvaluator; 57 class MediaQueryEvaluator;
57 class MediaQueryExp; 58 class MediaQueryExp;
58 class MediaQueryResult; 59 class MediaQueryResult;
59 class RenderRegion; 60 class RenderRegion;
60 class RuleData; 61 class RuleData;
61 class Settings; 62 class Settings;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 HighPriorityProperties, 287 HighPriorityProperties,
287 LowPriorityProperties 288 LowPriorityProperties
288 }; 289 };
289 template <StyleResolver::StyleApplicationPass pass> 290 template <StyleResolver::StyleApplicationPass pass>
290 static inline bool isPropertyForPass(CSSPropertyID); 291 static inline bool isPropertyForPass(CSSPropertyID);
291 template <StyleApplicationPass pass> 292 template <StyleApplicationPass pass>
292 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); 293 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly);
293 template <StyleApplicationPass pass> 294 template <StyleApplicationPass pass>
294 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone); 295 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone);
295 template <StyleApplicationPass pass> 296 template <StyleApplicationPass pass>
296 void applyAnimatedProperties(StyleResolverState&, const Element* target); 297 void applyAnimatedProperties(StyleResolverState&, const Element*, const Docu mentTimeline*);
297 void resolveVariables(StyleResolverState&, CSSPropertyID, CSSValue*, Vector< std::pair<CSSPropertyID, String> >& knownExpressions); 298 void resolveVariables(StyleResolverState&, CSSPropertyID, CSSValue*, Vector< std::pair<CSSPropertyID, String> >& knownExpressions);
298 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName); 299 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName);
299 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); 300 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName);
300 void collectViewportRules(); 301 void collectViewportRules();
301 Settings* documentSettings() { return m_document->settings(); } 302 Settings* documentSettings() { return m_document->settings(); }
302 303
303 bool isLeftPage(int pageIndex) const; 304 bool isLeftPage(int pageIndex) const;
304 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 305 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
305 bool isFirstPage(int pageIndex) const; 306 bool isFirstPage(int pageIndex) const;
306 String pageName(int pageIndex) const; 307 String pageName(int pageIndex) const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 PseudoId ignoreDynamicPseudo = NOPSEUDO; 362 PseudoId ignoreDynamicPseudo = NOPSEUDO;
362 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 363 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
363 return true; 364 return true;
364 } 365 }
365 return false; 366 return false;
366 } 367 }
367 368
368 } // namespace WebCore 369 } // namespace WebCore
369 370
370 #endif // StyleResolver_h 371 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/SharedStyleFinder.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698