react / wstein / node_modules / jest-cli / node_modules / jsdom / node_modules / cssom / lib / CSSKeyframesRule.js
81143 views//.CommonJS1var CSSOM = {2CSSRule: require("./CSSRule").CSSRule3};4///CommonJS567/**8* @constructor9* @see http://www.w3.org/TR/css3-animations/#DOM-CSSKeyframesRule10*/11CSSOM.CSSKeyframesRule = function CSSKeyframesRule() {12CSSOM.CSSRule.call(this);13this.name = '';14this.cssRules = [];15};1617CSSOM.CSSKeyframesRule.prototype = new CSSOM.CSSRule;18CSSOM.CSSKeyframesRule.prototype.constructor = CSSOM.CSSKeyframesRule;19CSSOM.CSSKeyframesRule.prototype.type = 8;20//FIXME21//CSSOM.CSSKeyframesRule.prototype.insertRule = CSSStyleSheet.prototype.insertRule;22//CSSOM.CSSKeyframesRule.prototype.deleteRule = CSSStyleSheet.prototype.deleteRule;2324// http://www.opensource.apple.com/source/WebCore/WebCore-955.66.1/css/WebKitCSSKeyframesRule.cpp25Object.defineProperty(CSSOM.CSSKeyframesRule.prototype, "cssText", {26get: function() {27var cssTexts = [];28for (var i=0, length=this.cssRules.length; i < length; i++) {29cssTexts.push(" " + this.cssRules[i].cssText);30}31return "@" + (this._vendorPrefix || '') + "keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}";32}33});343536//.CommonJS37exports.CSSKeyframesRule = CSSOM.CSSKeyframesRule;38///CommonJS394041