svnno****@sourc*****
svnno****@sourc*****
2011年 5月 27日 (金) 20:03:12 JST
Revision: 2715
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2715
Author: dhrname
Date: 2011-05-27 20:03:12 +0900 (Fri, 27 May 2011)
Log Message:
-----------
setPropertyメソッドの修正
Modified Paths:
--------------
branches/07x/078/org/w3c/dom/css.js
Modified: branches/07x/078/org/w3c/dom/css.js
===================================================================
--- branches/07x/078/org/w3c/dom/css.js 2011-05-27 11:01:13 UTC (rev 2714)
+++ branches/07x/078/org/w3c/dom/css.js 2011-05-27 11:03:12 UTC (rev 2715)
@@ -328,18 +328,12 @@
fill = this.getPropertyCSSValue("fill");
stroke = this.getPropertyCSSValue("stroke");
stop = this.getPropertyCSSValue("stop-color");
- if (fill) {
- if (fill.paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102) {
- fill.setPaint(fill.paintType, null, value, null);
- }
- } else if (stroke) {
- if (stroke.paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102) {
- stroke.setPaint(fill.paintType, null, value, null);
- }
- } else if (stop) {
- if (stop.colorType === /*SVGColor.SVG_COLORTYPE_CURRENTCOLOR*/ 3) {
- stop.setRGBColor(value);
- }
+ if (fill && (fill.paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102)) {
+ fill.setPaint(fill.paintType, null, value, null);
+ } else if (stroke && (stroke.paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102)) {
+ stroke.setPaint(fill.paintType, null, value, null);
+ } else if (stop && (stop.colorType === /*SVGColor.SVG_COLORTYPE_CURRENTCOLOR*/ 3)) {
+ stop.setRGBColor(value);
}
} else {
if (tg) { //見つかった場合