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

Unified Diff: Source/bindings/v8/custom/V8DOMPointCustom.cpp

Issue 15877002: move constructors to new style callbacks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/v8/custom/V8DOMPointCustom.cpp
diff --git a/Source/bindings/v8/custom/V8DOMPointCustom.cpp b/Source/bindings/v8/custom/V8DOMPointCustom.cpp
index 363bfb1b983b4b6d15c5c2cfcee96ace0466557c..ce4aa53eec5a258c3d48cd26a1b31ca2341da067 100644
--- a/Source/bindings/v8/custom/V8DOMPointCustom.cpp
+++ b/Source/bindings/v8/custom/V8DOMPointCustom.cpp
@@ -39,7 +39,7 @@
namespace WebCore {
-v8::Handle<v8::Value> V8DOMPoint::constructorCustom(const v8::Arguments& args)
+void V8DOMPoint::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
float x = 0;
float y = 0;
@@ -58,7 +58,7 @@ v8::Handle<v8::Value> V8DOMPoint::constructorCustom(const v8::Arguments& args)
RefPtr<DOMPoint> point = DOMPoint::create(x, y);
v8::Handle<v8::Object> wrapper = args.Holder();
V8DOMWrapper::associateObjectWithWrapper(point.release(), &info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
- return wrapper;
+ args.GetReturnValue().Set(wrapper);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698