Changeset 8762
- Timestamp:
- 05/27/07 11:20:57 (20 months ago)
- Files:
-
- 1 modified
-
dojox/trunk/gfx/vml.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/gfx/vml.js
r8717 r8762 760 760 } 761 761 if(!p){ 762 p = document.createElement("v:path");762 p = this.rawNode.ownerDocument.createElement("v:path"); 763 763 r.appendChild(p); 764 764 } 765 765 if(!t){ 766 t = document.createElement("v:textpath");766 t = this.rawNode.ownerDocument.createElement("v:textpath"); 767 767 r.appendChild(t); 768 768 } … … 1323 1323 } 1324 1324 if(!p){ 1325 p = document.createElement("v:path");1325 p = this.rawNode.ownerDocument.createElement("v:path"); 1326 1326 r.appendChild(p); 1327 1327 } 1328 1328 if(!t){ 1329 t = document.createElement("v:textpath");1329 t = this.rawNode.ownerDocument.createElement("v:textpath"); 1330 1330 r.appendChild(t); 1331 1331 } … … 1402 1402 if(!this.rawNode) return null; 1403 1403 var shape = new dojox.gfx.Image(); 1404 var node = document.createElement('div');1404 var node = this.rawNode.ownerDocument.createElement('div'); 1405 1405 node.style.position = "absolute"; 1406 1406 node.style.width = this.rawNode.style.width; 1407 1407 node.style.height = this.rawNode.style.height; 1408 1408 node.style.filter = "progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=0, M21=0, M22=1, Dx=0, Dy=0)"; 1409 var img = document.createElement('img');1409 var img = this.rawNode.ownerDocument.createElement('img'); 1410 1410 node.appendChild(img); 1411 1411 shape.setRawNode(node); … … 1435 1435 if(!this.rawNode) return null; 1436 1436 var shape = new shapeType(); 1437 var node = document.createElement('v:' + shapeType.nodeType);1437 var node = this.rawNode.ownerDocument.createElement('v:' + shapeType.nodeType); 1438 1438 shape.setRawNode(node); 1439 1439 this.rawNode.appendChild(node); … … 1570 1570 1571 1571 var s = new dojox.gfx.Surface(); 1572 s.rawNode = document.createElement("v:group");1572 s.rawNode = parentNode.ownerDocument.createElement("v:group"); 1573 1573 s.rawNode.style.width = width ? width : "100%"; 1574 1574 s.rawNode.style.height = height ? height : "100%"; … … 1580 1580 dojo.byId(parentNode).appendChild(s.rawNode); 1581 1581 // create a background rectangle, which is required to show all other shapes 1582 var r = document.createElement("v:rect");1582 var r = parentNode.ownerDocument.createElement("v:rect"); 1583 1583 r.style.left = r.style.top = 0; 1584 1584 r.style.width = s.rawNode.style.width;