Changeset 8762

Show
Ignore:
Timestamp:
05/27/07 11:20:57 (20 months ago)
Author:
ttrenka
Message:

Fixes #3114.

Files:
1 modified

Legend:

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

    r8717 r8762  
    760760                } 
    761761                if(!p){ 
    762                         p = document.createElement("v:path"); 
     762                        p = this.rawNode.ownerDocument.createElement("v:path"); 
    763763                        r.appendChild(p); 
    764764                } 
    765765                if(!t){ 
    766                         t = document.createElement("v:textpath"); 
     766                        t = this.rawNode.ownerDocument.createElement("v:textpath"); 
    767767                        r.appendChild(t); 
    768768                } 
     
    13231323                } 
    13241324                if(!p){ 
    1325                         p = document.createElement("v:path"); 
     1325                        p = this.rawNode.ownerDocument.createElement("v:path"); 
    13261326                        r.appendChild(p); 
    13271327                } 
    13281328                if(!t){ 
    1329                         t = document.createElement("v:textpath"); 
     1329                        t = this.rawNode.ownerDocument.createElement("v:textpath"); 
    13301330                        r.appendChild(t); 
    13311331                } 
     
    14021402                if(!this.rawNode) return null; 
    14031403                var shape = new dojox.gfx.Image(); 
    1404                 var node = document.createElement('div'); 
     1404                var node = this.rawNode.ownerDocument.createElement('div'); 
    14051405                node.style.position = "absolute"; 
    14061406                node.style.width  = this.rawNode.style.width; 
    14071407                node.style.height = this.rawNode.style.height; 
    14081408                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'); 
    14101410                node.appendChild(img); 
    14111411                shape.setRawNode(node); 
     
    14351435                if(!this.rawNode) return null; 
    14361436                var shape = new shapeType(); 
    1437                 var node = document.createElement('v:' + shapeType.nodeType); 
     1437                var node = this.rawNode.ownerDocument.createElement('v:' + shapeType.nodeType); 
    14381438                shape.setRawNode(node); 
    14391439                this.rawNode.appendChild(node); 
     
    15701570 
    15711571        var s = new dojox.gfx.Surface(); 
    1572         s.rawNode = document.createElement("v:group"); 
     1572        s.rawNode = parentNode.ownerDocument.createElement("v:group"); 
    15731573        s.rawNode.style.width  = width  ? width  : "100%"; 
    15741574        s.rawNode.style.height = height ? height : "100%"; 
     
    15801580        dojo.byId(parentNode).appendChild(s.rawNode); 
    15811581        // 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"); 
    15831583        r.style.left = r.style.top = 0; 
    15841584        r.style.width  = s.rawNode.style.width;