svnno****@sourc*****
svnno****@sourc*****
2011年 3月 28日 (月) 23:33:13 JST
Revision: 2524
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2524
Author: dhrname
Date: 2011-03-28 23:33:13 +0900 (Mon, 28 Mar 2011)
Log Message:
-----------
getFloatValueメソッドの修正
Modified Paths:
--------------
branches/07x/074/org/w3c/dom/css.js
Modified: branches/07x/074/org/w3c/dom/css.js
===================================================================
--- branches/07x/074/org/w3c/dom/css.js 2011-03-28 14:27:05 UTC (rev 2523)
+++ branches/07x/074/org/w3c/dom/css.js 2011-03-28 14:33:13 UTC (rev 2524)
@@ -436,8 +436,8 @@
} else if (n === "pc") {
type = /*CSSPrimitiveValue.CSS_PC*/ 10;
}
- this._value = s * this._n[unitType-1]; //値はあらかじめ、利用しやすいように変換しておく
- return (this._value);
+ this._value = s * this._n[type-1]; //値はあらかじめ、利用しやすいように変換しておく
+ return (this._value / this._n[unitType-1]);
};
/*void*/ CSSPrimitiveValue.prototype.setStringValue = function(/*short*/ stringType, /*string*/ stringValue) {
if (CSSPrimitiveValue.CSS_DIMENSION >= stringType && stringType >= CSSPrimitiveValue.CSS_COUNTER) { //文字列型をサポートしないCSS単位である場合