source: frontend/node_modules/cssom/lib/CSSKeyframeRule.js@ cdcff72

Last change on this file since cdcff72 was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.1 KB
Line 
1//.CommonJS
2var CSSOM = {
3 CSSRule: require("./CSSRule").CSSRule,
4 CSSStyleDeclaration: require('./CSSStyleDeclaration').CSSStyleDeclaration
5};
6///CommonJS
7
8
9/**
10 * @constructor
11 * @see http://www.w3.org/TR/css3-animations/#DOM-CSSKeyframeRule
12 */
13CSSOM.CSSKeyframeRule = function CSSKeyframeRule() {
14 CSSOM.CSSRule.call(this);
15 this.keyText = '';
16 this.style = new CSSOM.CSSStyleDeclaration();
17 this.style.parentRule = this;
18};
19
20CSSOM.CSSKeyframeRule.prototype = new CSSOM.CSSRule();
21CSSOM.CSSKeyframeRule.prototype.constructor = CSSOM.CSSKeyframeRule;
22CSSOM.CSSKeyframeRule.prototype.type = 8;
23//FIXME
24//CSSOM.CSSKeyframeRule.prototype.insertRule = CSSStyleSheet.prototype.insertRule;
25//CSSOM.CSSKeyframeRule.prototype.deleteRule = CSSStyleSheet.prototype.deleteRule;
26
27// http://www.opensource.apple.com/source/WebCore/WebCore-955.66.1/css/WebKitCSSKeyframeRule.cpp
28Object.defineProperty(CSSOM.CSSKeyframeRule.prototype, "cssText", {
29 get: function() {
30 return this.keyText + " {" + this.style.cssText + "} ";
31 }
32});
33
34
35//.CommonJS
36exports.CSSKeyframeRule = CSSOM.CSSKeyframeRule;
37///CommonJS
Note: See TracBrowser for help on using the repository browser.