OSDN Git Service
(root)
/
sie
/
sie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c7821d
)
SVGColorのsetRGBColorメソッドにおいて、String::sliceメソッドを使って軽量化
author
dhrname
<dhrname@users.sourceforge.jp>
Thu, 29 Mar 2012 14:04:08 +0000
(23:04 +0900)
committer
dhrname
<dhrname@users.sourceforge.jp>
Thu, 29 Mar 2012 14:04:08 +0000
(23:04 +0900)
org/w3c/dom/svg.js
patch
|
blob
|
history
diff --git
a/org/w3c/dom/svg.js
b/org/w3c/dom/svg.js
index
684403c
..
9b18a5f
100644
(file)
--- a/
org/w3c/dom/svg.js
+++ b/
org/w3c/dom/svg.js
@@
-730,9
+730,9
@@
SVGColor.prototype = new CSSValue(); //ノードのプロトタイプチェー
rgbColor = c;
c = void 0;
}
- s[0] = _parseInt(r
+rgbColor.charAt(2
), 16)+ "";
- s[1] = _parseInt(rgbColor.
charAt(3)+rgbColor.charAt(4
), 16)+ "";
- s[2] = _parseInt(rgbColor.
charAt(5)+rgbColor.charAt(6
), 16)+ "";
+ s[0] = _parseInt(r
gbColor.slice(1, 3
), 16)+ "";
+ s[1] = _parseInt(rgbColor.
slice(3, 5
), 16)+ "";
+ s[2] = _parseInt(rgbColor.
slice(5, 7
), 16)+ "";
r = g = b = void 0;
} else {
s = rgbColor.match(this._regD);