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

Unified Diff: Source/core/css/CSSKeyframesRule.cpp

Issue 1152993002: Add a counter for CSSKeyframesRule's anonymous indexed getter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/core/css/CSSKeyframesRule.h ('k') | Source/core/css/CSSKeyframesRule.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSKeyframesRule.cpp
diff --git a/Source/core/css/CSSKeyframesRule.cpp b/Source/core/css/CSSKeyframesRule.cpp
index 0a137d6eed71a126c8669efb6803901759fe0afb..ea44a94b856fae90010e410dab69731f1ed784ba 100644
--- a/Source/core/css/CSSKeyframesRule.cpp
+++ b/Source/core/css/CSSKeyframesRule.cpp
@@ -195,6 +195,13 @@ CSSKeyframeRule* CSSKeyframesRule::item(unsigned index) const
return rule.get();
}
+CSSKeyframeRule* CSSKeyframesRule::anonymousIndexedGetter(unsigned index) const
+{
+ if (UseCounter* useCounter = UseCounter::getFrom(parentStyleSheet()))
+ useCounter->count(UseCounter::CSSKeyframesRuleAnonymousIndexedGetter);
+ return item(index);
+}
+
CSSRuleList* CSSKeyframesRule::cssRules() const
{
if (!m_ruleListCSSOMWrapper)
« no previous file with comments | « Source/core/css/CSSKeyframesRule.h ('k') | Source/core/css/CSSKeyframesRule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698