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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.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, 3 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/StyleResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
index 95bfd33aaee91c22c38ecb8b779b2c580cdae04c..bf45ff46069413c78348f809fbab45860fdd2535 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
@@ -119,6 +119,7 @@ public:
SelectorFilter& selectorFilter() { return m_selectorFilter; }
StyleRuleKeyframes* findKeyframesRule(const Element*, const AtomicString& animationName);
+ CSSKeyframesRule* findCSSKeyframesRule(const Element*, const AtomicString& animationName);
// These methods will give back the set of rules that matched for a given element (or a pseudo-element).
enum CSSRuleFilter {
@@ -132,6 +133,7 @@ public:
PassRefPtrWillBeRawPtr<CSSRuleList> cssRulesForElement(Element*, unsigned rulesToInclude = AllButEmptyCSSRules);
PassRefPtrWillBeRawPtr<CSSRuleList> pseudoCSSRulesForElement(Element*, PseudoId, unsigned rulesToInclude = AllButEmptyCSSRules);
PassRefPtrWillBeRawPtr<StyleRuleList> styleRulesForElement(Element*, unsigned rulesToInclude);
+ PassRefPtrWillBeRawPtr<CSSRuleList> keyframesRulesForElement(Element*);
void computeFont(ComputedStyle*, const StylePropertySet&);
@@ -222,6 +224,8 @@ private:
bool hasAuthorBackground(const StyleResolverState&);
bool hasAuthorBorder(const StyleResolverState&);
+ CSSKeyframesRule* findCSSKeyframesRule(PassRefPtrWillBeRawPtr<CSSRuleList>, StyleRuleKeyframes*);
+
PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, PseudoId);
Document& document() { return *m_document; }

Powered by Google App Engine
This is Rietveld 408576698