Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

NS_IMETHODIMP nsGenericElement::SetScriptTypeID ( PRUint32  aLang  )  [inherited]

Not all nodes support setting a new default language.

Reimplemented from nsINode.

Definition at line 3148 of file nsGenericElement.cpp.

    if ((aLang & 0x000F) != aLang) {
        NS_ERROR("script ID too large!");
        return NS_ERROR_FAILURE;
    /* SetFlags will just mask in the specific flags set, leaving existing
       ones alone.  So we must clear all the bits first */
    UnsetFlags(0x000FU << NODE_SCRIPT_TYPE_OFFSET);
    SetFlags(aLang << NODE_SCRIPT_TYPE_OFFSET);
    return NS_OK;

Generated by  Doxygen 1.6.0   Back to index