svnno****@sourc*****
svnno****@sourc*****
2011年 8月 13日 (土) 20:17:30 JST
Revision: 2867 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2867 Author: dhrname Date: 2011-08-13 20:17:30 +0900 (Sat, 13 Aug 2011) Log Message: ----------- iframe要素で代用ができるので、画像のクリップ処理を関数_caから削除した Modified Paths: -------------- branches/08x/083/org/w3c/dom/svg.js Modified: branches/08x/083/org/w3c/dom/svg.js =================================================================== --- branches/08x/083/org/w3c/dom/svg.js 2011-08-13 11:13:40 UTC (rev 2866) +++ branches/08x/083/org/w3c/dom/svg.js 2011-08-13 11:17:30 UTC (rev 2867) @@ -1721,8 +1721,8 @@ sp = _doc.createElement("div"), dcp = _doc.createElement("v:group"), backr = _doc.createElement("v:rect"), - style, fontSize, w, h, sw, sh, trstyle, tpstyle, backrs, viewWidth, viewHeight, - bfl, bft, bl, backright, backdown, text, + style, fontSize, w, h, sw, sh, trstyle, tpstyle, backrs, + bfl, bft, bl, text, _parseFloat = parseFloat, ndoc = NAIBU.doc, oba = _doc.createElement("div"); //obaはradialGradient要素で使う @@ -1829,15 +1829,11 @@ tpstyle = objei.style; trstyle.visibility = "visible"; trstyle.position = "absolute"; - /*以下、画像を切り取り*/ trstyle.overflow = "hidden"; backrs = backr.currentStyle; - /*ウィンドウ枠の長さを決定する*/ - viewWidth = w > sw ? sw : w; - viewHeight = h > sh ? sh : h; bfl = _parseFloat(backrs.left); bft = _parseFloat(backrs.top); - bl = -tar._tx; + bl = -tar._tx; //blやbtは、ずれを調整するのに使う bt = -tar._ty; if (bfl !== 0 && !isNaN(bfl)) { //内部の図形にずれが生じたとき(isNaNはIE8でautoがデフォルト値のため) bl = bfl; @@ -1847,9 +1843,6 @@ bt = bft; dcp.style.top = -bt+ "px"; } - backright = bl + viewWidth + 1; - backdown = bt + viewHeight + 1; - trstyle.clip = "rect(" +bt+ "px " +backright+ "px " +backdown+ "px " +bl+ "px)"; this._document = s; if ("_svgload_limited" in s.documentElement) { /*_svgload_limitedプロパティはXlink言語が使われていない限り、0である。 @@ -1879,7 +1872,7 @@ } s.defaultView._cache = s.defaultView._cache_ele = null; oba = _doc = evt = _doc = objei = tar = tview = objw = objh = n = att = sdt = sp = dcp = backr = w = h = sw = sh = style = fontSize = null; - trstyle = tpstyle = backrs = viewWidth = viewHeight = text = texti = i = bfl = bft = bl = bt = backdown = backright = text = _parseFloat = null; + trstyle = tpstyle = backrs = text = texti = i = bfl = bft = bl = bt = text = _parseFloat = null; /*IEのメモリリーク対策として、空関数を入力*/ this.xmlhttp.onreadystatechange = NAIBU.emptyFunction; alert(+(new Date()) - dsd.getTime())