svnno****@sourc*****
svnno****@sourc*****
2009年 12月 20日 (日) 21:40:08 JST
Revision: 1482
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1482
Author: dhrname
Date: 2009-12-20 21:40:08 +0900 (Sun, 20 Dec 2009)
Log Message:
-----------
FontStyleのfsetメソッドに関数のAliasを作って高速化させた
Modified Paths:
--------------
branches/05x/056/sie.js
Modified: branches/05x/056/sie.js
===================================================================
--- branches/05x/056/sie.js 2009-12-20 12:36:06 UTC (rev 1481)
+++ branches/05x/056/sie.js 2009-12-20 12:40:08 UTC (rev 1482)
@@ -1463,11 +1463,12 @@
};
NAIBU.FontStyle.prototype.fset = function( /*float*/ w, /*float*/ h, /*Matrix*/ matrix) {
try{
+ var _fontset = fontset;
this.setStyle();
var tts = this.tar.style;
tts.whiteSpace = "nowrap";
tts.color = this.fill === "none" ? "transparent" : this.fill;
- this.fontSize = fontset(this["font-size"],w,h,matrix);
+ this.fontSize = _fontset(this["font-size"],w,h,matrix);
tts.fontSize = this.fontSize+ "px";
if (this.cursor !== "default") {
tts.cursor = this.cursor;