svnno****@sourc*****
svnno****@sourc*****
2010年 9月 7日 (火) 23:08:03 JST
Revision: 1988
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1988
Author: dhrname
Date: 2010-09-07 23:08:03 +0900 (Tue, 07 Sep 2010)
Log Message:
-----------
getOverrideStyleメソッドの修正
Modified Paths:
--------------
branches/06x/061/org/w3c/dom/css.js
Modified: branches/06x/061/org/w3c/dom/css.js
===================================================================
--- branches/06x/061/org/w3c/dom/css.js 2010-09-05 14:10:39 UTC (rev 1987)
+++ branches/06x/061/org/w3c/dom/css.js 2010-09-07 14:08:03 UTC (rev 1988)
@@ -689,12 +689,12 @@
if (!!tar._runtimeStyle) {
return (tar._runtimeStyle);
} else {
- var s = new CSSStyleDeclaration(), setProp = s.setProperty;
+ var s = new CSSStyleDeclaration(), setProp = s.setProperty; //このsetPropは関数オブジェクトではなくて、単なる関数のラベル
tar._runtimeStyle = s;
}
var style = this.defaultView.getComputedStyle(tar, "")
s.setProperty = function(propertyName, value, priority) {
- var el = tar._tar;
+ var tar = elt, el = tar._tar;
if (!!!tar._fillElement) {
tar._fillElement = document.createElement("v:fill"); //キャッシュを作る
el.appendChild(tar._fillElement);
@@ -704,7 +704,7 @@
el.appendChild(tar._strokeElement);
}
var fillElement = tar._fillElementvar, strokeElement = tar._strokeElement;
- setProp(propertyName, value, priority);
+ setProp.call(s, propertyName, value, priority);
if (propertyName === "fill-opacity") {
var fillOpacity = parseFloat(value) * style._list._opacity; //opacityを掛け合わせる
if (fillOpacity < 1) {