[Sie-announce] SIEコード [3042]

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2011年 10月 28日 (金) 22:49:59 JST


Revision: 3042
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=3042
Author:   dhrname
Date:     2011-10-28 22:49:59 +0900 (Fri, 28 Oct 2011)

Log Message:
-----------


Modified Paths:
--------------
    branches/08x/088/org/w3c/dom/css.js

Modified: branches/08x/088/org/w3c/dom/css.js
===================================================================
--- branches/08x/088/org/w3c/dom/css.js	2011-10-28 13:43:02 UTC (rev 3041)
+++ branches/08x/088/org/w3c/dom/css.js	2011-10-28 13:49:59 UTC (rev 3042)
@@ -760,18 +760,20 @@
   var td = this._defaultCSS;    //デフォルト値の設定
   //クロージャを利用して、カスケーディングを実現する
   s.getPropertyCSSValue = function( /*string*/ propertyName) {
-    if (elt._runtimeStyle && elt._runtimeStyle[propertyName]) {
-      var css = elt._runtimeStyle.getPropertyCSSValue(propertyName);
-    } else if (elt.style && elt.style[propertyName]) {
-      css = elt.style.getPropertyCSSValue(propertyName);
-    } else if (elt._rules) {
+    var el = elt,
+        css = null;
+    if (el._runtimeStyle && el._runtimeStyle[propertyName]) {
+      css = el._runtimeStyle.getPropertyCSSValue(propertyName);
+    } else if (el.style && el.style[propertyName]) {
+      css = el.style.getPropertyCSSValue(propertyName);
+    } else if (el._rules) {
       //スタイルシートのルールを探す
-      for (var i=0,eli=elt._rules.length;i<eli;++i) {
-        elt._rules[i].style[propertyName] && (css = elt._rules[i].style.getPropertyCSSValue(propertyName));
+      for (var i=0,eli=el._rules.length;i<eli;++i) {
+        el._rules[i].style[propertyName] && (css = el._rules[i].style.getPropertyCSSValue(propertyName));
       }
-    } else if (elt._attributeStyle && elt._attributeStyle[propertyName]) {
+    } else if (el._attributeStyle && el._attributeStyle[propertyName]) {
       //プレゼンテーション属性を探す
-      css = elt._attributeStyle.getPropertyCSSValue(propertyName);
+      css = el._attributeStyle.getPropertyCSSValue(propertyName);
     }
     if (!css || (css.cssValueType === /*CSSValue.CSS_INHERIT*/ 0)) {
       //ctは親要素のcomputedStyle
@@ -784,6 +786,7 @@
     if (css && ((css.paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102) || (css.colorType === /*SVGColor.SVG_COLORTYPE_CURRENTCOLOR*/ 3))) {
       css.setRGBColor && css.setRGBColor(s.getPropertyCSSValue("color"));
     }
+    el = void 0;
     return css;
   };
   if (!!elt.style) {




Sie-announce メーリングリストの案内
アーカイブの一覧に戻る