public static int set_element_attribute(cef_domnode_t *self, cef_string_t *attrName, cef_string_t *value)
        {
            set_element_attribute_delegate d;
            var p = self->_set_element_attribute;

            if (p == _p1a)
            {
                d = _d1a;
            }
            else
            {
                d = (set_element_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_element_attribute_delegate));
                if (_p1a == IntPtr.Zero)
                {
                    _d1a = d; _p1a = p;
                }
            }
            return(d(self, attrName, value));
        }
示例#2
0
 public static int set_element_attribute(cef_domnode_t* self, cef_string_t* attrName, cef_string_t* value)
 {
     set_element_attribute_delegate d;
     var p = self->_set_element_attribute;
     if (p == _p1a) { d = _d1a; }
     else
     {
         d = (set_element_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_element_attribute_delegate));
         if (_p1a == IntPtr.Zero) { _d1a = d; _p1a = p; }
     }
     return d(self, attrName, value);
 }