Add CefDOMNode::IsSame() method.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@228 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-05-10 14:17:32 +00:00
parent 2669a3b6c3
commit 4bc8e47fad
10 changed files with 51 additions and 5 deletions

View File

@ -206,11 +206,11 @@ int CEF_CALLBACK v8value_is_same(struct _cef_v8value_t* self,
struct _cef_v8value_t* that)
{
DCHECK(self);
if(!self)
DCHECK(that);
if(!self || !that)
return 0;
CefRefPtr<CefV8Value> thatPtr = CefV8ValueCppToC::Unwrap(that);
return CefV8ValueCppToC::Get(self)->IsSame(thatPtr);
return CefV8ValueCppToC::Get(self)->IsSame(CefV8ValueCppToC::Unwrap(that));
}
int CEF_CALLBACK v8value_get_bool_value(struct _cef_v8value_t* self)