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

Side by Side Diff: sky/engine/core/css/resolver/ScopedStyleResolver.h

Issue 872893002: Remove lots of @keyframes related code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/css/RuleSet.cpp ('k') | sky/engine/core/css/resolver/ScopedStyleResolver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); 49 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver);
50 WTF_MAKE_FAST_ALLOCATED; 50 WTF_MAKE_FAST_ALLOCATED;
51 public: 51 public:
52 static PassOwnPtr<ScopedStyleResolver> create(TreeScope& scope) 52 static PassOwnPtr<ScopedStyleResolver> create(TreeScope& scope)
53 { 53 {
54 return adoptPtr(new ScopedStyleResolver(scope)); 54 return adoptPtr(new ScopedStyleResolver(scope));
55 } 55 }
56 56
57 const TreeScope& treeScope() const { return m_scope; } 57 const TreeScope& treeScope() const { return m_scope; }
58 58
59 const StyleRuleKeyframes* keyframeStylesForAnimation(String animationName);
60
61 void collectMatchingAuthorRules(ElementRuleCollector&, CascadeOrder = ignore CascadeOrder); 59 void collectMatchingAuthorRules(ElementRuleCollector&, CascadeOrder = ignore CascadeOrder);
62 void collectMatchingHostRules(ElementRuleCollector&, CascadeOrder = ignoreCa scadeOrder); 60 void collectMatchingHostRules(ElementRuleCollector&, CascadeOrder = ignoreCa scadeOrder);
63 61
64 bool hasSelectorForId(const AtomicString& id) const; 62 bool hasSelectorForId(const AtomicString& id) const;
65 bool hasSelectorForClass(const AtomicString& className) const; 63 bool hasSelectorForClass(const AtomicString& className) const;
66 bool hasSelectorForAttribute(const AtomicString& attributeName) const; 64 bool hasSelectorForAttribute(const AtomicString& attributeName) const;
67 65
68 void updateActiveStyleSheets(); 66 void updateActiveStyleSheets();
69 67
70 const Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() const { return m_au thorStyleSheets; } 68 const Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() const { return m_au thorStyleSheets; }
71 69
72 void addStyleSheetCandidateNode(HTMLStyleElement&); 70 void addStyleSheetCandidateNode(HTMLStyleElement&);
73 void removeStyleSheetCandidateNode(HTMLStyleElement&); 71 void removeStyleSheetCandidateNode(HTMLStyleElement&);
74 72
75 private: 73 private:
76 explicit ScopedStyleResolver(TreeScope&); 74 explicit ScopedStyleResolver(TreeScope&);
77 75
78 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets); 76 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets);
79 77
80 TreeScope& m_scope; 78 TreeScope& m_scope;
81 DocumentOrderedList m_styleSheetCandidateNodes; 79 DocumentOrderedList m_styleSheetCandidateNodes;
82 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets; 80 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets;
83 }; 81 };
84 82
85 } // namespace blink 83 } // namespace blink
86 84
87 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ 85 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/RuleSet.cpp ('k') | sky/engine/core/css/resolver/ScopedStyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698