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

Side by Side Diff: Source/bindings/v8/custom/V8SVGLengthCustom.cpp

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 SVGLength& imp = wrapper->propertyReference(); 68 SVGLength& imp = wrapper->propertyReference();
69 ExceptionState es(info.GetIsolate()); 69 ExceptionState es(info.GetIsolate());
70 SVGLengthContext lengthContext(wrapper->contextElement()); 70 SVGLengthContext lengthContext(wrapper->contextElement());
71 imp.setValue(static_cast<float>(value->NumberValue()), lengthContext, es); 71 imp.setValue(static_cast<float>(value->NumberValue()), lengthContext, es);
72 if (es.throwIfNeeded()) 72 if (es.throwIfNeeded())
73 return; 73 return;
74 wrapper->commitChange(); 74 wrapper->commitChange();
75 } 75 }
76 76
77 void V8SVGLength::convertToSpecifiedUnitsMethodCustom(const v8::FunctionCallback Info<v8::Value>& args) 77 void V8SVGLength::convertToSpecifiedUnitsMethodCustom(const v8::FunctionCallback Info<v8::Value>& info)
78 { 78 {
79 SVGPropertyTearOff<SVGLength>* wrapper = V8SVGLength::toNative(args.Holder() ); 79 SVGPropertyTearOff<SVGLength>* wrapper = V8SVGLength::toNative(info.Holder() );
80 if (wrapper->isReadOnly()) { 80 if (wrapper->isReadOnly()) {
81 setDOMException(NoModificationAllowedError, args.GetIsolate()); 81 setDOMException(NoModificationAllowedError, info.GetIsolate());
82 return; 82 return;
83 } 83 }
84 84
85 if (args.Length() < 1) { 85 if (info.Length() < 1) {
86 throwTypeError(ExceptionMessages::failedToExecute("convertToSpecifiedUni ts", "SVGLength", ExceptionMessages::notEnoughArguments(1, args.Length())), args .GetIsolate()); 86 throwTypeError(ExceptionMessages::failedToExecute("convertToSpecifiedUni ts", "SVGLength", ExceptionMessages::notEnoughArguments(1, info.Length())), info .GetIsolate());
87 return; 87 return;
88 } 88 }
89 89
90 SVGLength& imp = wrapper->propertyReference(); 90 SVGLength& imp = wrapper->propertyReference();
91 ExceptionState es(args.GetIsolate()); 91 ExceptionState es(info.GetIsolate());
92 V8TRYCATCH_VOID(int, unitType, toUInt32(args[0])); 92 V8TRYCATCH_VOID(int, unitType, toUInt32(info[0]));
93 SVGLengthContext lengthContext(wrapper->contextElement()); 93 SVGLengthContext lengthContext(wrapper->contextElement());
94 imp.convertToSpecifiedUnits(unitType, lengthContext, es); 94 imp.convertToSpecifiedUnits(unitType, lengthContext, es);
95 if (es.throwIfNeeded()) 95 if (es.throwIfNeeded())
96 return; 96 return;
97 wrapper->commitChange(); 97 wrapper->commitChange();
98 } 98 }
99 99
100 } // namespace WebCore 100 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp ('k') | Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698