From 97d73b6f2e7fd4fbd8316632b5cd7c8692178be6 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Mon, 6 Feb 2012 13:34:30 -0800 Subject: style controller update for CSS animations Signed-off-by: Jonathan Duran --- js/controllers/styles-controller.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js') diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js index afd298c9..51b81204 100644 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js @@ -179,6 +179,10 @@ var stylesController = exports.StylesController = Montage.create(Component, { rule = stylesheet.rules[index]; ///// attach specificity to rule object + // if rule is css keyframes, return rule and don't attach specificity + if (rule instanceof WebKitCSSKeyframesRule) { + return rule; + } rule[this.CONST.SPECIFICITY_KEY] = this.getSpecificity(rule.selectorText); ///// return the rule we just inserted -- cgit v1.2.3