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

Unified Diff: Source/WebCore/bindings/dart/custom/DartWebKitPointCustom.cpp

Issue 9288026: Switch to using dartdomgenerator.py for Dart interface and implementation generation. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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/WebCore/bindings/dart/custom/DartWebKitPointCustom.cpp
diff --git a/Source/WebCore/bindings/dart/custom/DartWebKitPointCustom.cpp b/Source/WebCore/bindings/dart/custom/DartWebKitPointCustom.cpp
index dfff134decb3110b08680ab577f688a7cb655c73..a2e8573fd5ad79dd958b169a4088e3b3296d15db 100644
--- a/Source/WebCore/bindings/dart/custom/DartWebKitPointCustom.cpp
+++ b/Source/WebCore/bindings/dart/custom/DartWebKitPointCustom.cpp
@@ -44,20 +44,20 @@ void constructorCallback(Dart_NativeArguments args)
DartApiScope dartApiScope;
Dart_Handle exception;
{
- ParameterAdapter<float> x(Dart_GetNativeArgument(args, 1));
+ ParameterAdapter<float> x(Dart_GetNativeArgument(args, 0));
if (!x.conversionSuccessful()) {
exception = x.exception();
goto fail;
}
- ParameterAdapter<float> y(Dart_GetNativeArgument(args, 2));
+ ParameterAdapter<float> y(Dart_GetNativeArgument(args, 1));
if (!y.conversionSuccessful()) {
exception = y.exception();
goto fail;
}
PassRefPtr<WebKitPoint> point = WebKitPoint::create(x, y);
- DartDOMWrapper::bindDOMObjectToDartWrapper(point.get(), Dart_GetNativeArgument(args, 0));
+ DartDOMWrapper::returnValue(args, point.get());
return;
}

Powered by Google App Engine
This is Rietveld 408576698