Boris Zbarsky wrote:
> Alex Vincent wrote:
>> We add it immediately
> 
> Add it how?
> 
> Seriously, please give 
> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html a read?  I'd 
> rather not try to pull out information here one bit (literally) per 
> e-mail...
> 
> -Boris

For that part, I have to defer to Daniel Glazman, who wrote 99% of the 
code in play here.  :(

This looks like the key part, though:

     var head = aDocument.getElementsByTagName("head");
     if (head && head.length)
     {
       var linkElt = aDocument.createElement("style");
       var t = aDocument.createTextNode(this.kDVC_TWEAKING_STYLES);
       linkElt.appendChild(t);
       head.item(0).appendChild(linkElt);
     }

The text node's contents are essentially:

body:-skyfire-custom-selector {
   -moz-binding: url("chrome://smartfit/content/smartfit.xml#foo");
}

I apologize for making this a pulling-teeth exercise - in reality, I'm 
somewhat hampered by corporate NDA's on how much I can talk about.  I 
only posted here because Daniel had been unresponsive and I was out of 
ideas.  Daniel has just recently re-established contact, and hopefully 
as the expert on this code he can weigh in more effectively.

Alex
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to