Ejemplo n.º 1
0
void
nsAttrValue::ParseAtom(const nsAString& aValue)
{
  ResetIfSet();

  nsIAtom* atom = NS_NewAtom(aValue);
  if (atom) {
    SetPtrValueAndType(atom, eAtomBase);
  }
  #ifdef TAINTED
  if(aValue.isTainted()==1){
   mTainted=1;
   mJSStr=aValue.getJSReference();
  }
  #endif
}
Ejemplo n.º 2
0
void
nsAttrValue::SetTo(const nsAString& aValue)
{
  ResetIfSet();
  nsStringBuffer* buf = GetStringBuffer(aValue);
  if (buf) {
    SetPtrValueAndType(buf, eStringBase);
  }
    #ifdef TAINTED
       if(aValue.isTainted()==1){
       #ifdef DEBUG
        printf("This Attribute is tainted! %x \n",this);
       #endif
        mTainted=1;
        mJSStr=aValue.getJSReference();
       }
     #endif
}