Changeset 8711 for trunk

Show
Ignore:
Timestamp:
05/23/07 10:31:54 (20 months ago)
Author:
ttrenka
Message:

Refs #3114. Checked into the trunk so that uhop can pick up the changes while he ports to dojox.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/vml.js

    r7848 r8711  
    768768                } 
    769769                if(!p){ 
    770                         p = document.createElement("v:path"); 
     770                        p = this.rawNode.ownerDocument.createElement("v:path"); 
    771771                        r.appendChild(p); 
    772772                } 
    773773                if(!t){ 
    774                         t = document.createElement("v:textpath"); 
     774                        t = this.rawNode.ownerDocument.createElement("v:textpath"); 
    775775                        r.appendChild(t); 
    776776                } 
     
    13311331                } 
    13321332                if(!p){ 
    1333                         p = document.createElement("v:path"); 
     1333                        p = this.rawNode.ownerDocument.createElement("v:path"); 
    13341334                        r.appendChild(p); 
    13351335                } 
    13361336                if(!t){ 
    1337                         t = document.createElement("v:textpath"); 
     1337                        t = this.rawNode.ownerDocument.createElement("v:textpath"); 
    13381338                        r.appendChild(t); 
    13391339                } 
     
    14101410                if(!this.rawNode) return null; 
    14111411                var shape = new dojo.gfx.Image(); 
    1412                 var node = document.createElement('div'); 
     1412                var node = this.rawNode.ownerDocument.createElement('div'); 
    14131413                node.style.position = "absolute"; 
    14141414                node.style.width  = this.rawNode.style.width; 
    14151415                node.style.height = this.rawNode.style.height; 
    14161416                node.style.filter = "progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=0, M21=0, M22=1, Dx=0, Dy=0)"; 
    1417                 var img  = document.createElement('img'); 
     1417                var img  = this.rawNode.ownerDocument.createElement('img'); 
    14181418                node.appendChild(img); 
    14191419                shape.setRawNode(node); 
     
    14431443                if(!this.rawNode) return null; 
    14441444                var shape = new shapeType(); 
    1445                 var node = document.createElement('v:' + shapeType.nodeType); 
     1445                var node = this.rawNode.ownerDocument.createElement('v:' + shapeType.nodeType); 
    14461446                shape.setRawNode(node); 
    14471447                this.rawNode.appendChild(node); 
     
    15781578 
    15791579        var s = new dojo.gfx.Surface(); 
    1580         s.rawNode = document.createElement("v:group"); 
     1580        var n=dojo.byId(parentNode); 
     1581        s.rawNode = n.ownerDocument.createElement("v:group"); 
    15811582        s.rawNode.style.width  = width  ? width  : "100%"; 
    15821583        s.rawNode.style.height = height ? height : "100%"; 
     
    15881589        dojo.byId(parentNode).appendChild(s.rawNode); 
    15891590        // create a background rectangle, which is required to show all other shapes 
    1590         var r = document.createElement("v:rect"); 
     1591        var r = n.ownerDocument.createElement("v:rect"); 
    15911592        r.style.left = r.style.top = 0; 
    15921593        r.style.width  = s.rawNode.style.width;