Exemple #1
0
        public static cef_domnode_t *get_selection_start_node(cef_domdocument_t *self)
        {
            get_selection_start_node_delegate d;
            var p = self->_get_selection_start_node;

            if (p == _pb)
            {
                d = _db;
            }
            else
            {
                d = (get_selection_start_node_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_selection_start_node_delegate));
                if (_pb == IntPtr.Zero)
                {
                    _db = d; _pb = p;
                }
            }
            return(d(self));
        }
Exemple #2
0
 public static cef_domnode_t* get_selection_start_node(cef_domdocument_t* self)
 {
     get_selection_start_node_delegate d;
     var p = self->_get_selection_start_node;
     if (p == _pb) { d = _db; }
     else
     {
         d = (get_selection_start_node_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_selection_start_node_delegate));
         if (_pb == IntPtr.Zero) { _db = d; _pb = p; }
     }
     return d(self);
 }