Beispiel #1
0
        public static cef_domnode_t *get_element_by_id(cef_domdocument_t *self, cef_string_t *id)
        {
            get_element_by_id_delegate d;
            var p = self->_get_element_by_id;

            if (p == _p8)
            {
                d = _d8;
            }
            else
            {
                d = (get_element_by_id_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_by_id_delegate));
                if (_p8 == IntPtr.Zero)
                {
                    _d8 = d; _p8 = p;
                }
            }
            return(d(self, id));
        }
Beispiel #2
0
 public static cef_domnode_t* get_element_by_id(cef_domdocument_t* self, cef_string_t* id)
 {
     get_element_by_id_delegate d;
     var p = self->_get_element_by_id;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (get_element_by_id_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_by_id_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self, id);
 }