1 |
|
2 | var CSSOM = {
|
3 | CSSStyleDeclaration: require("./CSSStyleDeclaration").CSSStyleDeclaration,
|
4 | CSSRule: require("./CSSRule").CSSRule
|
5 | };
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | CSSOM.CSSFontFaceRule = function CSSFontFaceRule() {
|
14 | CSSOM.CSSRule.call(this);
|
15 | this.style = new CSSOM.CSSStyleDeclaration();
|
16 | this.style.parentRule = this;
|
17 | };
|
18 |
|
19 | CSSOM.CSSFontFaceRule.prototype = new CSSOM.CSSRule();
|
20 | CSSOM.CSSFontFaceRule.prototype.constructor = CSSOM.CSSFontFaceRule;
|
21 | CSSOM.CSSFontFaceRule.prototype.type = 5;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | Object.defineProperty(CSSOM.CSSFontFaceRule.prototype, "cssText", {
|
28 | get: function() {
|
29 | return "@font-face {" + this.style.cssText + "}";
|
30 | }
|
31 | });
|
32 |
|
33 |
|
34 |
|
35 | exports.CSSFontFaceRule = CSSOM.CSSFontFaceRule;
|
36 |
|