Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: Source/bindings/dart/custom/DartWebSocketCustom.cpp

Issue 26789007: Add a native subtype of function that uses the native C++ class hierarchy to check if an element (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/dart/custom/DartWebSocketCustom.cpp
===================================================================
--- Source/bindings/dart/custom/DartWebSocketCustom.cpp (revision 1437)
+++ Source/bindings/dart/custom/DartWebSocketCustom.cpp (working copy)
@@ -44,8 +44,6 @@
Dart_Handle exception = 0;
{
WebSocket* receiver = DartDOMWrapper::receiver<WebSocket>(args);
-
- DartDOMData* domData = static_cast<DartDOMData*>(Dart_GetNativeIsolateData(args));
Dart_Handle dataHandle = Dart_GetNativeArgument(args, 1);
DartExceptionState es;
@@ -54,7 +52,7 @@
if (exception)
goto fail;
receiver->send(data.get(), es);
- } else if (DartDOMWrapper::instanceOf<DartBlob>(domData, dataHandle)) {
+ } else if (DartDOMWrapper::subtypeOf(dataHandle, DartBlob::dartClassId)) {
Blob* data = DartBlob::toNative(dataHandle, exception);
if (exception)
goto fail;

Powered by Google App Engine
This is Rietveld 408576698