From f10744f04dfde1a361bd4b82e956523610bf8ff1 Mon Sep 17 00:00:00 2001 From: dhrname Date: Fri, 4 Apr 2014 22:20:15 +0900 Subject: [PATCH] =?utf8?q?css.js=E3=81=ABbase=E9=96=A2=E6=95=B0=E3=82=92?= =?utf8?q?=E9=81=A9=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- org/w3c/dom/css.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/org/w3c/dom/css.js b/org/w3c/dom/css.js index 2778123..b52fa4d 100644 --- a/org/w3c/dom/css.js +++ b/org/w3c/dom/css.js @@ -663,10 +663,8 @@ CSSStyleSheet.prototype = Object._create(StyleSheet); *最近の計算値を取得する。Document.defaultViewはSafariがグローバル(window)にサポートしていないため付ける。 */ /*interface ViewCSS : views::AbstractView {*/ -Document.prototype.defaultView = new ViewCSS(); -function ViewCSS(){ -}; -/*CSSStyleDeclaration*/ ViewCSS.prototype.getComputedStyle = function( /*Element*/ elt, /*string*/ pseudoElt) { +base("$document").defaultView = base("$viewCSS").mix({ +/*CSSStyleDeclaration*/ getComputedStyle: function( /*Element*/ elt, /*string*/ pseudoElt) { var s = new CSSStyleDeclaration(), el, es, eso = 1; @@ -733,13 +731,13 @@ function ViewCSS(){ el = pelt = eso = es = void 0; s._document = elt.ownerDocument; return s; -}; +}}); /*getOverrideStyleメソッド *指定した要素の上書きスタイルシートを取得。 */ /*function DocumentCSS : stylesheets::DocumentStyle {*/ -/*CSSStyleDeclaration*/ Document.prototype.getOverrideStyle = function( /*Element*/ elt, /*string*/ pseudoElt) { +/*CSSStyleDeclaration*/ base("$document").getOverrideStyle = function( /*Element*/ elt, /*string*/ pseudoElt) { var tar = elt; if (!!tar._runtimeStyle) { return (tar._runtimeStyle); -- 2.11.0