svnno****@sourc*****
svnno****@sourc*****
2011年 11月 15日 (火) 19:49:56 JST
Revision: 3091
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=3091
Author: dhrname
Date: 2011-11-15 19:49:55 +0900 (Tue, 15 Nov 2011)
Log Message:
-----------
setPropertyメソッドのfont-sizeに関する修正と、getComputedStyleメソッドの修正
Modified Paths:
--------------
branches/08x/089/org/w3c/dom/css.js
Modified: branches/08x/089/org/w3c/dom/css.js
===================================================================
--- branches/08x/089/org/w3c/dom/css.js 2011-11-13 13:32:22 UTC (rev 3090)
+++ branches/08x/089/org/w3c/dom/css.js 2011-11-15 10:49:55 UTC (rev 3091)
@@ -334,8 +334,11 @@
} else if (propertyName === "opacity") {
this._list._opacity = +value;
} else if (propertyName === "font-size") {
- if (/(%|em)/.test(value)) {
- this._list.fontSize = parseFloat(value);
+ if (/(%|em|ex)/.test(value)) {
+ tg = "_" +RegExP.$1
+ ti[tg] = parseFloat(value);
+ } else {
+ this._list._fontSize = parseFloat(value);
}
}
cssText = void 0;
@@ -730,8 +733,8 @@
//デフォルト値を探す
td && (css = td[propertyName]);
}
- if (css && ((css.paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102) || (css.colorType === /*SVGColor.SVG_COLORTYPE_CURRENTCOLOR*/ 3))) {
- css.setRGBColor && css.setRGBColor(s.getPropertyValue("color"));
+ if (css && css.setRGBColor && ((css.paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102) || (css.colorType === /*SVGColor.SVG_COLORTYPE_CURRENTCOLOR*/ 3))) {
+ css.setRGBColor(s.getPropertyValue("color"));
}
el = void 0;
return css;