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

Unified Diff: Source/bindings/dart/DartNativeUtilities.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
« no previous file with comments | « Source/bindings/dart/DartLibraryIds.h ('k') | Source/bindings/dart/DartUtilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/DartNativeUtilities.cpp
===================================================================
--- Source/bindings/dart/DartNativeUtilities.cpp (revision 1437)
+++ Source/bindings/dart/DartNativeUtilities.cpp (working copy)
@@ -194,8 +194,7 @@
Dart_Handle exception = 0;
{
Dart_Handle elementWrapper = Dart_GetNativeArgument(args, 0);
- DartDOMData* domData = static_cast<DartDOMData*>(Dart_GetNativeIsolateData(args));
- if (!DartUtilities::isHtmlElement(domData, elementWrapper)) {
+ if (!DartDOMWrapper::subtypeOf(elementWrapper, DartHTMLElement::dartClassId)) {
exception = Dart_NewStringFromCString("Invalid class: expected instance of HtmlElement");
goto fail;
}
« no previous file with comments | « Source/bindings/dart/DartLibraryIds.h ('k') | Source/bindings/dart/DartUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698