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

Unified Diff: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h

Issue 1371723002: Devtools Animations: Add method to fetch CSS keyframed animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
index c60dc23ffcbde7af3364bed6dddc4fe03b0a0ca5..db69571d9fd4a4b8df130817eb489c5604a4f803 100644
--- a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
@@ -55,6 +55,7 @@ public:
ScopedStyleResolver* parent() const;
StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* animationName);
+ CSSStyleSheet* styleSheetForAnimation(const StringImpl* animationName);
void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&);
void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRules, CascadeOrder = ignoreCascadeOrder);
@@ -74,9 +75,9 @@ private:
}
void addTreeBoundaryCrossingRules(const RuleSet&, CSSStyleSheet*, unsigned sheetIndex);
- void addKeyframeRules(const RuleSet&);
+ void addKeyframeRules(const RuleSet&, CSSStyleSheet*);
void addFontFaceRules(const RuleSet&);
- void addKeyframeStyle(PassRefPtrWillBeRawPtr<StyleRuleKeyframes>);
+ void addKeyframeStyle(PassRefPtrWillBeRawPtr<StyleRuleKeyframes>, CSSStyleSheet*);
RawPtrWillBeMember<TreeScope> m_scope;
@@ -84,6 +85,7 @@ private:
using KeyframesRuleMap = WillBeHeapHashMap<const StringImpl*, RefPtrWillBeMember<StyleRuleKeyframes>>;
KeyframesRuleMap m_keyframesRuleMap;
+ WillBeHeapHashMap<const StringImpl*, CSSStyleSheet*> m_keyframesStyleSheetMap;
alancutter (OOO until 2018) 2015/10/15 00:11:53 D:
class RuleSubSet final : public NoBaseWillBeGarbageCollected<RuleSubSet> {
public:

Powered by Google App Engine
This is Rietveld 408576698