Ejemplo n.º 1
0
        public static void visit_dom(cef_frame_t *self, cef_domvisitor_t *visitor)
        {
            visit_dom_delegate d;
            var p = self->_visit_dom;

            if (p == _p1a)
            {
                d = _d1a;
            }
            else
            {
                d = (visit_dom_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(visit_dom_delegate));
                if (_p1a == IntPtr.Zero)
                {
                    _d1a = d; _p1a = p;
                }
            }
            try
            {
                d(self, visitor);
            }
            catch
            {
            }
        }
Ejemplo n.º 2
0
 public static void visit_dom(cef_frame_t* self, cef_domvisitor_t* visitor)
 {
     visit_dom_delegate d;
     var p = self->_visit_dom;
     if (p == _p1a) { d = _d1a; }
     else
     {
         d = (visit_dom_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(visit_dom_delegate));
         if (_p1a == IntPtr.Zero) { _d1a = d; _p1a = p; }
     }
     d(self, visitor);
 }